![]() |
VR-Forces 4.10 Class Documentation
|
The ForestDriver adds a forest to the scene. More...

Public Member Functions | |
| ForestDriver (makVrv::DtAgentManager &agentManager, const std::string &instanceName) | |
| CTOR. More... | |
| virtual | ~ForestDriver () |
| DTOR. More... | |
| virtual void | buildRandomTrees (int numTrees, double width, double height) |
| virtual void | getForestValues (int &numTrees, int &width, int &height) |
| virtual void | removeAllTrees () |
| virtual void | useDefaultTreeDefinitions () |
| virtual void | useSpeedTreeDefinitions () |
Public Member Functions inherited from makVrv::DtDriver | |
| DtDriver (DtAgentManager &agentManager, const std::string &instanceName) | |
| CTOR. More... | |
| virtual | ~DtDriver () |
| DTOR. More... | |
| virtual void | realizeConfiguration (const DtConfiguration &configuration) |
| Realize the driver using the configuration. More... | |
| virtual DtConfiguration | createConfiguration () const |
| Create a configuration for the driver. More... | |
| DtAgentManager & | agentManager () |
| Get the master scene for this host. More... | |
| virtual DtAgentManagerInterface & | sceneInterface () |
| Get the scene manager interface for creating agents. More... | |
| bool | started () const |
| Get this driver's active state. More... | |
| virtual const std::string & | instanceName () const |
| Get this driver's instance name. More... | |
| virtual bool | autoStart () const |
| Get whether this driver is set to automatically start if it is persistent. More... | |
| virtual void | setAutoStart (bool autoStart) |
| Set whether this driver automatically starts if it is persistent. More... | |
| virtual bool | isWindowDependent () const |
| Get whether this driver is set to automatically start when the first window is created and stop when the last window is destroyed. More... | |
| virtual void | setIsWindowDependent (bool dep) |
| Set whether this driver is set to automatically start when the first window is created and stop when the last window is destroyed. More... | |
| virtual void | setIsUserControllable (bool) |
| Set whether this driver can be started and stopped by the user. More... | |
| virtual bool | isUserControllable () const |
| Get whether this driver can be started and stopped by the user. More... | |
| virtual void | setIsPersistent (bool per) |
| Set if the driver is persistent and should be saved between runs. More... | |
| virtual bool | isPersistent () const |
| Get if the driver is persistent and should be saved between runs. More... | |
| virtual bool | isOnDriverSelectionList () const |
| Returns whether or not this driver is to be automatically started/stopped from the driver selection list. More... | |
| virtual void | setOnDriverSelectionList (bool) |
| Sets whether or not this item is on the driver selection list. More... | |
| bool | objectFromAgentManager (const DtUniqueID &id) const |
| check to see if the object was created using this driver's agent manager. More... | |
Protected Types | |
| typedef std::vector< std::string > | ModelDefinitionVector |
Protected Member Functions | |
| virtual void | createDefaultTreeMappings () |
| virtual void | createSpeedTreeMappings () |
| virtual bool | onStart () |
| Start the host output. More... | |
| virtual bool | onStop () |
| Stop the host output. More... | |
| virtual bool | onTick () |
| Tick. More... | |
| virtual const std::string & | className () const |
| Get the class name. More... | |
| virtual bool | makeForest () |
| Make a random forest. More... | |
| virtual int | randomInteger (int nMin, int nMax) |
Protected Member Functions inherited from makVrv::DtDriver | |
| void | applyChangesAndDelete (DtElementChanges *changes) |
| Function for apply changes from a changes object and deleting it. More... | |
| void | reportElementCreated (DtElementID id, DtElementID parentId, DtElementEntry::ElementType type) |
| Report an element created. More... | |
| void | reportElementAttribute (DtElementID id, DtElementAttribute *attribute) |
| Report an element attribute changed. More... | |
| void | reportElementDestroyed (DtElementID id) |
| Report an element destroyed. More... | |
| void | start () |
| Start the driver. More... | |
| void | stop () |
| Stop the driver. More... | |
| bool | tick () |
| Tick the host driver. More... | |
| virtual void | slot_displayEngineAdded (const DtDeRecord &igRecord) |
| Called when a display engine is added. More... | |
| virtual void | setInstanceName (const std::string &name) |
| set the Instance name. More... | |
| virtual void | installAccessories () |
| Installs accessories on this driver. More... | |
| virtual void | uninstallAccessories () |
| Removes accessories from this driver. More... | |
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 |
The ForestDriver adds a forest to the scene.
|
protected |
| ForestDriver::ForestDriver | ( | makVrv::DtAgentManager & | agentManager, |
| const std::string & | instanceName | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
|
virtual |
|
virtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
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 |