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

#include <Trees.h>

Inheritance diagram for vtPlantSpecies3d:
vtPlantSpecies

Public Member Functions

vtPlantSpecies3doperator= (const vtPlantSpecies &v)
 
vtPlantAppearance3dGetAppearanceByHeight (float fHeight)
 
vtPlantAppearance3dGetRandomAppearance ()
 
vtPlantAppearance3dGetAppearance (int i) const
 
void CheckAvailability ()
 
int NumAvailableInstances ()
 
virtual void AddAppearance (AppearType type, const char *filename, float width, float height, float shadow_radius, float shadow_darkness)
 
- Public Member Functions inherited from vtPlantSpecies
vtPlantSpeciesoperator= (const vtPlantSpecies &v)
 
void AddCommonName (const char *Name, const char *Lang=NULL)
 
size_t NumCommonNames () const
 
CommonName GetCommonName (int n=0) const
 
uint CommonNamesOfLanguage (const char *lang)
 
void SetSciName (const char *szSciName)
 
const char * GetSciName () const
 
void SetMaxHeight (float f)
 
float GetMaxHeight () const
 
uint NumAppearances () const
 
vtPlantAppearanceGetAppearance (int i) const
 

Additional Inherited Members

- Protected Attributes inherited from vtPlantSpecies
std::vector< CommonNamem_CommonNames
 
vtString m_szSciName
 
float m_fMaxHeight
 
vtArray< vtPlantAppearance * > m_Apps
 

Detailed Description

This class extends vtPlantSpecies with the ability to manage 3D appearances of the species.

Member Function Documentation

vtPlantAppearance3d * vtPlantSpecies3d::GetAppearanceByHeight ( float  fHeight)

Return the species' appearance which is closest to a given height

vtPlantAppearance3d * vtPlantSpecies3d::GetRandomAppearance ( )

Picks a random height, and return the species' appearance which is closest to that height.


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