![]() |
VR-Forces 4.6.1 Class Documentation
|
DtSpeedTreeForest is the SpeedTree implementation of a distributed DtForestObject. More...

Classes | |
| struct | ModelDefParams |
Public Member Functions | |
| virtual | ~DtSpeedTreeForest () |
| virtual void | addUniqueTree (DtTreeRecord &record) |
| Add a tree to the forest. | |
| virtual void | removeTree (DtUniqueID record) |
| Remove a tree from the forest. | |
| virtual void | removeAllTrees () |
| Remove all trees. | |
| virtual DtUniqueID | addUniqueTreesToUniqueCell (DtVectorTreeRecords &records) |
| virtual void | removeAllUniqueTreesAndUniqueCell (DtUniqueID cellID) |
| virtual void | setTreeClippingPlane (float fFar) |
| Set the distance that trees are clipped. | |
| virtual void | getTreeClippingPlane (float &fFar) |
| Get the clipping planes. | |
| virtual void | setTree3DLodDistances (float fNear, float fFar) |
| Set the distances for tree LOD's. | |
| virtual void | getTree3DLodDistances (float &fNear, float &fFar) |
| Set the distances for tree LOD's. | |
| virtual void | setTreeBillboardDistances (float fStart, float fEnd) |
| Set the distances for tree billboard LOD's. | |
| virtual void | getTreeBillboardDistances (float &fStart, float &fEnd) |
| Get the distances for tree billboard LOD's. | |
| virtual void | enableBillboardRendering (bool enable) |
| virtual bool | isBillboardRenderingEnabled () const |
| virtual void | enable3DTreeRendering (bool enable) |
| virtual bool | is3DTreeRenderingEnabled () const |
| virtual void | enableReceiveShadows (bool enable) |
| virtual bool | isReceiveShadowsEnabled () const |
| 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 | |
| virtual void | slot_reloadShaders () |
| Indicate to the SpeedTreeForest that it should recompile the SpeedTree (and related) shaders (done in the preUpdateCallback) | |
| virtual void | slot_useGlobalAmbientChanged (bool enabled) |
| Runs when the user checks the Use Global Ambient Checkbox. | |
| virtual void | slot_useGlobalDiffuseChanged (bool enabled) |
| Runs when the user checks the Use Global Diffuse Checkbox. | |
| virtual void | slot_perPixelLightingEnabledChanged (bool enabled) |
| Runs when the user checks the Display Light Rendering Settings Enable Lighting checkbox. | |
| virtual void | slot_planarReflectionsShowSpeedTreesChanged (bool enabled) |
| handles the flag that sets whether trees should be rendered in the planar reflections. | |
Public Member Functions inherited from makVrv::DtForestObject | |
| virtual | ~DtForestObject () |
| Destructor. | |
| virtual DtDe & | de () |
| IG accessor. | |
| void | addTree (DtTreeRecord &record) |
| Add a tree to the forest. | |
Protected Types | |
| typedef std::map< std::string, ModelDefParams > | MapModelDefToSTFileName |
| typedef boost::unordered_map < DtUniqueID, makOsgSpeedTree::TreeInstanceCollection > | MapCellsToTrees |
| typedef boost::unordered_map < DtUniqueID, makOsgSpeedTree::TreeInstance * > | MapTreeIDToTree |
Protected Member Functions | |
| DtSpeedTreeForest (DtDe &de, DtUniqueID id) | |
| Constructor is protected because this class is created via the creator pattern. | |
| DtSpeedTreeForest (DtDe &de, DtUniqueID id, const std::string &strVisManagerType) | |
| void | init (const std::string &strVisManagerType) |
| void | connectSignals (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) |
| virtual DtModelDefinition * | findModelDefinition (const std::string &modelDef) |
| Find a DtModelDefinition* from the model definition name. | |
| bool | createTree (DtTreeRecord &record) |
| No-op. Always returns true. | |
| void | initTreeDesc (makOsgSpeedTree::TreeInstanceDescriptor &desc, DtTreeRecord &record, const DtVector &up) |
| void | initTreeDesc (makOsgSpeedTree::TreeInstanceDescriptor &desc, DtTreeRecord &record, bool setupTopoFrame=true) |
| void | applyModelDefParameters (makOsgSpeedTree::TreeInstanceDescriptor &desc, DtTreeRecord &record) |
Protected Member Functions inherited from makVrv::DtForestObject | |
| DtForestObject (DtDe &de, DtUniqueID id) | |
| Constructor is protected because this class is created via the creator pattern. | |
Static Protected Member Functions | |
| static DtOsgCullVisitorParameters * | getCullParameters (osg::RenderInfo &renderInfo) |
| static bool | isCameraOrthographic (DtOsgCullVisitorParameters *params) |
| static bool | isReflectionCamera (osg::Camera *camera) |
| is the current camera in the render info a reflection camera | |
| static float | getZoomFactor (DtOsgCullVisitorParameters *params, DtDe &de) |
Static Protected Attributes | |
| static const float | myCellSize |
Friends | |
| class | DtSpeedTreeForestClassesCreator |
| class | DtSpeedTreeForestCreator |
Additional Inherited Members | |
Public Types inherited from makVrv::DtForestObject | |
| typedef boost::unordered_map < DtUniqueID, DtTreeRecord > | TreeRecordMap |
DtSpeedTreeForest is the SpeedTree implementation of a distributed DtForestObject.
|
protected |
|
protected |
|
protected |
|
virtual |
|
protected |
Constructor is protected because this class is created via the creator pattern.
|
protected |
|
virtual |
Add a tree to the forest.
Implements makVrv::DtForestObject.
|
virtual |
Remove a tree from the forest.
Implements makVrv::DtForestObject.
|
virtual |
Remove all trees.
Implements makVrv::DtForestObject.
|
virtual |
|
virtual |
|
virtual |
Set the distance that trees are clipped.
Not implemented in DtOsgForest (only DtSpeedTreeForest).
Implements makVrv::DtForestObject.
|
virtual |
Get the clipping planes.
Implements makVrv::DtForestObject.
|
virtual |
Set the distances for tree LOD's.
Not implemented in DtOsgForest (only DtSpeedTreeForest).
Implements makVrv::DtForestObject.
|
virtual |
Set the distances for tree LOD's.
Not implemented in DtOsgForest (only DtSpeedTreeForest).
Implements makVrv::DtForestObject.
|
virtual |
Set the distances for tree billboard LOD's.
Not implemented in DtOsgForest (only DtSpeedTreeForest).
Implements makVrv::DtForestObject.
|
virtual |
Get the distances for tree billboard LOD's.
Not implemented in DtOsgForest (only DtSpeedTreeForest).
Implements makVrv::DtForestObject.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
inlinevirtual |
| 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
|
virtual |
Indicate to the SpeedTreeForest that it should recompile the SpeedTree (and related) shaders (done in the preUpdateCallback)
|
virtual |
Runs when the user checks the Use Global Ambient Checkbox.
|
virtual |
Runs when the user checks the Use Global Diffuse Checkbox.
|
virtual |
Runs when the user checks the Display Light Rendering Settings Enable Lighting checkbox.
|
virtual |
handles the flag that sets whether trees should be rendered in the planar reflections.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protectedvirtual |
Find a DtModelDefinition* from the model definition name.
|
protected |
No-op. Always returns true.
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
is the current camera in the render info a reflection camera
|
staticprotected |
|
friend |
|
friend |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
The forest is a collection of trees under a group node.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
shader hash for the last shaders passed down to SpeedTree
|
protected |
Should we reload the SpeedTree shaders.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |