2015-10-18 15:26:19 +00:00
|
|
|
#ifndef VEGETATIONRESULT_H
|
|
|
|
#define VEGETATIONRESULT_H
|
|
|
|
|
|
|
|
#include "software_global.h"
|
|
|
|
|
|
|
|
#include "Vector3.h"
|
|
|
|
#include "SurfaceMaterial.h"
|
|
|
|
|
|
|
|
namespace paysages {
|
|
|
|
namespace software {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Result of a vegetation lookup.
|
|
|
|
*/
|
2015-11-09 21:38:00 +00:00
|
|
|
class SOFTWARESHARED_EXPORT VegetationResult {
|
|
|
|
public:
|
|
|
|
VegetationResult(bool hit = false);
|
2015-10-18 15:26:19 +00:00
|
|
|
VegetationResult(const Vector3 &location, const Vector3 &normal, const SurfaceMaterial &material);
|
|
|
|
|
2015-11-09 21:38:00 +00:00
|
|
|
inline bool isHit() const {
|
|
|
|
return hit;
|
|
|
|
}
|
|
|
|
inline const Vector3 &getLocation() const {
|
|
|
|
return location;
|
|
|
|
}
|
|
|
|
inline const Vector3 &getNormal() const {
|
|
|
|
return normal;
|
|
|
|
}
|
|
|
|
inline const SurfaceMaterial &getMaterial() const {
|
|
|
|
return material;
|
|
|
|
}
|
|
|
|
|
|
|
|
private:
|
2015-10-18 15:26:19 +00:00
|
|
|
bool hit;
|
|
|
|
Vector3 location;
|
|
|
|
Vector3 normal;
|
|
|
|
SurfaceMaterial material;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // VEGETATIONRESULT_H
|