![]() |
VR-Forces 4.0.4 Class Documentation
|
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...
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< DtFastGroup > | myGroupNode |
| osg::ref_ptr< DtFastGroup > | myHiddenRoot |
| osg::ref_ptr< osg::Switch > | mySwitch |
| int | myModelSet |
| int | myVisualizerType |
| bool | myIsProp |
| bool | myModelScalingEnabled |
| bool | myLocalModelScalingEnabled |
| float | myLocalModelScalingAmount |
| float | myCurrentLocalModelScaling |
| DtDe & | myDe |
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.
CTOR.
| 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.
| void makVrv::DtOsgSceneConnector::removeFromScene | ( | DtOsgModelInstance * | osgModelInstance | ) |
Remove the connector from the scene.
| void makVrv::DtOsgSceneConnector::setPosition | ( | const DtVector & | position | ) |
Set the position of the connector.
| void makVrv::DtOsgSceneConnector::setOrientation | ( | const DtTaitBryan & | orientation | ) |
Set the orientation of the connector.
| void makVrv::DtOsgSceneConnector::setVisible | ( | bool | isVisible | ) |
Get whether the attachable scene connector is visible.
| void makVrv::DtOsgSceneConnector::setSwitchedOff | ( | bool | switched | ) |
Set whether the connector is switched off.
| bool makVrv::DtOsgSceneConnector::switchedOff | ( | ) | const |
Is the connector switched off.
| bool makVrv::DtOsgSceneConnector::isVisible | ( | ) | const |
Get whether the attachable scene connector is visible.
Set whether model scaling is enabled. Default is false.
Get whether model scaling is enabled.
| void makVrv::DtOsgSceneConnector::setLocalModelScalingEnabled | ( | bool | enabled | ) |
Set whether local model scaling is enabled.
Overrides generic (global) model scaling. Default is false.
Get whether local model scaling is enabled.
| void makVrv::DtOsgSceneConnector::setLocalModelScalingAmount | ( | float | localScl | ) |
Set the amount of scaling to apply when local scaling is enabled.
| double makVrv::DtOsgSceneConnector::localModelScalingAmount | ( | ) | const |
Get the amount of local model scaling.
Get the scene parent.
| osg::Group* makVrv::DtOsgSceneConnector::groupRoot | ( | ) |
Get the untransformed group node.
| osg::MatrixTransform* makVrv::DtOsgSceneConnector::transformRoot | ( | ) |
Get the transformed root.
| void makVrv::DtOsgSceneConnector::setSolidFlags | ( | bool | solid | ) |
Set that this scene connector root node should be marked as solid.
The observer and ground clamped objects only interact with solid objects.
| void makVrv::DtOsgSceneConnector::setTransformModelScalingState | ( | ) | [protected] |
Add or remove nodeFlag to indicate whether this node can be model-scaled.
osg::ref_ptr<DtFastMatrixTransform> makVrv::DtOsgSceneConnector::myTransformNode [protected] |
osg::ref_ptr<DtFastGroup> makVrv::DtOsgSceneConnector::myGroupNode [protected] |
osg::ref_ptr<DtFastGroup> makVrv::DtOsgSceneConnector::myHiddenRoot [protected] |
osg::ref_ptr<osg::Switch> makVrv::DtOsgSceneConnector::mySwitch [protected] |
int makVrv::DtOsgSceneConnector::myModelSet [protected] |
int makVrv::DtOsgSceneConnector::myVisualizerType [protected] |
bool makVrv::DtOsgSceneConnector::myIsProp [protected] |
float makVrv::DtOsgSceneConnector::myLocalModelScalingAmount [protected] |
float makVrv::DtOsgSceneConnector::myCurrentLocalModelScaling [protected] |
DtDe& makVrv::DtOsgSceneConnector::myDe [protected] |