Mercator
Public Member Functions | Private Attributes | List of all members
Mercator::Plant Class Reference

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.
 

Detailed Description

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.


The documentation for this class was generated from the following files: