36 lines
791 B
C++
36 lines
791 B
C++
#ifndef VEGETATIONINSTANCE_H
|
|
#define VEGETATIONINSTANCE_H
|
|
|
|
#include "software_global.h"
|
|
|
|
#include "Vector3.h"
|
|
|
|
namespace paysages {
|
|
namespace software {
|
|
|
|
/**
|
|
* Single instance of a vegetation layer (e.g. a single tree).
|
|
*
|
|
* This is used as potential hit on vegetation lookup.
|
|
*/
|
|
class SOFTWARESHARED_EXPORT VegetationInstance
|
|
{
|
|
public:
|
|
VegetationInstance(const VegetationModelDefinition &model, const Vector3 &base, double size=1.0, double angle=0.0);
|
|
|
|
inline const VegetationModelDefinition &getModel() const {return model;}
|
|
inline const Vector3 &getBase() const {return base;}
|
|
inline double getSize() const {return size;}
|
|
|
|
private:
|
|
const VegetationModelDefinition &model;
|
|
Vector3 base;
|
|
double size;
|
|
double angle;
|
|
};
|
|
|
|
}
|
|
}
|
|
|
|
#endif // VEGETATIONINSTANCE_H
|