![]() |
VR-Forces 5.0.2 Developer's Guide
|
The ForestDriver adds a forest to the scene.

Protected Types | |
| typedef std::vector< std::string > | ModelDefinitionVector |
Protected Member Functions | |
| virtual void | createDefaultTreeMappings () |
| virtual void | createSpeedTreeMappings () |
| virtual bool | onStart () |
| virtual bool | onStop () |
| virtual bool | onTick () |
| virtual const std::string & | className () const |
| virtual bool | makeForest () |
| virtual int | randomInteger (int nMin, int nMax) |
Protected Member Functions inherited from makVrv::DtDriver | |
| void | applyChangesAndDelete (DtElementChanges *changes) |
| void | reportElementCreated (DtElementID id, DtElementID parentId, DtElementEntry::ElementType type) |
| void | reportElementAttribute (DtElementID id, DtElementAttribute *attribute) |
| void | reportElementDestroyed (DtElementID id) |
| void | start () |
| void | stop () |
| bool | tick () |
| virtual void | slot_displayEngineAdded (const DtDeRecord &igRecord) |
| virtual void | setInstanceName (const std::string &name) |
| virtual void | installAccessories () |
| virtual void | uninstallAccessories () |
Protected Attributes | |
| makVrv::DtForestObjectAgent * | myForestDriver |
| ModelDefinitionVector | myModelDefVector |
| std::string | myClassName |
| int | myNumTrees |
| int | myWidth |
| int | myHeight |
Protected Attributes inherited from makVrv::DtDriver | |
| DtAgentManager & | myAgentManager |
| bool | myStartedFlag |
| std::string | myName |
| DtConfiguration | myConfiguration |
| bool | myPersistentFlag |
| bool | myUserControllableFlag |
| bool | myRequestStateDiffPendingFlag |
| DtElementChanges | myChanges |
|
protected |
| ForestDriver::ForestDriver | ( | makVrv::DtAgentManager & | agentManager, |
| const std::string & | instanceName | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
|
virtual |
|
virtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Start the host output. Create all objects.
Implements makVrv::DtDriver.
|
protectedvirtual |
Stop the host output. All scene object created by the host should be destroyed.
Implements makVrv::DtDriver.
|
protectedvirtual |
Tick.
Implements makVrv::DtDriver.
|
protectedvirtual |
Get the class name.
Implements makVrv::DtDriver.
|
protectedvirtual |
Make a random forest.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |