VR-Forces 4.0.4 Class Documentation
Classes | Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Friends
makVrv::DtOsgRenderer Class Reference

The DtOsgRenderer is the component responsible for rendering 3D images onto the screen via OpenSceneGraph The component responsible for drawing 3D images onto a screen is the DtRenderer. More...

Inheritance diagram for makVrv::DtOsgRenderer:
Inheritance graph
[legend]

List of all members.

Classes

class  SceneRoot
 Abstract index into the scene graph. More...

Public Types

enum  RootDomain {
  RenderSystem, Environment, Terrain, Prop,
  ModelSetSpecific, VisualizerTypeSpecific
}
 Enumerations to indicate the part of the scene graph to interact with. More...
typedef std::vector< SceneRootRootList
 A list of DtOsgRenderer::SceneRoots.

Public Member Functions

virtual ~DtOsgRenderer ()
 DTOR.
virtual void update ()
 Add functionality to update, update dynamic objects.
virtual void render ()
 Render.
virtual void resetSceneGraph ()
 Removes all nodes from the scene graph.
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 setViewToScene (osgViewer::View &view)
 Set the sceneData of a view to the top of the scene graph.
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.

Static Public Member Functions

static DtOsgRendererfindInstance (DtDe &de)
 Attempt to get the Osg renderer for the de.

Static Public Attributes

static const int SKY_RENDERBIN = -10
static const int CLOUDS_RENDERBIN = 9
static const int COCKPIT_RENDERBIN = 25

Friends

class DtOsgRendererCreator
class DtSceneGraphTreeLogic

Get shadow mode and settings

boost::signal< void(int
modelSet, int visualType) > 
signal_visualizerRootAdded
 Set whether terrain scaling is on.
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.
DtFontManagerfontManager ()
 Get the font manager.
const DtFontManagerfontManager () const
 Set whether terrain scaling is on.
DtEffectManagereffectManager ()
 Get the font manager.
const DtEffectManagereffectManager () const
 Set whether terrain scaling is on.

Utility functions for getting scene root index objects.

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.
DtFontManagermyFontManager
 Under each model set group is another channel group for each visualizer type.
DtEffectManagermyEffectManager
 Under each model set group is another channel group for each visualizer type.
DtOsgWindowManagermyOsgWindowManager
 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.
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.
DtOsgPerformanceStatsOverlaymyPerformanceStatsOverlay
 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.
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.
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.
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.
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
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.
virtual osg::Group * getContainerRoot (SceneRoot root, bool createOnAccess)
 Under each model set group is another channel group for each visualizer type.
virtual osg::Group * getActiveRoot (SceneRoot root)
 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.

Detailed Description

The DtOsgRenderer is the component responsible for rendering 3D images onto the screen via OpenSceneGraph The component responsible for drawing 3D images onto a screen is the DtRenderer.

Each display engine owns one. The DtRenderer provides an interface for updating the scene graph and rendering the scene. Its update() and render() functions are called each display engine tick.

The core VR-Vantage Toolkit framework abstracts away from the underlying rendering implementation. This separation ensures that the rendering-independent code remains independent of OSG, while the rendering code exists in the libraries that depend on OSG. (VR-Vantage can support alternate rendering solutions.) The DtOsgRenderer is the OSG implementation of the DtRenderer and draws 3D images via OpenSceneGraph.


Member Typedef Documentation

A list of DtOsgRenderer::SceneRoots.

typedef boost::unordered_map<int, osg::ref_ptr<osg::Group> > makVrv::DtOsgRenderer::RootMap [protected]

Under each model set group is another channel group for each visualizer type.

So we have a map of visualizer type groups, one per model set

typedef boost::unordered_map<int, osg::ref_ptr<makOsgShadowFX::DtShadowEffect> > makVrv::DtOsgRenderer::ShadowEffectMap [protected]

Under each model set group is another channel group for each visualizer type.

So we have a map of visualizer type groups, one per model set

typedef int makVrv::DtOsgRenderer::ModelSet [protected]

Under each model set group is another channel group for each visualizer type.

So we have a map of visualizer type groups, one per model set

typedef int makVrv::DtOsgRenderer::VisualizerType [protected]

Under each model set group is another channel group for each visualizer type.

So we have a map of visualizer type groups, one per model set

typedef boost::unordered_map<ModelSet, osg::ref_ptr<osg::Group> > makVrv::DtOsgRenderer::ModelSetRootMap [protected]

Under each model set group is another channel group for each visualizer type.

So we have a map of visualizer type groups, one per model set

typedef boost::unordered_map<VisualizerType, osg::ref_ptr<osg::Group> > makVrv::DtOsgRenderer::VisualizerTypeRootMap [protected]

Under each model set group is another channel group for each visualizer type.

So we have a map of visualizer type groups, one per model set

Under each model set group is another channel group for each visualizer type.

So we have a map of visualizer type groups, one per model set


Member Enumeration Documentation

Enumerations to indicate the part of the scene graph to interact with.

Enumerator:
RenderSystem 
Environment 
Terrain 
Prop 
ModelSetSpecific 
VisualizerTypeSpecific 

Constructor & Destructor Documentation

DTOR.

CTOR This is protected, use the creator instead.


Member Function Documentation

Attempt to get the Osg renderer for the de.

If the de is not initialized or the Renderer is of a different type the returned pointer will be null.

Return values:
0If the de does not have an OSG renderer.
virtual void makVrv::DtOsgRenderer::update ( ) [virtual]

Add functionality to update, update dynamic objects.

Reimplemented from makVrv::DtRenderer.

virtual void makVrv::DtOsgRenderer::render ( ) [virtual]

Render.

Implements makVrv::DtRenderer.

virtual void makVrv::DtOsgRenderer::resetSceneGraph ( ) [virtual]

Removes all nodes from the scene graph.

Implements makVrv::DtRenderer.

virtual void makVrv::DtOsgRenderer::addNodeToRoot ( osg::Node *  node,
SceneRoot  sr,
bool  createOnAccess = true 
) [virtual]

Add a node to the specified SceneRoot.

virtual void makVrv::DtOsgRenderer::removeNodeFromRoot ( osg::Node *  node,
SceneRoot  sr 
) [virtual]

Remove a node from the specified SceneRoot.

virtual void makVrv::DtOsgRenderer::traverseRoot ( osg::NodeVisitor &  nv,
SceneRoot  sr 
) [virtual]

Traverse from the specified SceneRoot with the given visitor.

virtual void makVrv::DtOsgRenderer::setSceneRootNodeMask ( SceneRoot  sr,
osg::Node::NodeMask  nodemask 
) [virtual]

Set the nodemask of a SceneRoot.

virtual osg::Node::NodeMask makVrv::DtOsgRenderer::sceneRootNodeMask ( SceneRoot  sr) [virtual]

Get the nodemask of a SceneRoot.

virtual osg::BoundingSphere makVrv::DtOsgRenderer::sceneRootBound ( SceneRoot  sr) [virtual]

Get the bounding sphere of sceneRoot.

virtual osg::BoundingSphere makVrv::DtOsgRenderer::sceneRootListBound ( const RootList srList) [virtual]

Get the bounding sphere of list of sceneRoots.

virtual void makVrv::DtOsgRenderer::addChannelToModelSetRoot ( int  modelSetId,
DtChannel channel 
) [virtual]

Set the specified channel to render a modelSet root.

virtual void makVrv::DtOsgRenderer::removeChannelFromModelSetRoot ( int  modelSetId,
DtChannel channel 
) [virtual]

Stop the specified channel from rendering a modelSet root.

virtual void makVrv::DtOsgRenderer::addChannelToVisualizerRoot ( int  modelSetId,
int  visualizerType,
DtChannel channel 
) [virtual]

Set the specified channel to render a visualizer type root.

virtual void makVrv::DtOsgRenderer::removeChannelFromVisualizerRoot ( int  modelSetId,
int  visualizerType,
DtChannel channel 
) [virtual]

Stop the specified channel from rendering a visualizer type root.

virtual void makVrv::DtOsgRenderer::setViewToScene ( osgViewer::View &  view) [virtual]

Set the sceneData of a view to the top of the scene graph.

virtual osg::Group* makVrv::DtOsgRenderer::findSceneRootChildByName ( SceneRoot  parent,
const std::string &  rootName 
) [virtual]

Look up a root by name in the parent specified by SceneRoot.

This should not be used to access roots that are created by Vantage. It Is provided for plugins to find the roots possibly created by other plugins (such as multiple GlStudio plugins, for example)

virtual void makVrv::DtOsgRenderer::releaseResources ( ) [inline, virtual]

Release all openGL objects in the scene graph.

Implements makVrv::DtRenderer.

virtual void makVrv::DtOsgRenderer::releaseResources ( osg::State *  state) [virtual]

Release all openGL objects in the scene graph.

void makVrv::DtOsgRenderer::setRootNode ( osg::Group *  ,
bool  copyChildrenFromOldRoot 
)

Set the new scene root node, and optionally copy the old root children.

Reset the scene root node back to the original node.

void makVrv::DtOsgRenderer::registerPagedLODs ( osg::Node *  node)

Register any paged LOD's with all of the existing database pagers.

Register any paged LOD's with all of the existing database pagers.

Set whether IG performance stats overlay is enabled.

Get whether IG performance stats overlay is enabled.

virtual void makVrv::DtOsgRenderer::setWireframeRendering ( bool  enabled) [virtual]

Turn on/off wireframe mode rendering.

Implements makVrv::DtRenderer.

virtual void makVrv::DtOsgRenderer::setDdsFlip ( bool  flip) [virtual]

Turn on/off dds flip.

virtual bool makVrv::DtOsgRenderer::wireframeRendering ( ) const [virtual]

Check wireframe status.

Implements makVrv::DtRenderer.

virtual void makVrv::DtOsgRenderer::setShadowState ( bool  enabled,
int  quality,
bool  entity,
bool  prop,
bool  terrain 
) [virtual]

Set the shadow mode and settings.

Implements makVrv::DtRenderer.

virtual bool makVrv::DtOsgRenderer::shadowsEnabled ( ) const [virtual]

Set whether terrain scaling is on.

Implements makVrv::DtRenderer.

virtual int makVrv::DtOsgRenderer::shadowQuality ( ) const [virtual]

Set whether terrain scaling is on.

Implements makVrv::DtRenderer.

Set whether terrain scaling is on.

Implements makVrv::DtRenderer.

virtual bool makVrv::DtOsgRenderer::propShadowsEnabled ( ) const [virtual]

Set whether terrain scaling is on.

Implements makVrv::DtRenderer.

Set whether terrain scaling is on.

Implements makVrv::DtRenderer.

Set whether terrain scaling is on.

void makVrv::DtOsgRenderer::setTerrainScaleFactor ( double  scaleFactor)

Set the terrain scale factor (only used if scaling is on)

Attempt to make a context current.

Returns:
true if a context was made current.

Implements makVrv::DtRenderer.

Get the font manager.

Set whether terrain scaling is on.

Get the font manager.

Set whether terrain scaling is on.

static SceneRoot makVrv::DtOsgRenderer::renderRoot ( ) [inline, static]

Under each model set group is another channel group for each visualizer type.

So we have a map of visualizer type groups, one per model set

Under each model set group is another channel group for each visualizer type.

So we have a map of visualizer type groups, one per model set

static SceneRoot makVrv::DtOsgRenderer::terrainRoot ( ) [inline, static]

Under each model set group is another channel group for each visualizer type.

So we have a map of visualizer type groups, one per model set

static SceneRoot makVrv::DtOsgRenderer::propRoot ( ) [inline, static]

Under each model set group is another channel group for each visualizer type.

So we have a map of visualizer type groups, one per model set

static SceneRoot makVrv::DtOsgRenderer::modelSetRoot ( int  modelSet) [inline, static]

Under each model set group is another channel group for each visualizer type.

So we have a map of visualizer type groups, one per model set

static SceneRoot makVrv::DtOsgRenderer::visualizerTypeRoot ( int  modelSet,
int  visualizerType 
) [inline, static]

Under each model set group is another channel group for each visualizer type.

So we have a map of visualizer type groups, one per model set

virtual void makVrv::DtOsgRenderer::onActiveStatsOverlayChanged ( DtStatsSet activeStats) [protected, virtual]

Start displaying the active stats overlay.

osg::Group* makVrv::DtOsgRenderer::sgRenderRoot ( ) [protected]

Get the scene graph render root.

This node will not change and should only be accessed when connecting a window to it.

osg::Group* makVrv::DtOsgRenderer::sgEnvironmentRoot ( ) [protected]

Get the environment root which controls the scene's lighting and other global state.

osg::Group* makVrv::DtOsgRenderer::sgPropsRoot ( ) [protected]

Get the props root node.

osg::Group* makVrv::DtOsgRenderer::sgTerrainRoot ( ) [protected]

Get the terrains root node.

osg::Group* makVrv::DtOsgRenderer::sgScaledTerrainRoot ( ) [protected]

Get the active terrain root when terrain scaling is on.

osg::Group* makVrv::DtOsgRenderer::sgScaledPropsRoot ( ) [protected]

Get the active props root when terrain scaling is on.

osg::Group* makVrv::DtOsgRenderer::sgModelSetRoot ( int  modelSet) [protected]

Get the root for a given modelSet.

Nodes aren't put directly under here (except the model set-specific visualizer type nodes) but channels subscribe and unsubscribe to these

Returns a DtChannelSpecificGroup or an osg::Group

osg::Group* makVrv::DtOsgRenderer::sgVisualizerRoot ( int  modelSet,
int  visualizerType,
bool  createOnAccess = true 
) [protected]

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.

Returns a DtChannelSpecificGroup or an osg::Group

When a window is created, the fill out its myOsgWindowManager pointer.

When a window is about to be destroyed, check if its the last window and if so, null out the myOsgWindowManager pointer.

recieve signals from the shared state about wireframe mode

recieve signals from the shared state about dds flip mode

virtual void makVrv::DtOsgRenderer::slot_onPerformanceOverlayOnChanged ( bool  mode) [protected, virtual]

receive signals from the shared state about performance overlays

void makVrv::DtOsgRenderer::slot_onShadowStateChanged ( bool  shadowMode,
int  shadowQual,
bool  entityMode,
bool  propMode,
bool  terrainMode 
) [protected]

recieve signals from the shared state abotu the shadow state

receive signals from the shared state about the terrain scaling state

void makVrv::DtOsgRenderer::slot_onTerrainScaleFactorChanged ( double  scaleFactor) [protected]

receive signals from the shared state about the terrain scale factor

void makVrv::DtOsgRenderer::slot_onCoordinateSystemChanged ( const std::string &  coordinateSystemType) [protected]

receive signals from the shared state about coordinate system changes

void makVrv::DtOsgRenderer::advanceTime ( ) [protected]

Advance time, necessary when running as a slave.

Under each model set group is another channel group for each visualizer type.

So we have a map of visualizer type groups, one per model set

This method checks for windows that exist but have no channels.

It clears them each frame so that they don't have garbage on them.

virtual void makVrv::DtOsgRenderer::removeShadows ( ) [protected, virtual]

removes the shadows from the tree and restores any children to the scene root

virtual void makVrv::DtOsgRenderer::createShadowRoots ( ) [protected, virtual]

creates a shadowed scene and adds it to the scene root

virtual bool makVrv::DtOsgRenderer::exportTerrainAndProps ( const std::string &  ) [protected, virtual]

Saves terrain geometry and props to specified file.

This file will be saved in the format specified by the file extension. Currently only the .gdb extension is supported

Implements makVrv::DtRenderer.

virtual osg::Group* makVrv::DtOsgRenderer::createModelSetRoot ( int  modelSet) [protected, virtual]

Under each model set group is another channel group for each visualizer type.

So we have a map of visualizer type groups, one per model set

virtual osg::Group* makVrv::DtOsgRenderer::createVisualizerRoot ( int  modelSet,
int  visualizer 
) [protected, virtual]

Under each model set group is another channel group for each visualizer type.

So we have a map of visualizer type groups, one per model set

Under each model set group is another channel group for each visualizer type.

So we have a map of visualizer type groups, one per model set

virtual osg::Group* makVrv::DtOsgRenderer::modelSetSpecificShadowRoot ( int  modelSet) [protected, virtual]

Under each model set group is another channel group for each visualizer type.

So we have a map of visualizer type groups, one per model set

Under each model set group is another channel group for each visualizer type.

So we have a map of visualizer type groups, one per model set

virtual void makVrv::DtOsgRenderer::updateTerrainScaling ( ) [protected, virtual]

Under each model set group is another channel group for each visualizer type.

So we have a map of visualizer type groups, one per model set

virtual osg::Group* makVrv::DtOsgRenderer::getContainerRoot ( SceneRoot  root,
bool  createOnAccess 
) [protected, virtual]

Under each model set group is another channel group for each visualizer type.

So we have a map of visualizer type groups, one per model set

virtual osg::Group* makVrv::DtOsgRenderer::getActiveRoot ( SceneRoot  root) [protected, virtual]

Under each model set group is another channel group for each visualizer type.

So we have a map of visualizer type groups, one per model set

void makVrv::DtOsgRenderer::swapChildren ( osg::Node *  currentChild,
osg::Node *  newChild 
) [protected]

Under each model set group is another channel group for each visualizer type.

So we have a map of visualizer type groups, one per model set


Friends And Related Function Documentation

friend class DtOsgRendererCreator [friend]
friend class DtSceneGraphTreeLogic [friend]

Member Data Documentation

const int makVrv::DtOsgRenderer::SKY_RENDERBIN = -10 [static]
boost::signal< void ( int modelSet, int visualType ) > makVrv::DtOsgRenderer::signal_visualizerRootAdded

Set whether terrain scaling is on.

Under each model set group is another channel group for each visualizer type.

So we have a map of visualizer type groups, one per model set

Under each model set group is another channel group for each visualizer type.

So we have a map of visualizer type groups, one per model set

Under each model set group is another channel group for each visualizer type.

So we have a map of visualizer type groups, one per model set

osg::ref_ptr<osgViewer::Viewer> makVrv::DtOsgRenderer::myDefaultViewer [protected]

This viewer exists so that when there are no displays, windows, or channels, the scene can be updated and kept current.

This way when a display, window, channel is created, the objects in the scene graph are current and will match other IG instances. It only gets updated when there myOsgWindowManager is null. It also never renders.

osg::ref_ptr<osg::Group> makVrv::DtOsgRenderer::myRenderRoot [protected]

Under each model set group is another channel group for each visualizer type.

So we have a map of visualizer type groups, one per model set

osg::ref_ptr<osg::Group> makVrv::DtOsgRenderer::myEnvironmentRoot [protected]

Under each model set group is another channel group for each visualizer type.

So we have a map of visualizer type groups, one per model set

osg::ref_ptr<osg::Group> makVrv::DtOsgRenderer::myTerrainRoot [protected]

Under each model set group is another channel group for each visualizer type.

So we have a map of visualizer type groups, one per model set

osg::ref_ptr<osg::Group> makVrv::DtOsgRenderer::myPropsRoot [protected]

Under each model set group is another channel group for each visualizer type.

So we have a map of visualizer type groups, one per model set

Under each model set group is another channel group for each visualizer type.

So we have a map of visualizer type groups, one per model set

Under each model set group is another channel group for each visualizer type.

So we have a map of visualizer type groups, one per model set

osg::Matrix makVrv::DtOsgRenderer::myScaleMatrix [protected]

Under each model set group is another channel group for each visualizer type.

So we have a map of visualizer type groups, one per model set

Under each model set group is another channel group for each visualizer type.

So we have a map of visualizer type groups, one per model set

Under each model set group is another channel group for each visualizer type.

So we have a map of visualizer type groups, one per model set

Under each model set group is another channel group for each visualizer type.

So we have a map of visualizer type groups, one per model set

Under each model set group is another channel group for each visualizer type.

So we have a map of visualizer type groups, one per model set

osg::ref_ptr<osgUtil::RenderBin> makVrv::DtOsgRenderer::myCloudBin [protected]

Under each model set group is another channel group for each visualizer type.

So we have a map of visualizer type groups, one per model set

osg::ref_ptr<osgUtil::RenderBin> makVrv::DtOsgRenderer::mySkyBin [protected]

Under each model set group is another channel group for each visualizer type.

So we have a map of visualizer type groups, one per model set

osg::ref_ptr<osgUtil::RenderBin> makVrv::DtOsgRenderer::myCockpitBin [protected]

Under each model set group is another channel group for each visualizer type.

So we have a map of visualizer type groups, one per model set

Under each model set group is another channel group for each visualizer type.

So we have a map of visualizer type groups, one per model set

Under each model set group is another channel group for each visualizer type.

So we have a map of visualizer type groups, one per model set

Under each model set group is another channel group for each visualizer type.

So we have a map of visualizer type groups, one per model set

Under each model set group is another channel group for each visualizer type.

So we have a map of visualizer type groups, one per model set

Under each model set group is another channel group for each visualizer type.

So we have a map of visualizer type groups, one per model set

Under each model set group is another channel group for each visualizer type.

So we have a map of visualizer type groups, one per model set

Under each model set group is another channel group for each visualizer type.

So we have a map of visualizer type groups, one per model set

Under each model set group is another channel group for each visualizer type.

So we have a map of visualizer type groups, one per model set

Under each model set group is another channel group for each visualizer type.

So we have a map of visualizer type groups, one per model set

Under each model set group is another channel group for each visualizer type.

So we have a map of visualizer type groups, one per model set

Under each model set group is another channel group for each visualizer type.

So we have a map of visualizer type groups, one per model set

Under each model set group is another channel group for each visualizer type.

So we have a map of visualizer type groups, one per model set

Under each model set group is another channel group for each visualizer type.

So we have a map of visualizer type groups, one per model set

Under each model set group is another channel group for each visualizer type.

So we have a map of visualizer type groups, one per model set

Under each model set group is another channel group for each visualizer type.

So we have a map of visualizer type groups, one per model set


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)