paysages3d/src/render/software/VegetationInstance.h

36 lines
791 B
C
Raw Normal View History

2015-10-18 15:26:19 +00:00
#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