![]() |
VR-Forces Developer's Guide
|
OSG implementation of the DtRectangularPyramidModel.

Public Member Functions | |
| DtOsgRectangularPyramidModel (makVrv::DtDe &de, makVrv::DtUniqueID &id) | |
| virtual | ~DtOsgRectangularPyramidModel () |
| virtual const std::string & | className () const |
| virtual void | addToScene (const makVrv::DtUniqueID &sceneObjectId, DtModelSetId modelSet, int visualizerType) |
| virtual void | removeFromScene () |
| virtual void | setModelDefinition (const std::string &str) |
| virtual void | setPosition (int vtx, const DtVector &position) |
| virtual void | setOrientation (int vtx, const DtTaitBryan &orientation) |
| virtual void | setRelativePosition (double x, double y, double z) |
| virtual void | setRelativeOrientation (const DtTaitBryan &ori) |
| virtual void | setSize (double slantHeight) |
| virtual void | setColor (float r, float g, float b, float a) |
| virtual void | setInnerColor (float r, float g, float b, float a) |
| virtual void | setOuterColor (float r, float g, float b, float a) |
| virtual void | setXHalfAngle (double xHalfAngle) |
| virtual void | setYHalfAngle (double yHalfAngle) |
| virtual void | setShowLines (bool showLines) |
| virtual void | setLinesHaveAlpha (bool lineAlpha) |
| virtual void | setIsSupportModel (bool isSupport) |
Public Member Functions inherited from makVrv::DtRectangularPyramidModel | |
| DtRectangularPyramidModel (makVrv::DtDe &de, makVrv::DtUniqueID id) | |
| virtual | ~DtRectangularPyramidModel () |
Public Member Functions inherited from makVrv::DtModel | |
| DtModel (DtDe &de, DtUniqueID id) | |
| virtual | ~DtModel () |
| DtModelInstance * | createModelInstance (const std::string &modelDefName, bool realize=true) |
| virtual const std::string & | modelDefinitionName () |
| virtual void | saveModelToFile (const std::string &filename) |
| virtual DtUniqueID | uniqueId () const |
| unsigned int | transformSize () const |
| virtual const DtVector & | position (int vtx=0) const |
| virtual void | removePosition (int vtx) |
| virtual void | setPositionOffset (const DtVector &positionOffset) |
| virtual const DtVector & | positionOffset () const |
| virtual void | setPositionAndOrientation (int vtx, const DtVector &positionOffset, const DtTaitBryan &orientation) |
| virtual const DtTaitBryan & | orientation (int vtx=0) const |
| virtual void | setOrientationOffset (const DtTaitBryan &orientationOffset) |
| virtual const DtTaitBryan & | orientationOffset () const |
| virtual void | enableColorBlending (bool b) |
| virtual void | setBlendColor (float r, float g, float b, float a) |
| virtual void | getBlendColor (float &r, float &g, float &b, float &a) |
| virtual bool | colorBlendingEnabled () const |
| virtual void | enableLighting (bool l) |
| virtual DtModelSetId | modelSet () const |
| const DtVector & | boundingBoxExtents () const |
| void | getBoundingBoxExtents (double &x, double &y, double &z) const |
| const DtVector & | boundingBoxCenter () const |
| virtual void | getBoundingBoxCenter (double &x, double &y, double &z) const |
| virtual void | getBoundingBoxComponents (DtVector &minimum, DtVector &maximum) |
| void | setContributesToBound (bool trueOrFalse) |
| bool | contributesToBound () const |
| DtDe & | de () |
| virtual void | setModelInstance (DtModelInstance *modelInstance) |
| virtual void | promoteBackgroundModelInstance (const DtModelDefinition &defintion) |
| virtual void | setVisible (bool isVisible) |
| virtual bool | visible () const |
| DtUniqueID | sceneObjectId () const |
| virtual void | addedToSceneObjectAsProp (const DtUniqueID &sceneObj) |
| virtual void | addedToSceneObject (const DtUniqueID &sceneObj, DtModelSetId modelSet, int visualizerType) |
| virtual void | setElementId (DtElementID id) |
| virtual void | removedFromSceneObject () |
| virtual void | setSolid (bool isSolid) |
| virtual bool | isProp () |
| virtual void | updateMinLastFrameDistance (float distance) |
| virtual void | resetLastFrameDistance () |
| virtual float | minLastFrameDistance () const |
| virtual DtModelInstance * | modelInstance () |
| virtual const DtModelInstance * | modelInstance () const |
| int | visualizerType () const |
| virtual bool | supportsMultithreadedLoad () |
| virtual void | backgroundLoad () |
| virtual void | foregroundLoad () |
| virtual bool | isActivelyBackgroundLoading () |
| virtual DtLoaderHandle * | getLoadQueueHandle () |
Protected Member Functions | |
| virtual void | update () |
| virtual void | needsUpdate () |
Protected Member Functions inherited from makVrv::DtModel | |
| virtual void | addToSceneAsProp (const DtUniqueID &sceneObjectId) |
| virtual void | initializeModelInstance () |
| void | slot_modelInstanceChanged (DtModelInstance *instance) |
| virtual void | waitAndClearLoadHandle () |
| virtual void | removedFromLoadQueue () |
| virtual void | setDoneBackgroundLoading () |
| virtual void | setActivelyBackgroundLoading () |
Protected Attributes | |
| makVrv::DtOsgSceneConnector * | mySceneConnector |
| DtUniqueID | myTargetObjectId |
| DtUniqueID | myHostObjectId |
| DtVector | myRelativePosition |
| bool | myNeedsUpdate |
| boost::signalslib::connection | mySignalPostUpdateConnection |
Protected Attributes inherited from makVrv::DtModel | |
| DtLoaderHandle * | myInLoadQueueHandle |
| DtDe & | myDe |
| const DtUniqueID | myUniqueId |
| DtUniqueID | myElementId |
| DtUniqueID | myParentSceneObjectID |
| bool | myColorBlendingEnabled |
| DtModelInstance * | myBackgroundModelInstance |
| float | myMinLastFrameDistance |
| TransformList | myTransforms |
| DtModelInstance * | myModelInstance |
| DtModelSetId | myModelSet |
| int | myVisualizerType |
| bool | myContributesToBound |
| bool | myIsPropFlag |
| float | myBlendColor [4] |
| bool | myVisibleFlag |
| DtVector | myPositionOffset |
| DtTaitBryan | myOrientationOffset |
| std::string | myModelDefinitionName |
| bool | myRequireModelInstance = true |
Additional Inherited Members | |
Public Attributes inherited from makVrv::DtModel | |
| boost::signalslib::signal < void(DtModel *)> | signal_modelToBeDestroyed |
| boost::signalslib::signal < void(DtModel *)> | signal_modelChanged |
| boost::signalslib::signal < bool(DtModel *, bool), SlotReturnOR > | signal_visibilityChangeRequested |
| boost::signalslib::signal < void(DtModelInstance *, DtModel *)> | signal_modelInstanceCreated |
| boost::signalslib::signal < void(DtModelInstance *, DtModel *)> | signal_modelInstanceToBeDestroyed |
Protected Types inherited from makVrv::DtModel | |
| typedef std::vector < ObjectTransform > | TransformList |
Static Protected Attributes inherited from makVrv::DtModel | |
| static bool | theInittedState |
| makVrv::DtOsgRectangularPyramidModel::DtOsgRectangularPyramidModel | ( | makVrv::DtDe & | de, |
| makVrv::DtUniqueID & | id | ||
| ) |
|
virtual |
Virtual DTOR.
|
virtual |
Returns the name of this class.
Reimplemented from makVrv::DtRectangularPyramidModel.
|
virtual |
Attaches the model to the scene If this model has a modelinstance, it is attached to the scene.
Implements makVrv::DtModel.
|
virtual |
Detaches the model from the scene If this model has a modelinstance, it is detached from the scene.
Implements makVrv::DtModel.
|
virtual |
Sets the model definition on the model instance Overridden to prevent lookup and instantiation of model instance using the DtModelInstanceFactory.
| str | the model definition to set |
Reimplemented from makVrv::DtModel.
|
virtual |
Set the position of the rectangular pyramid Sets the position of the model's scene connector (model root)
| vtx | the vertex to set the position of (only 0 has any effect) |
| position | the position to set |
Reimplemented from makVrv::DtModel.
|
virtual |
Set the orientation of the rectangular pyramid Sets the orientation of the model's scene connector (model root)
| vtx | the vertex to set the position of (only 0 has any effect) |
| ori | the orientation to set |
Reimplemented from makVrv::DtModel.
|
virtual |
Set the relative position of the rectangular pyramid Sets the position of the model instance relative to the parent node.
| x | the relative x translation |
| y | the relative y translation |
| z | the relative z translation |
Implements makVrv::DtRectangularPyramidModel.
|
virtual |
Set the relative orientation of the rectangular pyramid Sets the orientation of the model instance relative to the parent node.
| yaw | the yaw, -DtTaitBryan::psi() |
| pitch | the pitch, DtTaitBryan::theta() |
| roll | the roll, DtTaitBryan::phi() |
Implements makVrv::DtRectangularPyramidModel.
|
virtual |
Sets the size of the rectangular pyramid.
| slantHeight | the length of the pyramid's slant height. |
Implements makVrv::DtRectangularPyramidModel.
|
virtual |
Sets both the inside and outside colors. Sets the color of the entire rectangular pyramid.
| r | the red component of the color |
| g | the green component of the color |
| b | the blue component of the color |
| a | the alpha component of the color |
Implements makVrv::DtRectangularPyramidModel.
|
virtual |
Sets the inner color. Sets the color of the inside (near vertex) of the rectangular pyramid.
| r | the red component of the color |
| g | the green component of the color |
| b | the blue component of the color |
| a | the alpha component of the color |
Implements makVrv::DtRectangularPyramidModel.
|
virtual |
Sets the outer color. Sets the color of the outside (far vertices) of the rectangular pyramid.
| r | the red component of the color |
| g | the green component of the color |
| b | the blue component of the color |
| a | the alpha component of the color |
Implements makVrv::DtRectangularPyramidModel.
|
virtual |
Set the half angle amount in the x direction.
| xHalfAngle | the half-angle in the x direction. |
Implements makVrv::DtRectangularPyramidModel.
|
virtual |
Set the half angle amount in the y direction.
| yHalfAngle | the half-angle in the y direction. |
Implements makVrv::DtRectangularPyramidModel.
|
virtual |
Set whether the wireframe outlines are visible on the geometry Sets whether the wireframe lines for the rectangular pyramid should be drawn If set, the wireframe lines are drawn in addition to the geometry faces.
| showLines | whether the lines should be visible or hidden |
Implements makVrv::DtRectangularPyramidModel.
|
virtual |
Set whether the wireframe outlines should be rendered with alpha Sets whether the alpha component of the pyramid's colors should apply to the wireframe outlines as well as the faces, or just to the faces.
| whether | the lines should be affected by the color's alpha values. |
Implements makVrv::DtRectangularPyramidModel.
|
virtual |
Set whether the model is part of the support group (whether or not other scene objects can ground clamp to this model)
Implements makVrv::DtRectangularPyramidModel.
|
protectedvirtual |
Called on tick when updated, calls updateGeometry() of model instance.
|
protectedvirtual |
Call to set up callback for needing an update.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |