|
Mercator
|
This is the simple class for representing instances of vegetation. More...
#include <Plant.h>
Public Member Functions | |
| Plant () | |
| Height is initialised explicitly to zero. | |
| ~Plant () | |
| Nothing special in the destructor. | |
| const WFMath::Point< 2 > & | getDisplacement () const |
| Accessor for displacement from grid point. | |
| void | setDisplacement (const WFMath::Point< 2 > &d) |
| Set the displacement to a new value. | |
| const WFMath::Quaternion & | getOrientation () const |
| Accessor for orientation. | |
| void | setOrientation (const WFMath::Quaternion &o) |
| Set the orientation to a new value. | |
| const float | getHeight () const |
| Accessor for height. | |
| void | setHeight (float h) |
| Set the height to a new value. | |
| void | setParameter (const std::string &, float) |
| Set a named parameter value for this plant. | |
Private Attributes | |
| WFMath::Point< 2 > | m_displacement |
| Position of the vegetation relative to its grid point. | |
| WFMath::Quaternion | m_orientation |
| Orientation of the vegetation. | |
| float | m_height |
| Height of the vegetation. | |
This is the simple class for representing instances of vegetation.
It is used in instances of class Forest to represent each instance of vegetation created when the Forest is populated.
1.8.15