|
vtdata library
|

Public Member Functions | |
| void | SetPlantList (vtSpeciesList *list) |
| int | AddPlant (const DPoint2 &pos, float size, short species_id) |
| int | AddPlant (const DPoint2 &pos, float size, vtPlantSpecies *ps) |
| void | SetPlant (int iNum, float size, short species_id) |
| void | GetPlant (int iNum, float &size, short &species_id) const |
| unsigned int | InstancesOfSpecies (short species_id) |
| bool | ReadVF_version11 (const char *fname) |
| bool | ReadVF (const char *fname) |
| bool | ReadSHP (const char *fname) |
| bool | WriteVF (const char *fname) const |
Protected Attributes | |
| vtSpeciesList * | m_pPlantList |
| int | m_SizeField |
| int | m_SpeciesField |
This class contains a set of Plant Instances. It is implemented as a subclass of vtFeatureSetPoint2D, a set of 2D locations of the plant stems. It can be read from/written to the VF format ("vegetation file") designed specifically for the purpose of storing plants, which makes it very compact and much more efficient than, e.g. SHP format.
| unsigned int vtPlantInstanceArray::InstancesOfSpecies | ( | short | species_id | ) |
Given a species index, return the number of instances which are of that species.
1.7.4