![]() |
VR-Forces 4.3 Class Documentation
|

Public Member Functions | |
| virtual | ~DtSpeedTreeForest () |
| virtual void | addUniqueTree (const DtTreeRecord &record) |
| Add a tree to the forest. | |
| virtual void | removeTree (DtUniqueID record) |
| Remove a tree from the forest. | |
| virtual void | setTreeClippingPlane (float fFar) |
| Set the distance that trees are clipped. | |
| virtual void | setTree3DLodDistances (float fNear, float fFar) |
| Set the distances for tree LOD's. | |
| virtual void | setTreeBillboardDistances (float fStart, float fEnd) |
| Set the distances for tree billboards. | |
| virtual DtSpeedTreeModelInstance * | findSpeedTreeModelInstance (const std::string &modelDef) |
| Find a DtSpeedTreeModelInstance from the model definition name. | |
| void | setBoundingBox (const osg::BoundingBox &box) |
| const osg::BoundingBox & | getBoundingBox (void) const |
| osg::ref_ptr< osg::Node > | getRootNode (void) |
| gets the root node for this forest which contains the stateset for the forest | |
| void | programBoundCallback (osg::ref_ptr< makOsgSpeedTree::Forest > pForest, const makOsgSpeedTree::TreeType *pTreeType, uint32 programID) |
| callback from when a shader is loaded in speedtree so VRV can bind its own uniforms | |
Public Member Functions inherited from makVrv::DtOsgForest | |
| virtual | ~DtOsgForest () |
| Destructor. | |
| virtual void | removeAllTrees () |
| Remove all trees. | |
| virtual void | getTreeClippingPlane (float &fFar) |
| Get the distance that trees are clipped. | |
| virtual void | getTree3DLodDistances (float &fNear, float &fFar) |
| Get the distances for tree LOD's. | |
| virtual void | getTreeBillboardDistances (float &fStart, float &fEnd) |
| Get the distances for tree billboards. | |
| unsigned int | treeCount () const |
| Get the number of trees. | |
| virtual DtTreeRecord * | findTreeRecord (DtUniqueID id) |
| Find a DtTreeRecord based on it's id. | |
| virtual DtTreeModel * | findTreeModel (const std::string &modelDef) |
| Find a DtTreeModel from a model definition name. | |
| virtual DtModelInstance * | findModelInstance (const std::string &modelDef) |
| Find a DtModelInstance from a model definition name. | |
| virtual osg::Group * | rootGroup () |
| Get the root group node. | |
Public Member Functions inherited from makVrv::DtForestObject | |
| virtual | ~DtForestObject () |
| Destructor. | |
| virtual DtDe & | de () |
| IG accessor. | |
| void | addTree (const DtTreeRecord &record) |
| Add a tree to the forest. | |
| virtual DtModelDefinition * | findModelDefinition (const std::string &modelDef) |
| Find a DtModelDefinition* from the model definition name. | |
| virtual const TreeRecordMap & | treeRecordMap () const |
| Return the treeRecordMap. | |
Protected Member Functions | |
| DtSpeedTreeForest (DtDe &de, DtUniqueID id) | |
| Constructor is protected because this class is created via the creator pattern. | |
| virtual void | slot_treeModelInstanceToBeDestroyed (const std::string &modelDef) |
| Called when the model instance for a particular model definition is about to be destroyed. | |
| virtual void | slot_treeModelInstanceCreated (const std::string &modelDef) |
| Called when the model instance for a particular model definition is created. | |
| virtual DtTreeModel * | castUpdaterToTreeModel (DtAgentUpdateResolverInterface *updater) |
| Casts a DtAgentUpdateResolverInterface to a DtSpeedTreeModel. | |
| virtual bool | createTree (const DtTreeRecord &record) |
| No-op. Always returns true. | |
Protected Member Functions inherited from makVrv::DtOsgForest | |
| DtOsgForest (DtDe &de, DtUniqueID id) | |
| Constructor is protected because this class is created via the creator pattern. | |
| virtual osg::PositionAttitudeTransform * | createPat (const DtTreeRecord &record) |
| virtual DtOsgModelInstance * | findOsgModelInstance (const std::string &modelDef) |
| Find a DtOsgModelInstance from a model definition name. | |
| virtual osg::PositionAttitudeTransform * | findPat (const DtUniqueID id) |
| Find a osg::PositionAttitudeTransform* from an id. | |
| virtual void | removePat (const DtUniqueID id) |
| Find a osg::PositionAttitudeTransform* from an id. | |
| virtual void | removeTreeModel (const std::string &modelDef) |
| Remove a DtTreeModel of a particular model definition. | |
Protected Member Functions inherited from makVrv::DtForestObject | |
| DtForestObject (DtDe &de, DtUniqueID id) | |
| Constructor is protected because this class is created via the creator pattern. | |
Protected Attributes | |
| osg::ref_ptr < osg::PositionAttitudeTransform > | myPat |
| osg::ref_ptr < makOsgSpeedTree::Forest > | myForest |
| osg::BoundingBox | myBoundingBox |
| DtSpeedTreeCore & | myCore |
Protected Attributes inherited from makVrv::DtOsgForest | |
| TreePatMap | myTreePatMap |
| osg::ref_ptr< osg::Group > | myRoot |
| The forest is a collection of trees under a group node. | |
| float | myFarPlane |
| float | myHighDetail3dDistance |
| float | myLowDetail3dDistance |
| float | myBillboardStartDistance |
| float | myBillboardEndDistance |
Protected Attributes inherited from makVrv::DtForestObject | |
| DtDe & | myDe |
| TreeRecordMap | myTreeRecordMap |
| TreeModelMap | myTreeModelMap |
Private Types | |
| typedef boost::unordered_map < DtUniqueID, makOsgSpeedTree::TreeInstance * > | MapIdsToTreeInstances |
| typedef std::map< const DtModelDefinition *, std::string > | MapModelDefToSTFileName |
Private Member Functions | |
| void | connectSignals (void) |
| void | disconnectSignals (void) |
| osg::Vec3f | computeWindDirection (float fDirection) |
| void | setWindStrength (float fStrength) |
| void | setWindDirection (float fDirection) |
| bool | preUpdateCallback (osg::ref_ptr< makOsgSpeedTree::Forest > forest, osg::RenderInfo &renderInfo) |
| bool | preRenderCallback (osg::ref_ptr< makOsgSpeedTree::Forest > forest, osg::RenderInfo &renderInfo) |
| void | postUpdateCallback (osg::ref_ptr< makOsgSpeedTree::Forest > forest, osg::RenderInfo &renderInfo) |
| void | postRenderCallback (osg::ref_ptr< makOsgSpeedTree::Forest > forest, osg::RenderInfo &renderInfo) |
| void | provideTimeCallback (osg::ref_ptr< makOsgSpeedTree::Forest > forest, double &fTime) |
| void | pushGraphicsState (osg::RenderInfo &renderInfo) |
| void | popGraphicsState (osg::RenderInfo &renderInfo) |
Private Attributes | |
| MapIdsToTreeInstances | myTreeInstances |
| makOsgSpeedTree::TreeInstanceDescriptor | myScratchTreeInstanceDesc |
| MapModelDefToSTFileName | myMapModelDefToSTFileName |
| int | myPreviousTU |
| osg::Camera * | myCamera |
| std::map< int, bool > | myShaderBoundMap |
Static Private Attributes | |
| static const float | myCellSize |
Friends | |
| class | DtSpeedTreeForestClassesCreator |
| class | DtSpeedTreeForestCreator |
Additional Inherited Members | |
Public Types inherited from makVrv::DtOsgForest | |
| typedef std::map< DtUniqueID, osg::PositionAttitudeTransform * > | TreePatMap |
|
private |
|
private |
|
virtual |
|
protected |
Constructor is protected because this class is created via the creator pattern.
|
virtual |
Add a tree to the forest.
Reimplemented from makVrv::DtOsgForest.
|
virtual |
Remove a tree from the forest.
Reimplemented from makVrv::DtOsgForest.
|
virtual |
Set the distance that trees are clipped.
Reimplemented from makVrv::DtOsgForest.
|
virtual |
Set the distances for tree LOD's.
Reimplemented from makVrv::DtOsgForest.
|
virtual |
Set the distances for tree billboards.
Reimplemented from makVrv::DtOsgForest.
|
virtual |
Find a DtSpeedTreeModelInstance from the model definition name.
| void makVrv::DtSpeedTreeForest::setBoundingBox | ( | const osg::BoundingBox & | box | ) |
| const osg::BoundingBox& makVrv::DtSpeedTreeForest::getBoundingBox | ( | void | ) | const |
| osg::ref_ptr<osg::Node> makVrv::DtSpeedTreeForest::getRootNode | ( | void | ) |
gets the root node for this forest which contains the stateset for the forest
| void makVrv::DtSpeedTreeForest::programBoundCallback | ( | osg::ref_ptr< makOsgSpeedTree::Forest > | pForest, |
| const makOsgSpeedTree::TreeType * | pTreeType, | ||
| uint32 | programID | ||
| ) |
callback from when a shader is loaded in speedtree so VRV can bind its own uniforms
|
protectedvirtual |
Called when the model instance for a particular model definition is about to be destroyed.
Reimplemented from makVrv::DtOsgForest.
|
protectedvirtual |
Called when the model instance for a particular model definition is created.
Reimplemented from makVrv::DtOsgForest.
|
protectedvirtual |
Casts a DtAgentUpdateResolverInterface to a DtSpeedTreeModel.
Reimplemented from makVrv::DtForestObject.
|
protectedvirtual |
No-op. Always returns true.
Reimplemented from makVrv::DtOsgForest.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
friend |
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
private |
|
private |
|
private |
|
staticprivate |
|
private |
|
private |