![]() |
VR-Forces 4.1 Class Documentation
|
Contains makVrv::DtVrfOsgRenderer class. More...

Public Member Functions | |
| virtual | ~DtVrfOsgRenderer () |
| DTOR. | |
Public Member Functions inherited from makVrv::DtOsgRenderer | |
| virtual | ~DtOsgRenderer () |
| DTOR. | |
| virtual void | update () |
| Add functionality to update, update dynamic objects. | |
| virtual void | render () |
| Render. | |
| virtual bool | viewExists () const |
| Returns whether or not a view (typically a window) exists. | |
| virtual void | resetSceneGraph () |
| Removes all nodes from the scene graph. | |
| virtual void | removeChannelRoot (DtChannel *channel) |
| Checks to see if this channel has a root, and, if it does, remove it from all model set roots. | |
| virtual void | addNodeToRoot (osg::Node *node, SceneRoot sr, bool createOnAccess=true) |
| Add a node to the specified SceneRoot. | |
| virtual void | removeNodeFromRoot (osg::Node *node, SceneRoot sr) |
| Remove a node from the specified SceneRoot. | |
| virtual void | traverseRoot (osg::NodeVisitor &nv, SceneRoot sr) |
| Traverse from the specified SceneRoot with the given visitor. | |
| virtual void | setSceneRootNodeMask (SceneRoot sr, osg::Node::NodeMask nodemask) |
| Set the nodemask of a SceneRoot. | |
| virtual osg::Node::NodeMask | sceneRootNodeMask (SceneRoot sr) |
| Get the nodemask of a SceneRoot. | |
| virtual osg::BoundingSphere | sceneRootBound (SceneRoot sr) |
| Get the bounding sphere of sceneRoot. | |
| virtual osg::BoundingSphere | sceneRootListBound (const RootList &srList) |
| Get the bounding sphere of list of sceneRoots. | |
| virtual void | addChannelToModelSetRoot (int modelSetId, DtChannel *channel) |
| Set the specified channel to render a modelSet root. | |
| virtual void | removeChannelFromModelSetRoot (int modelSetId, DtChannel *channel) |
| Stop the specified channel from rendering a modelSet root. | |
| virtual void | addChannelToVisualizerRoot (int modelSetId, int visualizerType, DtChannel *channel) |
| Set the specified channel to render a visualizer type root. | |
| virtual void | removeChannelFromVisualizerRoot (int modelSetId, int visualizerType, DtChannel *channel) |
| Stop the specified channel from rendering a visualizer type root. | |
| virtual void | setSceneDataToRenderRoot (osgViewer::View &view) |
| Set the sceneData of a view to the top of the scene graph. | |
| virtual void | addSceneToCamera (osg::Camera *camera) |
| Add the scene to the specified camera. | |
| virtual osg::Group * | findSceneRootChildByName (SceneRoot parent, const std::string &rootName) |
| Look up a root by name in the parent specified by SceneRoot. | |
| virtual void | releaseResources () |
| Release all openGL objects in the scene graph. | |
| virtual void | releaseResources (osg::State *state) |
| Release all openGL objects in the scene graph. | |
| void | setRootNode (osg::Group *, bool copyChildrenFromOldRoot) |
| Set the new scene root node, and optionally copy the old root children. | |
| void | resetRoot () |
| Reset the scene root node back to the original node. | |
| void | registerPagedLODs (osg::Node *node) |
| Register any paged LOD's with all of the existing database pagers. | |
| void | clearPagedLODs () |
| Register any paged LOD's with all of the existing database pagers. | |
| virtual void | setPerformanceStatsOverlayEnabled (bool show) |
| Set whether IG performance stats overlay is enabled. | |
| virtual bool | performanceStatsOverlayEnabled () const |
| Get whether IG performance stats overlay is enabled. | |
| virtual void | setWireframeRendering (bool enabled) |
| Turn on/off wireframe mode rendering. | |
| virtual void | setDdsFlip (bool flip) |
| Turn on/off dds flip. | |
| virtual bool | wireframeRendering () const |
| Check wireframe status. | |
| virtual void | setShadowState (bool enabled, int quality, bool entity, bool prop, bool terrain) |
| Set the shadow mode and settings. | |
| virtual bool | shadowsEnabled () const |
| Set whether terrain scaling is on. | |
| virtual int | shadowQuality () const |
| Set whether terrain scaling is on. | |
| virtual bool | entityShadowsEnabled () const |
| Set whether terrain scaling is on. | |
| virtual bool | propShadowsEnabled () const |
| Set whether terrain scaling is on. | |
| virtual bool | terrainShadowsEnabled () const |
| Set whether terrain scaling is on. | |
| void | setTerrainScalingEnabled (bool enabled) |
| Set whether terrain scaling is on. | |
| void | setTerrainScaleFactor (double scaleFactor) |
| Set the terrain scale factor (only used if scaling is on) | |
| virtual bool | makeContextCurrent () |
| Attempt to make a context current. | |
| DtFontManager & | fontManager () |
| Get the font manager. | |
| const DtFontManager & | fontManager () const |
| Set whether terrain scaling is on. | |
| DtEffectManager & | effectManager () |
| Get the font manager. | |
| const DtEffectManager & | effectManager () const |
| Set whether terrain scaling is on. | |
Public Member Functions inherited from makVrv::DtRenderer | |
| DtRenderer (DtDe &de) | |
| CTOR. | |
| virtual | ~DtRenderer () |
| DTOR. | |
| virtual void | postUpdate () |
| Called after tick; time to update observers. | |
| DtObserverObjectManager * | observerObjectManager () |
| Get the observer object manager. | |
| DtTickableManagerInterface & | tickableManager () |
| Get the scene manager's attachable scene object manager. | |
| const DtTickableManagerInterface & | tickableManager () const |
| DtOverlayManager & | overlayManager () |
| Get the manager's over the 2D overlays. | |
| const DtOverlayManager & | overlayManager () const |
| void | createManagers () |
| Create overlay manager, must be called after creating the renderer as the manager may expect a specific subclasses of renderer. | |
Protected Member Functions | |
| DtVrfOsgRenderer (makVrv::DtDe &de) | |
| CTOR This is protected, use the creator instead. | |
Protected Member Functions inherited from makVrv::DtOsgRenderer | |
| virtual void | moveRootToShadowRoot (SceneRoot targetRoot, osg::Group *shadowRoot, osg::Group *modelSetRoot) |
| Move a target root out of its model set root and into the shadow root. | |
| virtual osgViewer::ViewerBase & | viewer () |
| Returns the current OSG viewer. | |
| virtual void | onActiveStatsOverlayChanged (DtStatsSet *activeStats) |
| Start displaying the active stats overlay. | |
| DtOsgRenderer (DtDe &de) | |
| CTOR This is protected, use the creator instead. | |
| osg::Group * | sgRenderRoot () |
| Get the scene graph render root. | |
| osg::Group * | sgEnvironmentRoot () |
| Get the environment root which controls the scene's lighting and other global state. | |
| osg::Group * | sgPropsRoot () |
| Get the props root node. | |
| osg::Group * | sgTerrainRoot () |
| Get the terrains root node. | |
| osg::Group * | sgScaledTerrainRoot () |
| Get the active terrain root when terrain scaling is on. | |
| osg::Group * | sgScaledPropsRoot () |
| Get the active props root when terrain scaling is on. | |
| osg::Group * | sgModelSetRoot (int modelSet) |
| Get the root for a given modelSet. | |
| osg::Group * | sgVisualizerRoot (int modelSet, int visualizerType, bool createOnAccess=true) |
| Get the root for visual models of a specific type in a specific model set If the root does not exist and createOnAccess is true, it will be created and returned; otherwise, returns 0. | |
| osg::Group * | sgChannelRoot (int modelSet, DtChannel *channel, bool createOnAccess=true) |
| Get the root for the given channel. | |
| void | slot_onViewCreated () |
| When a window is created, the fill out its myOsgWindowManager pointer. | |
| void | slot_onViewToBeDestroyed () |
| When a window is about to be destroyed, check if its the last window and if so, null out the myOsgWindowManager pointer. | |
| void | slot_onWireframeModeChanged (bool mode) |
| recieve signals from the shared state about wireframe mode | |
| void | slot_onDdsFlipChanged (bool flip) |
| recieve signals from the shared state about dds flip mode | |
| virtual void | slot_onPerformanceOverlayOnChanged (bool mode) |
| receive signals from the shared state about performance overlays | |
| void | slot_onShadowStateChanged (bool shadowMode, int shadowQual, bool entityMode, bool propMode, bool terrainMode) |
| recieve signals from the shared state abotu the shadow state | |
| void | slot_onTerrainScalingEnabledChanged (bool enabled) |
| receive signals from the shared state about the terrain scaling state | |
| void | slot_onTerrainScaleFactorChanged (double scaleFactor) |
| receive signals from the shared state about the terrain scale factor | |
| void | slot_onCoordinateSystemChanged (const std::string &coordinateSystemType) |
| receive signals from the shared state about coordinate system changes | |
| void | advanceTime () |
| Advance time, necessary when running as a slave. | |
| void | updateSceneGraph () |
| Under each model set group is another channel group for each visualizer type. | |
| void | clearEmptyWindows () |
| This method checks for windows that exist but have no channels. | |
| virtual void | removeShadows () |
| removes the shadows from the tree and restores any children to the scene root | |
| virtual void | createShadowRoots () |
| creates a shadowed scene and adds it to the scene root | |
| virtual bool | exportTerrainAndProps (const std::string &) |
| Saves terrain geometry and props to specified file. | |
| virtual osg::Group * | createModelSetRoot (int modelSet) |
| Under each model set group is another channel group for each visualizer type. | |
| virtual osg::Group * | createVisualizerRoot (int modelSet, int visualizer) |
| Under each model set group is another channel group for each visualizer type. | |
| virtual osg::Group * | createChannelRoot (int modelSet, DtChannel *) |
| Create a root that is associated with the channel. | |
| virtual makOsgShadowFX::DtShadowEffect * | createModelSetSpecificShadowRootAndEffect (int modelSet) |
| Under each model set group is another channel group for each visualizer type. | |
| virtual osg::Group * | modelSetSpecificShadowRoot (int modelSet) |
| Under each model set group is another channel group for each visualizer type. | |
| virtual makOsgShadowFX::DtShadowEffect * | modelSetSpecificShadowEffect (int modelSet) |
| Under each model set group is another channel group for each visualizer type. | |
| virtual void | updateTerrainScaling () |
| Under each model set group is another channel group for each visualizer type. | |
| void | swapChildren (osg::Node *currentChild, osg::Node *newChild) |
| Under each model set group is another channel group for each visualizer type. | |
Friends | |
| class | DtVrfOsgRendererCreator |
Additional Inherited Members | |
Public Types inherited from makVrv::DtOsgRenderer | |
| enum | RootDomain { RenderSystem, Environment, Terrain, Prop, ModelSetSpecific, VisualizerTypeSpecific, ChannelSpecific } |
| Enumerations to indicate the part of the scene graph to interact with. More... | |
| typedef std::vector< SceneRoot > | RootList |
| A list of DtOsgRenderer::SceneRoots. | |
Static Public Member Functions inherited from makVrv::DtOsgRenderer | |
| static DtOsgRenderer * | findInstance (DtDe &de) |
| Attempt to get the Osg renderer for the de. | |
| static SceneRoot | renderRoot () |
| Under each model set group is another channel group for each visualizer type. | |
| static SceneRoot | environmentRoot () |
| Under each model set group is another channel group for each visualizer type. | |
| static SceneRoot | terrainRoot () |
| Under each model set group is another channel group for each visualizer type. | |
| static SceneRoot | propRoot () |
| Under each model set group is another channel group for each visualizer type. | |
| static SceneRoot | modelSetRoot (int modelSet) |
| Under each model set group is another channel group for each visualizer type. | |
| static SceneRoot | visualizerTypeRoot (int modelSet, int visualizerType) |
| Under each model set group is another channel group for each visualizer type. | |
| static SceneRoot | channelRoot (int modelSet, DtChannel *channel) |
| Under each model set group is another channel group for each visualizer type. | |
Public Attributes inherited from makVrv::DtOsgRenderer | |
| boost::signal< void(int modelSet, int visualType) > | signal_visualizerRootAdded |
| Set whether terrain scaling is on. | |
| boost::signal< void(DtChannel *) > | signal_channelRootAdded |
| Set whether terrain scaling is on. | |
Public Attributes inherited from makVrv::DtRenderer | |
| boost::signal< void(double simTime)> | signal_update |
| Signal used to update systems. | |
| boost::signal< void(double simTime)> | signal_postUpdate |
| Signal used to update systems. | |
| boost::signal< void()> | signal_releaseResources |
| Signal used to update systems. | |
Static Public Attributes inherited from makVrv::DtOsgRenderer | |
| static const int | SKY_RENDERBIN = -10 |
| static const int | CLOUDS_RENDERBIN = 9 |
| static const int | COCKPIT_RENDERBIN = 25 |
Protected Types inherited from makVrv::DtOsgRenderer | |
| typedef boost::unordered_map < int, osg::ref_ptr < osg::Group > > | RootMap |
| Under each model set group is another channel group for each visualizer type. | |
| typedef boost::unordered_map < int, osg::ref_ptr < makOsgShadowFX::DtShadowEffect > > | ShadowEffectMap |
| Under each model set group is another channel group for each visualizer type. | |
| typedef int | ModelSet |
| Under each model set group is another channel group for each visualizer type. | |
| typedef int | VisualizerType |
| Under each model set group is another channel group for each visualizer type. | |
| typedef boost::unordered_map < ModelSet, osg::ref_ptr < osg::Group > > | ModelSetRootMap |
| Under each model set group is another channel group for each visualizer type. | |
| typedef boost::unordered_map < VisualizerType, osg::ref_ptr < osg::Group > > | VisualizerTypeRootMap |
| Under each model set group is another channel group for each visualizer type. | |
| typedef boost::unordered_map < ModelSet, VisualizerTypeRootMap > | ModelSetVisualizerTypeRootMap |
| Under each model set group is another channel group for each visualizer type. | |
| typedef boost::unordered_map < DtChannel *, ModelSetRootMap > | ChannelRootMap |
| DtChannelSpecificGroup that contains only the channel it represents. | |
Protected Attributes inherited from makVrv::DtOsgRenderer | |
| DtSceneGraph * | mySceneGraph |
| Under each model set group is another channel group for each visualizer type. | |
| DtFontManager * | myFontManager |
| Under each model set group is another channel group for each visualizer type. | |
| DtEffectManager * | myEffectManager |
| Under each model set group is another channel group for each visualizer type. | |
| DtOsgWindowManager * | myOsgWindowManager |
| Under each model set group is another channel group for each visualizer type. | |
| osg::ref_ptr< osgViewer::Viewer > | myDefaultViewer |
| This viewer exists so that when there are no displays, windows, or channels, the scene can be updated and kept current. | |
| osg::ref_ptr< osg::Group > | myRenderRoot |
| Under each model set group is another channel group for each visualizer type. | |
| osg::ref_ptr< osg::Group > | myEnvironmentRoot |
| Under each model set group is another channel group for each visualizer type. | |
| osg::ref_ptr< osg::Group > | myTerrainRoot |
| Under each model set group is another channel group for each visualizer type. | |
| osg::ref_ptr< osg::Group > | myPropsRoot |
| Under each model set group is another channel group for each visualizer type. | |
| osg::ref_ptr < DtFastMatrixTransform > | myScaledTerrainRoot |
| Under each model set group is another channel group for each visualizer type. | |
| osg::ref_ptr < DtFastMatrixTransform > | myScaledPropsRoot |
| Under each model set group is another channel group for each visualizer type. | |
| osg::Matrix | myScaleMatrix |
| Under each model set group is another channel group for each visualizer type. | |
| ModelSetRootMap | myModelSetMap |
| Under each model set group is another channel group for each visualizer type. | |
| ModelSetVisualizerTypeRootMap | myVisualizerRootMap |
| Under each model set group is another channel group for each visualizer type. | |
| ChannelRootMap | myChannelRootMap |
| Under each model set group is another channel group for each visualizer type. | |
| ShadowEffectMap | myShadowEffectMap |
| Under each model set group is another channel group for each visualizer type. | |
| RootMap | myShadowRootMap |
| Under each model set group is another channel group for each visualizer type. | |
| osg::ref_ptr< osgUtil::RenderBin > | myCloudBin |
| Under each model set group is another channel group for each visualizer type. | |
| osg::ref_ptr< osgUtil::RenderBin > | mySkyBin |
| Under each model set group is another channel group for each visualizer type. | |
| osg::ref_ptr< osgUtil::RenderBin > | myCockpitBin |
| Under each model set group is another channel group for each visualizer type. | |
| bool | myWireframeOn |
| Under each model set group is another channel group for each visualizer type. | |
| bool | myShadowsEnabled |
| Under each model set group is another channel group for each visualizer type. | |
| int | myShadowQuality |
| Under each model set group is another channel group for each visualizer type. | |
| bool | myEntityShadowMode |
| Under each model set group is another channel group for each visualizer type. | |
| bool | myPropShadowMode |
| Under each model set group is another channel group for each visualizer type. | |
| bool | myTerrainShadowMode |
| Under each model set group is another channel group for each visualizer type. | |
| DtOsgPerformanceStatsOverlay * | myPerformanceStatsOverlay |
| Under each model set group is another channel group for each visualizer type. | |
| double | myTerrainScaleFactor |
| Under each model set group is another channel group for each visualizer type. | |
| bool | myTerrainScaleFactorChanged |
| Under each model set group is another channel group for each visualizer type. | |
| bool | myTerrainScalingEnabled |
| Under each model set group is another channel group for each visualizer type. | |
| bool | myTerrainScalingEnabledChanged |
| Under each model set group is another channel group for each visualizer type. | |
Protected Attributes inherited from makVrv::DtRenderer | |
| DtDe & | myDe |
| DtObserverObjectManager * | myObserverObjectManager |
| DtTickableManagerInterface * | myTickableManager |
| DtOverlayManager * | myOverlayManager |
Static Protected Attributes inherited from makVrv::DtOsgRenderer | |
| static SceneRoot | theRenderRoot |
| Under each model set group is another channel group for each visualizer type. | |
| static SceneRoot | theEnvironmentRoot |
| Under each model set group is another channel group for each visualizer type. | |
| static SceneRoot | theTerrainRoot |
| Under each model set group is another channel group for each visualizer type. | |
| static SceneRoot | thePropRoot |
| Under each model set group is another channel group for each visualizer type. | |
Contains makVrv::DtVrfOsgRenderer class.
Vrf OSG Renderer. This class exists to install the DtVrfViewer
|
virtual |
DTOR.
|
protected |
CTOR This is protected, use the creator instead.
|
friend |