Umasoft
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Member Functions | Protected Attributes | List of all members
vtPlantInstanceArray3d Class Reference

#include <Trees.h>

Inheritance diagram for vtPlantInstanceArray3d:
vtPlantInstanceArray vtFeatureSetPoint2D vtFeatureSet

Public Member Functions

int CreatePlantNodes (bool progress_dialog(int)=NULL)
 
bool CreatePlantNode (uint i)
 
int NumOffTerrain ()
 
vtTransformGetPlantNode (uint i) const
 
vtPlantInstance3dGetInstance3d (uint i) const
 
void SetHeightField (vtHeightField3d *hf)
 Indicate the heightfield which will be used for the structures in this array.
 
vtSpeciesList3dGetPlantList ()
 Indicate the Plant List to use.
 
void VisualDeselectAll ()
 Deselect all plants including turning off their visual highlights.
 
void VisualSelect (uint i)
 Select a single plant, and visually highlight it.
 
void OffsetSelectedPlants (const DPoint2 &offset)
 
void ReleasePlantGeometry (uint i)
 
void DeletePlant (uint i)
 
void UpdateTransform (uint i)
 
bool FindPlantFromNode (osg::Node *pNode, int &iOffset)
 
- Public Member Functions inherited from vtPlantInstanceArray
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
 
uint 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
 
- Public Member Functions inherited from vtFeatureSetPoint2D
uint GetNumEntities () const
 
void SetNumGeometries (int iNum)
 
void Reserve (int iNum)
 
bool ComputeExtent (DRECT &rect) const
 
void Offset (const DPoint2 &p, bool bSelectedOnly=false)
 
bool TransformCoords (OCT *pTransform, bool progress_callback(int)=0)
 
bool AppendGeometryFrom (vtFeatureSet *pFromSet)
 
int AddPoint (const DPoint2 &p)
 
void SetPoint (uint num, const DPoint2 &p)
 
DPoint2GetPoint (uint num)
 
const DPoint2GetPoint (uint num) const
 
int FindClosestPoint (const DPoint2 &p, double epsilon)
 
void FindAllPointsAtLocation (const DPoint2 &p, vtArray< int > &found)
 
void GetPoint (uint num, DPoint2 &p) const
 
virtual bool IsInsideRect (int iElem, const DRECT &rect)
 
virtual void CopyGeometry (uint from, uint to)
 
virtual void SaveGeomToSHP (SHPHandle hSHP, bool progress_callback(int)=0) const
 
virtual void LoadGeomFromSHP (SHPHandle hSHP, bool progress_callback(int)=0)
 
- Public Member Functions inherited from vtFeatureSet
bool SaveToSHP (const char *filename, bool progress_callback(int)=0) const
 
bool LoadFromOGR (OGRLayer *pLayer, bool progress_callback(int)=0)
 
bool LoadFromSHP (const char *fname, bool progress_callback(int)=0)
 
bool LoadDataFromDBF (const char *filename, bool progress_callback(int)=0)
 
bool LoadFieldInfoFromDBF (const char *filename)
 
bool LoadDataFromCSV (const char *filename, bool progress_callback(int)=0)
 
bool SaveToKML (const char *filename, bool progress_callback(int)=0) const
 
void SetFilename (const vtString &str)
 
vtString GetFilename () const
 
void SetNumEntities (int iNum)
 
void AllocateFeatures ()
 
OGRwkbGeometryType GetGeomType () const
 
void SetGeomType (OGRwkbGeometryType eGeomType)
 
bool AppendDataFrom (vtFeatureSet *pFromSet)
 
virtual int NumTotalVertices () const
 
void SetToDelete (int iFeature)
 
void ApplyDeletion ()
 
void Select (uint iEnt, bool set=true)
 
bool IsSelected (uint iEnt)
 
uint NumSelected () const
 
void DeselectAll ()
 
void InvertSelection ()
 
int SelectByCondition (int iField, int iCondition, const char *szValue)
 
void DeleteSelected ()
 
bool IsDeleted (uint iEnt)
 
int DoBoxSelect (const DRECT &rect, SelectionType st)
 
void Pick (uint iEnt, bool set=true)
 
bool IsPicked (uint iEnt)
 
void DePickAll ()
 
uint GetNumFields () const
 
FieldGetField (int i)
 
const FieldGetField (int i) const
 
FieldGetField (const char *name)
 
int GetFieldIndex (const char *name) const
 
int AddField (const char *name, FieldType ftype, int string_length=40)
 
int AddRecord ()
 
void DeleteFields ()
 
void SetValue (uint record, uint field, const char *string)
 
void SetValue (uint record, uint field, int value)
 
void SetValue (uint record, uint field, double value)
 
void SetValue (uint record, uint field, bool value)
 
void GetValueAsString (uint record, uint field, vtString &str) const
 
void SetValueFromString (uint iRecord, uint iField, const vtString &str)
 
void SetValueFromString (uint iRecord, uint iField, const char *str)
 
int GetIntegerValue (uint iRecord, uint iField) const
 
short GetShortValue (uint iRecord, uint iField) const
 
float GetFloatValue (uint iRecord, uint iField) const
 
double GetDoubleValue (uint iRecord, uint iField) const
 
bool GetBoolValue (uint iRecord, uint iField) const
 
void SetProjection (const vtProjection &proj)
 
vtProjectionGetAtProjection ()
 
vtFeatureGetFeature (uint iIndex) const
 

Protected Attributes

vtArray< vtPlantInstance3d * > m_Instances3d
 
vtHeightField3dm_pHeightField
 
int m_iOffTerrain
 
- Protected Attributes inherited from vtPlantInstanceArray
vtSpeciesListm_pPlantList
 
int m_SizeField
 
int m_SpeciesField
 
- Protected Attributes inherited from vtFeatureSetPoint2D
DLine2 m_Point2
 
- Protected Attributes inherited from vtFeatureSet
OGRwkbGeometryType m_eGeomType
 
std::vector< vtFeature * > m_Features
 
vtArray< Field * > m_fields
 
vtProjection m_proj
 
vtString m_strFilename
 

Additional Inherited Members

- Protected Member Functions inherited from vtFeatureSet
void CopyEntity (uint from, uint to)
 
void ParseDBFFields (DBFHandle db)
 
void ParseDBFRecords (DBFHandle db, bool progress_callback(int)=0)
 

Detailed Description

This class extends vtPlantInstanceArray with the ability to construct and manage 3D representations of the plants.


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