![]() |
VR-Forces 4.3 Class Documentation
|
A DtTreeRecord holds the requisite information needed to create a tree in a forest. More...
Public Member Functions | |
| DtTreeRecord () | |
| CTOR. | |
| DtTreeRecord (DtUniqueID id, const DtVector &pos, const std::string &modelDefinitionName) | |
| CTOR. | |
| DtTreeRecord (const DtTreeRecord &orig) | |
| Copy Constructor. | |
| const DtTreeRecord & | operator= (const DtTreeRecord &orig) |
| Assignment operator. | |
| bool | operator== (const DtTreeRecord &other) const |
| Returns true if the two DtTreeRecords have the same UniqueId. | |
| bool | operator< (const DtTreeRecord &other) const |
| Returns true if the two this records UniqueId is less than other's UniqueId. | |
| virtual | ~DtTreeRecord () |
| Virtual DTOR. | |
| virtual void | setUniqueId (DtUniqueID id) |
| Set the UniqueId of the this DtTreeRecord. | |
| virtual DtUniqueID | uniqueId () const |
| Get uniqueId of this DtTreeRecord. | |
| virtual void | setPostion (const DtVector &pos) |
| Set position of the tree in scene coordinates. | |
| virtual const DtVector & | position () const |
| Return the position of the tree in scene coordinates. | |
| virtual void | setModelDefinition (const std::string &modelDef) |
| Set the model definition name of the tree. | |
| virtual const std::string & | modelDefinition () const |
| Return the model definition name of the tree. | |
| virtual void | setScale (float fScale) |
| virtual float | scale (void) const |
| virtual void | setOrientation (const DtDegrees &orientation) |
| virtual DtDegrees | orientation (void) const |
Static Public Member Functions | |
| static void | getRandomizedScaleAndOrientation (float &fScale, DtDegrees &orientation, DtUniqueID id) |
Protected Types | |
| typedef boost::mt19937 | RandomGenEngine |
| typedef boost::uniform_real | RandomDistributionTypeForScale |
| typedef boost::variate_generator < RandomGenEngine, RandomDistributionTypeForScale > | RandomGeneratorForScale |
| typedef boost::uniform_int | RandomDistributionTypeForOrientation |
| typedef boost::variate_generator < RandomGenEngine, RandomDistributionTypeForOrientation > | RandomGeneratorForOrientation |
Protected Member Functions | |
| void | copyHelper (const DtTreeRecord &orig) |
| Non virtual. Called by copy ctor and assignment operator. | |
Protected Attributes | |
| DtUniqueID | myUniqueId |
| DtVector | myPosition |
| std::string | myModelDefinition |
| float | myScale |
| DtDegrees | myOrientation |
Static Protected Attributes | |
| static RandomGenEngine | myRandomGenEngine |
| static RandomDistributionTypeForScale | myRandomDistributionTypeForScale |
| static RandomGeneratorForScale | myRandomGeneratorScale |
| static RandomDistributionTypeForOrientation | myRandomDistributionTypeForOrientation |
| static RandomGeneratorForOrientation | myRandomGeneratorOrientation |
A DtTreeRecord holds the requisite information needed to create a tree in a forest.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| 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.
| const 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.
|
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 |
|
protected |
Non virtual. Called by copy ctor and assignment operator.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |