VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
ForestDriver Class Reference

The ForestDriver adds a forest to the scene.

Inheritance diagram for ForestDriver:
Inheritance graph
[legend]

Public Member Functions

 ForestDriver (makVrv::DtAgentManager &agentManager, const std::string &instanceName)
 
virtual ~ForestDriver ()
 
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)
 
virtual ~DtDriver ()
 
virtual void realizeConfiguration (const DtConfiguration &configuration)
 
virtual DtConfiguration createConfiguration () const
 
DtAgentManageragentManager ()
 
virtual DtAgentManagerInterfacesceneInterface ()
 
bool started () const
 
virtual const std::string & instanceName () const
 
virtual bool autoStart () const
 
virtual void setAutoStart (bool autoStart)
 
virtual bool isWindowDependent () const
 
virtual void setIsWindowDependent (bool dep)
 
virtual void setIsUserControllable (bool)
 
virtual bool isUserControllable () const
 
virtual void setIsPersistent (bool per)
 
virtual bool isPersistent () const
 
virtual bool isOnDriverSelectionList () const
 
virtual void setOnDriverSelectionList (bool)
 
bool objectFromAgentManager (const DtUniqueID &id) const
 

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
DtAgentManagermyAgentManager
 
bool myStartedFlag
 
std::string myName
 
DtConfiguration myConfiguration
 
bool myPersistentFlag
 
bool myUserControllableFlag
 
bool myRequestStateDiffPendingFlag
 
DtElementChanges myChanges
 

Member Typedef Documentation

typedef std::vector<std::string> ForestDriver::ModelDefinitionVector
protected

Constructor & Destructor Documentation

ForestDriver::ForestDriver ( makVrv::DtAgentManager agentManager,
const std::string &  instanceName 
)

CTOR.

virtual ForestDriver::~ForestDriver ( )
virtual

DTOR.

Member Function Documentation

virtual void ForestDriver::buildRandomTrees ( int  numTrees,
double  width,
double  height 
)
virtual
virtual void ForestDriver::getForestValues ( int numTrees,
int width,
int height 
)
virtual
virtual void ForestDriver::removeAllTrees ( )
virtual
virtual void ForestDriver::useDefaultTreeDefinitions ( )
virtual
virtual void ForestDriver::useSpeedTreeDefinitions ( )
virtual
virtual void ForestDriver::createDefaultTreeMappings ( )
protectedvirtual
virtual void ForestDriver::createSpeedTreeMappings ( )
protectedvirtual
virtual bool ForestDriver::onStart ( )
protectedvirtual

Start the host output. Create all objects.

Implements makVrv::DtDriver.

virtual bool ForestDriver::onStop ( )
protectedvirtual

Stop the host output. All scene object created by the host should be destroyed.

Implements makVrv::DtDriver.

virtual bool ForestDriver::onTick ( )
protectedvirtual

Tick.

Implements makVrv::DtDriver.

virtual const std::string& ForestDriver::className ( ) const
protectedvirtual

Get the class name.

Implements makVrv::DtDriver.

virtual bool ForestDriver::makeForest ( )
protectedvirtual

Make a random forest.

virtual int ForestDriver::randomInteger ( int  nMin,
int  nMax 
)
protectedvirtual

Member Data Documentation

makVrv::DtForestObjectAgent* ForestDriver::myForestDriver
protected
ModelDefinitionVector ForestDriver::myModelDefVector
protected
std::string ForestDriver::myClassName
protected
int ForestDriver::myNumTrees
protected
int ForestDriver::myWidth
protected
int ForestDriver::myHeight
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)