16 class DtForestObjectAgent;
17 class DtTreeModelAgent;
57 virtual const std::string&
className()
const;
virtual void useDefaultTreeDefinitions()
virtual const std::string & className() const
Get the class name.
virtual int randomInteger(int nMin, int nMax)
virtual bool onStop()
Stop the host output. All scene object created by the host should be destroyed.
virtual void useSpeedTreeDefinitions()
virtual void getForestValues(int &numTrees, int &width, int &height)
virtual void createSpeedTreeMappings()
std::string myClassName
Definition: forestDriver.h:70
virtual bool makeForest()
Make a random forest.
virtual void createDefaultTreeMappings()
The DtDriver is an abstract class. Developers derive from this to create logic that "directs" things ...
Definition: DtDriver.h:31
virtual bool onTick()
Tick.
Interaction makVrv::DtModelDefinition class.
ForestDriver(makVrv::DtAgentManager &agentManager, const std::string &instanceName)
CTOR.
The DtAgentManager manages the distributed scene object framework. This includes the objects and upda...
Definition: DtAgentManager.h:38
makVrv::DtForestObjectAgent * myForestDriver
Definition: forestDriver.h:68
Contains makVrv:DtDriver class.
virtual const std::string & instanceName() const
Get this driver's instance name.
int myHeight
Definition: forestDriver.h:73
std::vector< std::string > ModelDefinitionVector
Definition: forestDriver.h:40
int myWidth
Definition: forestDriver.h:72
virtual void removeAllTrees()
The ForestDriver adds a forest to the scene.
Definition: forestDriver.h:21
ModelDefinitionVector myModelDefVector
Definition: forestDriver.h:69
int myNumTrees
Definition: forestDriver.h:71
virtual ~ForestDriver()
DTOR.
virtual void buildRandomTrees(int numTrees, double width, double height)
DtAgentManager & agentManager()
Get the master scene for this host. Do not create drivers using this agentManager, use the sceneInterface as it may replaced the implementation of the sceneInterface.
virtual bool onStart()
Start the host output. Create all objects.