5 #ifndef MERCATOR_PLANT_H 6 #define MERCATOR_PLANT_H 8 #include <wfmath/point.h> 9 #include <wfmath/quaternion.h> 69 #endif // MERCATOR_PLANT_H void setOrientation(const WFMath::Quaternion &o)
Set the orientation to a new value.
Definition: Plant.h:49
WFMath::Quaternion m_orientation
Orientation of the vegetation.
Definition: Plant.h:24
float m_height
Height of the vegetation.
Definition: Plant.h:26
const float getHeight() const
Accessor for height.
Definition: Plant.h:54
void setHeight(float h)
Set the height to a new value.
Definition: Plant.h:59
WFMath::Point< 2 > m_displacement
Position of the vegetation relative to its grid point.
Definition: Plant.h:22
~Plant()
Nothing special in the destructor.
Definition: Plant.cpp:13
const WFMath::Quaternion & getOrientation() const
Accessor for orientation.
Definition: Plant.h:44
void setDisplacement(const WFMath::Point< 2 > &d)
Set the displacement to a new value.
Definition: Plant.h:39
const WFMath::Point< 2 > & getDisplacement() const
Accessor for displacement from grid point.
Definition: Plant.h:34
void setParameter(const std::string &, float)
Set a named parameter value for this plant.
Definition: Plant.h:64
This is the simple class for representing instances of vegetation.
Definition: Plant.h:19
Plant()
Height is initialised explicitly to zero.
Definition: Plant.cpp:9