![]() |
VR-Forces 5.0.3 Developer's Guide
|
Model instance to draw a cuboid.

Public Member Functions | |
| DtCubeModelInstance (DtDe &de) | |
| virtual | ~DtCubeModelInstance () |
| virtual void | setDimensions (float x, float y, float z) |
| void | dimensions (float &length, float &width, float &height) |
| virtual void | setColor (float r, float g, float b, float a) |
| const osg::Vec4 & | color () const |
| virtual void | setLightingEnabled (bool enabled) |
| virtual bool | realize (DtModelDefinition &definition) |
| virtual void | setVisible (bool isVisible) |
| virtual void | setContributesToBound (bool trueOrFalse) |
Public Member Functions inherited from makVrv::DtOsgModelInstance | |
| virtual | ~DtOsgModelInstance () |
| virtual bool | cloneInstance (DtModelDefinition &definition) |
| virtual void | addToConnector (DtOsgSceneConnector *connector) |
| virtual bool | removeFromConnector (DtOsgSceneConnector *connector) |
| virtual bool | saveModelToFile (const std::string &filename) const |
| virtual void | enableColorBlending (bool b) |
| virtual void | setBlendColor (float r, float g, float b, float a) |
| virtual void | enableTexture (bool onOff) |
| virtual osg::Node * | rootNode () |
| virtual const osg::Node * | rootNode () const |
| virtual osg::Node * | sensorNode () |
| virtual const osg::Node * | sensorNode () const |
| virtual void | setDynamicSensorRegion (const std::string ®ion, bool state) |
| virtual bool | dynamicSensorRegion (const std::string ®ion) |
| virtual const SensorRegionStateMap & | dynamicSensorRegionMap () const |
| virtual void | slot_atcGlobalModelEnableChanged () |
| virtual bool | alphaToCoverageEnabled () |
| virtual void | registerLightPoints (const std::string &groupName, bool daylightControlledLights) |
Public Member Functions inherited from makVrv::DtModelInstance | |
| DtModelInstance (DtDe &de) | |
| virtual | ~DtModelInstance () |
| const std::string & | realizedDefinitionName () const |
| const DtVector & | boundingBoxExtents () const |
| void | getBoundingBoxExtents (double &x, double &y, double &z) const |
| const DtVector & | boundingBoxCenter () const |
| void | getBoundingBoxCenter (double &x, double &y, double &z) const |
| void | getBoundingBoxComponents (DtVector &minimum, DtVector &maximum) |
| const DtVector & | allGeometryboundingBoxExtents () const |
| void | getAllGeometryBoundingBoxExtents (double &x, double &y, double &z) const |
| const DtVector & | allGeometryboundingBoxCenter () const |
| void | getAllGeometryBoundingBoxCenter (double &x, double &y, double &z) const |
| void | getAllGeometryBoundingBoxComponents (DtVector &minimum, DtVector &maximum) |
| bool | contributesToBound () const |
Protected Member Functions | |
| virtual void | updateColors () |
| virtual void | updateTransform () |
| void | createBlendedGeodes () |
| void | createOpaqueGeode () |
| void | createSingleSidedBlendedGeode () |
Protected Member Functions inherited from makVrv::DtOsgModelInstance | |
| DtOsgModelInstance (DtDe &de) | |
| virtual void | updateColorBlending () |
| virtual void | updateColorBlending (osg::Node *node) |
| virtual void | enableTexture (osg::Node *root, bool onOff) |
| virtual void | updateBoundingBoxViaContents () |
| virtual void | setRootNode (osg::Node *node) |
| virtual void | setUpDepthTest (osg::StateSet *stateSet) |
Private Member Functions | |
| DtCubeModelInstance () | |
| DtCubeModelInstance (const DtCubeModelInstance &) | |
| DtCubeModelInstance & | operator= (const DtCubeModelInstance &) |
Additional Inherited Members | |
Public Types inherited from makVrv::DtOsgModelInstance | |
| enum | AlphaToCoverageState { USE_GLOBAL, FORCE_OFF, FORCE_ON } |
| typedef std::unordered_map < std::string, bool > | SensorRegionStateMap |
Static Public Member Functions inherited from makVrv::DtOsgModelInstance | |
| static osg::Vec4 | readVec4 (const std::string ¶mName, const DtModelDefinition &definition, const osg::Vec4 &initValue=osg::Vec4(1, 1, 1, 1)) |
| static osg::Vec3 | readVec3 (const std::string ¶mName, const DtModelDefinition &definition, const osg::Vec3 &initValue=osg::Vec3(1, 1, 1)) |
Static Public Member Functions inherited from makVrv::DtModelInstance | |
| static float | readFloat (const std::string ¶mName, const DtModelDefinition &definition) |
| static DtVector | readVector (const std::string ¶mName, const DtModelDefinition &definition) |
Public Attributes inherited from makVrv::DtOsgModelInstance | |
| boost::signalslib::signal < void(const std::string &) > | signal_dynamicSensorRegionAdded |
| boost::signalslib::signal < void(const std::string &, bool) > | signal_dynamicSensorRegionChanged |
| boost::signalslib::signal < void(bool)> | signal_atcModeEnableChanged |
Public Attributes inherited from makVrv::DtModelInstance | |
| boost::signalslib::signal < void(DtModelInstance *)> | signal_modelInstanceChanged |
| makVrv::DtCubeModelInstance::DtCubeModelInstance | ( | DtDe & | de | ) |
CTOR.
|
virtual |
DTOR.
|
private |
Default Constructor not implemented.
|
private |
Copy Constructor not implemented - Copy not allowed.
|
private |
Assignment Operator not implemented - Copy not allowed.
|
virtual |
Set the dimensions of the cube.
| void makVrv::DtCubeModelInstance::dimensions | ( | float & | length, |
| float & | width, | ||
| float & | height | ||
| ) |
Get the dimensions of the cube.
|
virtual |
Set the color of the cube.
| const osg::Vec4& makVrv::DtCubeModelInstance::color | ( | ) | const |
Get the color of the cube.
|
virtual |
Set lighting enabled or disabled (default disabled)
|
virtual |
Attempt to realize a definition. If the model instance can't realize the definition it should return false. This instance requires the definition be of schema "Cuboid".
Reimplemented from makVrv::DtOsgModelInstance.
|
inlinevirtual |
no-op
Implements makVrv::DtModelInstance.
|
virtual |
Override to recalculate bounding box if starts to contribute.
Reimplemented from makVrv::DtModelInstance.
|
protectedvirtual |
Update the color in the material.
|
protectedvirtual |
Update the transform matrix of the cylinder.
|
protected |
Creates the geodes needed when doing alpha blending.
|
protected |
Creates the geodes when NOT doing alpha blending.
|
protected |
Creates the geode when single sided and alpha blending.
|
protected |
The current parameter set.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Geode to draw the geometry when no blending is required.
|
protected |
Geode to draw the geometry when single-sided blending is required.
|
protected |
Geode to draw the geometry with backface culling.
|
protected |
Geode to draw the geometry with frontface culling.
|
protected |
My tranform.
|
protected |
My Material.
|
protected |