![]() |
VR-Forces Developer's Guide
|
A DtTreeRecord holds the requisite information needed to create a tree in a forest.
Public Member Functions | |
| DtTreeRecord () | |
| DtTreeRecord (DtUniqueID id, const DtVector &pos, const std::string &modelDefinitionName) | |
| DtTreeRecord (const DtTreeRecord &orig) | |
| DtTreeRecord & | operator= (const DtTreeRecord &orig) |
| bool | operator== (const DtTreeRecord &other) const |
| bool | operator< (const DtTreeRecord &other) const |
| virtual | ~DtTreeRecord () |
| virtual void | setUniqueId (DtUniqueID id) |
| virtual DtUniqueID | uniqueId () const |
| void | setCellID (DtUniqueID id) |
| DtUniqueID | cellId (void) const |
| virtual void | setPostion (const DtVector &pos) |
| virtual const DtVector & | position () const |
| virtual void | setModelDefinition (const std::string &modelDef) |
| virtual const std::string & | modelDefinition () const |
| virtual void | setScale (float fScale) |
| virtual float | scale (void) const |
| virtual void | setOrientationDegrees (const DtDegrees &orientation) |
| virtual DtDegrees | orientationDegrees (void) const |
| virtual const std::string & | treeType () const |
| virtual void | setTreeType (const std::string &val) |
| virtual const DtQuaternion & | orientation () const |
| virtual void | setOrientation (const DtQuaternion &val) |
| virtual void | reInitialize (void) |
Static Public Member Functions | |
| static void | getRandomizedScale (float &fScale, float fMinScale, float fMaxScale, DtUniqueID id) |
| static void | getRandomizedOrientation (DtDegrees &orientation, DtUniqueID id) |
Protected Member Functions | |
| void | copyHelper (const DtTreeRecord &orig) |
Protected Attributes | |
| DtUniqueID | myUniqueId |
| DtUniqueID | myCellId |
| DtVector | myPosition |
| std::string | myModelDefinition |
| float | myScale |
| DtDegrees | myOrientationDegrees |
| std::string | myTreeType |
| DtQuaternion | myOrientation |
| makVrv::DtTreeRecord::DtTreeRecord | ( | ) |
CTOR.
| makVrv::DtTreeRecord::DtTreeRecord | ( | DtUniqueID | id, |
| const DtVector & | pos, | ||
| const std::string & | modelDefinitionName | ||
| ) |
CTOR.
| makVrv::DtTreeRecord::DtTreeRecord | ( | const DtTreeRecord & | orig | ) |
Copy Constructor.
|
virtual |
Virtual DTOR.
| DtTreeRecord& makVrv::DtTreeRecord::operator= | ( | const DtTreeRecord & | orig | ) |
Assignment operator.
| bool makVrv::DtTreeRecord::operator== | ( | const DtTreeRecord & | other | ) | const |
Returns true if the two DtTreeRecords have the same UniqueId.
| bool makVrv::DtTreeRecord::operator< | ( | const DtTreeRecord & | other | ) | const |
Returns true if the two this records UniqueId is less than other's UniqueId.
|
virtual |
Set the UniqueId of the this DtTreeRecord.
|
virtual |
Get uniqueId of this DtTreeRecord.
| void makVrv::DtTreeRecord::setCellID | ( | DtUniqueID | id | ) |
Set an optional cellID of the this DtTreeRecord.
| DtUniqueID makVrv::DtTreeRecord::cellId | ( | void | ) | const |
Get the optional cellID of the this DtTreeRecord.
|
virtual |
Set position of the tree in scene coordinates.
|
virtual |
Return the position of the tree in scene coordinates.
|
virtual |
Set the model definition name of the tree.
|
virtual |
Return the model definition name of the tree.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
static |
|
static |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
protected |
Non virtual. Called by copy ctor and assignment operator.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |