VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtOsgSceneConnector Class Reference

DtOsgSceneConnector is used by models to create an OSG position/orientation transform so that it can place its associated model instance into the scene graph. More...

List of all members.

Public Member Functions

 DtOsgSceneConnector (DtDe &)
 CTOR.
 ~DtOsgSceneConnector ()
 DTOR.
void addToScene (DtOsgModelInstance *osgModelInstance, const DtUniqueID &sceneObjectId, int modelSet, int visualizerType)
 Add the connector to the scene.
void addToSceneAsProp (DtOsgModelInstance *osgModelInstance, const DtUniqueID &sceneObjectId)
 Form without modelSet / visualizerType used for props.
void removeFromScene (DtOsgModelInstance *osgModelInstance)
 Remove the connector from the scene.
void setPosition (const DtVector &position)
 Set the position of the connector.
void setOrientation (const DtTaitBryan &orientation)
 Set the orientation of the connector.
void setVisible (bool isVisible)
 Get whether the attachable scene connector is visible.
void setSwitchedOff (bool switched)
 Set whether the connector is switched off.
bool switchedOff () const
 Is the connector switched off.
bool isVisible () const
 Get whether the attachable scene connector is visible.
void setModelScalingEnabled (bool b)
 Set whether model scaling is enabled. Default is false.
bool modelScalingEnabled () const
 Get whether model scaling is enabled.
void setLocalModelScalingEnabled (bool enabled)
 Set whether local model scaling is enabled.
bool localModelScalingEnabled () const
 Get whether local model scaling is enabled.
void setLocalModelScalingAmount (float localScl)
 Set the amount of scaling to apply when local scaling is enabled.
double localModelScalingAmount () const
 Get the amount of local model scaling.
DtOsgRenderer::SceneRoot findSceneParent ()
 Get the scene parent.
osg::Group * groupRoot ()
 Get the untransformed group node.
osg::MatrixTransform * transformRoot ()
 Get the transformed root.
void setSolidFlags (bool solid)
 Set that this scene connector root node should be marked as solid.

Protected Member Functions

void setTransformModelScalingState ()
 Add or remove nodeFlag to indicate whether this node can be model-scaled.

Protected Attributes

osg::ref_ptr
< DtFastMatrixTransform
myTransformNode
osg::ref_ptr< DtFastGroupmyGroupNode
osg::ref_ptr< DtFastGroupmyHiddenRoot
osg::ref_ptr< osg::Switch > mySwitch
int myModelSet
int myVisualizerType
bool myIsProp
bool myModelScalingEnabled
bool myLocalModelScalingEnabled
float myLocalModelScalingAmount
float myCurrentLocalModelScaling
DtDemyDe

Detailed Description

DtOsgSceneConnector is used by models to create an OSG position/orientation transform so that it can place its associated model instance into the scene graph.


Constructor & Destructor Documentation

CTOR.

DTOR.


Member Function Documentation

void makVrv::DtOsgSceneConnector::addToScene ( DtOsgModelInstance osgModelInstance,
const DtUniqueID sceneObjectId,
int  modelSet,
int  visualizerType 
)

Add the connector to the scene.

void makVrv::DtOsgSceneConnector::addToSceneAsProp ( DtOsgModelInstance osgModelInstance,
const DtUniqueID sceneObjectId 
)

Form without modelSet / visualizerType used for props.

Remove the connector from the scene.

Set the position of the connector.

void makVrv::DtOsgSceneConnector::setOrientation ( const DtTaitBryan &  orientation)

Set the orientation of the connector.

Get whether the attachable scene connector is visible.

Set whether the connector is switched off.

Is the connector switched off.

Get whether the attachable scene connector is visible.

Set whether model scaling is enabled. Default is false.

Get whether model scaling is enabled.

Set whether local model scaling is enabled.

Overrides generic (global) model scaling. Default is false.

Get whether local model scaling is enabled.

Set the amount of scaling to apply when local scaling is enabled.

Get the amount of local model scaling.

Get the scene parent.

Get the untransformed group node.

osg::MatrixTransform* makVrv::DtOsgSceneConnector::transformRoot ( )

Get the transformed root.

Set that this scene connector root node should be marked as solid.

The observer and ground clamped objects only interact with solid objects.

Add or remove nodeFlag to indicate whether this node can be model-scaled.


Member Data Documentation

osg::ref_ptr<osg::Switch> makVrv::DtOsgSceneConnector::mySwitch [protected]

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)