![]() |
VR-Forces Developer's Guide
|
OSG implementation of distributed cuboid model.

Public Member Functions | |
| DtOsgEllipsoidArcModel (DtDe &de, DtUniqueID &id) | |
| virtual | ~DtOsgEllipsoidArcModel () |
| virtual const std::string & | className () const |
| virtual void | setRelativePosition (double x, double y, double z) |
| virtual void | setRelativeOrientation (const DtTaitBryan &ori) |
| virtual void | setDimensions (double x, double y, double z) |
| virtual void | setColor (float r, float g, float b, float a) |
| virtual void | setInsideColor (float r, float g, float b, float a) |
| virtual void | setOutsideColor (float r, float g, float b, float a) |
| virtual void | setVisible (bool visible) |
| virtual void | setPosition (int vtx, const DtVector &position) |
| virtual void | setOrientation (int vtx, const DtTaitBryan &orientation) |
| virtual void | setAzimuthRange (float center, float sweep) |
| virtual void | setElevationRange (float center, float sweep) |
| virtual void | setMaxAngleSegment (float angleSegmentMax) |
| virtual void | setShowLines (bool showLines) |
| virtual void | setLinesHaveAlpha (bool lineAlpha) |
| virtual void | setIsPickable (bool) |
| virtual void | addToScene (const DtUniqueID &sceneObjectId, DtModelSetId modelSet, int visualizerType) |
| virtual void | removeFromScene () |
| virtual void | setModelDefinition (const std::string &str) |
| virtual void | setIsSupportModel (bool isSupport) |
Public Member Functions inherited from makVrv::DtEllipsoidArcModel | |
| DtEllipsoidArcModel (DtDe &de, DtUniqueID id) | |
| virtual | ~DtEllipsoidArcModel () |
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 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 | |
| DtOsgSceneConnector * | mySceneConnector |
| 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::DtOsgEllipsoidArcModel::DtOsgEllipsoidArcModel | ( | DtDe & | de, |
| DtUniqueID & | id | ||
| ) |
Instantiates a new DtOsgEllipsoidArcModel.
|
virtual |
Removes the model instance from the scene and deletes the scene connector.
|
virtual |
Returns the model's class name (DtOsgEllipsoidArcModel)
Reimplemented from makVrv::DtModel.
|
virtual |
Set the local translation of the ellipsoid Sets the position of the model relative to the scene connector.
| x | the relative x position |
| y | the relative y position |
| z | the relative z position |
Implements makVrv::DtEllipsoidArcModel.
|
virtual |
Set the local orientation of the ellipsoid Sets the orientation of the model's scene connector.
| ori | the relative orientation in Tait-Bryan form |
Implements makVrv::DtEllipsoidArcModel.
Set the dimensions of the ellipsoid Sets the lengths of the ellipsoid's axes.
| x | the length of the ellipsoid's x axis |
| y | the length of the ellipsoid's y axis |
| z | the length of the ellipsoid's z axis |
Implements makVrv::DtEllipsoidArcModel.
|
virtual |
Set the color of the ellipsoid Sets the color of the ellipsoid.
| 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::DtEllipsoidArcModel.
|
virtual |
Set the color at the center of the sphere Sets the color of the inside of the ellipsoid (the centroid)
| 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::DtEllipsoidArcModel.
|
virtual |
Set the color on the surface of the sphere Sets the color of the outside (surface) of the ellipsoid.
| 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::DtEllipsoidArcModel.
|
virtual |
Set whether the ellipsoid is visible Changes the visibility of the ellipsoid arc model.
| isVisible | whether the model should be visible or not |
Reimplemented from makVrv::DtModel.
|
virtual |
Set the position of the ellipsoid; only vtx == 0 has an effect Sets the position of the model on the scene connector.
| vtx | the vertex to set the position of (only 0 is supported) |
| position | the position to set |
Implements makVrv::DtEllipsoidArcModel.
|
virtual |
Set the orientation of the ellipsoid; only vtx == 0 has an effect Sets the orientation of the model on the scene connector.
| vtx | the vertex to set the position of (only 0 is supported) |
| ori | the orientation to set |
Reimplemented from makVrv::DtModel.
|
virtual |
Set the azimuth range of the arc Sets the azimuth range of the ellipsoid arc.
| center | the center of the azimuth range |
| sweep | the angle between the center and the azimuth max/min |
Implements makVrv::DtEllipsoidArcModel.
|
virtual |
Set the inclination range of the arc Sets the elevation range of the ellipsoid arc.
| center | the center of the elevation range |
| sweep | the angle between the center and the elevation max/min |
Implements makVrv::DtEllipsoidArcModel.
|
virtual |
Set the max angle segment used when building the geometry Sets the max angle segment between samples on the ellipsoid's surface.
| angleSegmentMax | the max angle segment between samples |
Implements makVrv::DtEllipsoidArcModel.
|
virtual |
Set whether the wireframe outlines are visible on the geometry Whether to show the wireframe lines for the model.
| showLines | whether to show the lines or hide them |
Implements makVrv::DtEllipsoidArcModel.
|
virtual |
Set whether the wireframe outlines should be rendered with alpha Sets whether the alpha component of the ellipsoid'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::DtEllipsoidArcModel.
|
virtual |
Set whether or not the model is pickable.
Implements makVrv::DtEllipsoidArcModel.
|
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 whether the model is part of the support group Set whether or not other scene objects can ground clamp to this model.
| isSupport | whether the model should be in the support group or not |
Implements makVrv::DtModel.
|
protectedvirtual |
Called on tick when updated, calls updateGeometry() of model instance.
|
protectedvirtual |
Sets needs update flag such that on next update pass the object is updated.
|
protected |
|
protected |
|
protected |