vtPlantInstanceArray Class Reference

Inheritance diagram for vtPlantInstanceArray:

Inheritance graph
[legend]
List of all members.

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

vtSpeciesListm_pPlantList
int m_SizeField
int m_SpeciesField

Detailed Description

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.


Member Function Documentation

unsigned int vtPlantInstanceArray::InstancesOfSpecies short  species_id  ) 
 

Given a species index, return the number of instances which are of that species.


Generated on Tue Apr 22 10:11:01 2008 for vtdata library by  doxygen 1.4.5