#include <Trees.h>
Public Member Functions | |
vtPlantSpecies3d & | operator= (const vtPlantSpecies &v) |
vtPlantAppearance3d * | GetAppearanceByHeight (float fHeight) |
vtPlantAppearance3d * | GetRandomAppearance () |
vtPlantAppearance3d * | GetAppearance (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) |
![]() | |
vtPlantSpecies & | operator= (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 |
vtPlantAppearance * | GetAppearance (int i) const |
Additional Inherited Members | |
![]() | |
std::vector< CommonName > | m_CommonNames |
vtString | m_szSciName |
float | m_fMaxHeight |
vtArray< vtPlantAppearance * > | m_Apps |
This class extends vtPlantSpecies with the ability to manage 3D appearances of the species.
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.