5 #ifndef MERCATOR_FOREST_H 6 #define MERCATOR_FOREST_H 10 #include <wfmath/axisbox.h> 11 #include <wfmath/polygon.h> 21 class SpeciesParameter;
23 typedef std::map<std::string, SpeciesParameter> ParameterDict;
78 PlantSpecies m_species;
87 explicit Forest(
unsigned long seed = 0);
106 void setArea(
Area* a);
113 #endif // MERCATOR_FOREST_H A cache of random values.
Area * getArea() const
Accessor for polygonal area.
PlantSpecies & species()
Accessor for list of species in this forest.
float range
The range of values a parameter should take.
Data about a species of plant in a Forest.
ParameterDict m_parameters
Arbitrary parameters.
float m_deviation
Multiplyer for how deviated from the grid items should be.
A set of constraints on a plant parameter.
std::map< int, PlantColumn > PlantStore
STL map to store a sparse array of PlantColumn objects.
float m_probability
Probability that this species will occur at each grid node.
std::vector< Species > PlantSpecies
STL vector of plant species in this forest.
This is the core class for any area to be populated with vegetation.
const PlantStore & getPlants() const
Accessor for container of vegetation.
float min
The minimum value a parameter should take.
Region of terrain surface which is modified.
std::map< int, Plant > PlantColumn
STL map to store a sparse array of Plant objects.