![]() |
VR-Forces 5.0.3 Developer's Guide
|
An OSG implementation of the Overlay Circular Wedge Model.
The drawn wedge has the following geometric parameters:
The drawn wedge has the following style properties:
Special Considerations:

Public Member Functions | |
| DtOsgOverlayWedgeModel (DtDe &de, DtUniqueID id) | |
| virtual | ~DtOsgOverlayWedgeModel () |
| virtual void | setOrientation (const DtTaitBryan &orientation) |
| virtual void | setWedgeSpan (double wedgeSpan) |
| virtual double | wedgeSpan () const |
| virtual void | setFillPattern (const std::vector< unsigned int > &) |
| virtual void | setColor (float r, float g, float b, float a) |
| virtual void | update () |
| virtual void | setModelDefinition (const std::string &str) |
| virtual void | setOrigin (const DtVector &position) |
| virtual DtVector | origin () const |
| virtual void | setRelativePosition (double x, double y, double z) |
| virtual DtVector | relativePosition () const |
| virtual void | setMaxAngleSegment (double angleSegmentMax) |
| virtual double | maxAngleSegment () const |
| virtual void | setRadius (float len) |
| virtual float | radius () const |
| virtual void | setScale (float scale) |
| virtual float | scale () const |
| virtual void | setVisible (bool isVisible) |
| virtual bool | isVisible () const |
| virtual void | setStartAngle (double startAngle) |
| virtual double | startAngle () const |
| virtual void | setFill (bool) |
| virtual bool | isFill () const |
| virtual void | setOutline (bool) |
| virtual bool | isOutline () const |
| virtual void | setSolidFillCenter (bool) |
| virtual bool | isSolidFillCenter () const |
| virtual void | setStipplePattern (unsigned int stipplePattern) |
| virtual unsigned int | stipplePattern () const |
| virtual void | setOutlineWidth (float width) |
| virtual float | outlineWidth () const |
| virtual void | setCentralVertexColor (float r, float g, float b, float a) |
| virtual bool | getCentralVertexColor (float &r, float &g, float &b, float &a) const |
| virtual void | setInsideColor (float r, float g, float b, float a) |
| virtual bool | getInsideColor (float &r, float &g, float &b, float &a) const |
| virtual void | setOutsideColor (float r, float g, float b, float a) |
| virtual bool | getOutsideColor (float &r, float &g, float &b, float &a) const |
| virtual void | setEventsEnabled (bool enabled) |
| virtual bool | eventsEnabled () const |
| virtual void | setGroup (int groupNum) |
| virtual int | group () const |
| virtual void | setPosition (int vtx, const DtVector &position) |
| virtual void | setOrientation (int vtx, const DtTaitBryan &orientation) |
Public Member Functions inherited from makVrv::DtOverlayWedgeModel | |
| DtOverlayWedgeModel (DtDe &de, DtUniqueID id) | |
| virtual | ~DtOverlayWedgeModel () |
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 const std::string & | className () 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 int | 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 (DtModelDefinition &defintion) |
| virtual bool | visible () const |
| DtUniqueID | parentSceneObjectID () const |
| virtual void | addedToSceneObjectAsProp (const DtUniqueID &sceneObj) |
| virtual void | addedToSceneObject (const DtUniqueID &sceneObj, int modelSet, int visualizerType) |
| virtual void | setElementId (DtUniqueID 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 | needsUpdate () |
| virtual void | addToScene (const DtUniqueID &sceneObjectId, int modelSet, int visualizerType) |
| virtual void | removeFromScene () |
| virtual void | setIsSupportModel (bool isSupport) |
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 | |
| std::vector< DtVector > | myDefinedVertices |
| DtUniqueID | myParentId |
| bool | myNeedsUpdate |
| double | myWedgeSpan |
| double | myStartAngle |
Protected Attributes inherited from makVrv::DtModel | |
| DtLoaderHandle * | myInLoadQueueHandle |
| DtDe & | myDe |
| const DtUniqueID | myUniqueId |
| bool | myColorBlendingEnabled |
| DtModelInstance * | myBackgroundModelInstance |
| float | myMinLastFrameDistance |
| TransformList | myTransforms |
| DtModelInstance * | myModelInstance |
| int | myModelSet |
| int | myVisualizerType |
| bool | myContributesToBound |
| DtUniqueID | myParentSceneObjectID |
| bool | myIsPropFlag |
| float | myBlendColor [4] |
| bool | myVisibleFlag |
| DtVector | myPositionOffset |
| DtTaitBryan | myOrientationOffset |
| std::string | myModelDefinitionName |
Private Member Functions | |
| DtOsgOverlayWedgeModel () | |
| DtOsgOverlayWedgeModel (const DtOsgOverlayWedgeModel &) | |
| DtOsgOverlayWedgeModel & | operator= (const DtOsgOverlayWedgeModel &) |
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::DtOsgOverlayWedgeModel::DtOsgOverlayWedgeModel | ( | DtDe & | de, |
| DtUniqueID | id | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
private |
Default Constructor not implemented.
|
private |
Copy Constructor not implemented – Copy not allowed.
|
virtual |
Set/Get the global position of the wedge.
Implements makVrv::DtOverlayWedgeModel.
|
virtual |
Set/Get the global position of the wedge.
Implements makVrv::DtOverlayWedgeModel.
|
virtual |
Set/Get the local translation of the wedge.
Implements makVrv::DtOverlayWedgeModel.
|
virtual |
Set/Get the local translation of the wedge.
Implements makVrv::DtOverlayWedgeModel.
|
virtual |
Set the global orientation of the wedge.
Implements makVrv::DtOverlayWedgeModel.
|
virtual |
Set/Get the max angle segment used when building the geometry.
Implements makVrv::DtOverlayWedgeModel.
|
virtual |
Set/Get the max angle segment used when building the geometry.
Implements makVrv::DtOverlayWedgeModel.
|
virtual |
Set/Get the radius of the wedge.
Implements makVrv::DtOverlayWedgeModel.
|
virtual |
Set/Get the radius of the wedge.
Implements makVrv::DtOverlayWedgeModel.
|
virtual |
Set/Get the numeric factor the wedge is scaled by.
Implements makVrv::DtOverlayWedgeModel.
|
virtual |
Set/Get the numeric factor the wedge is scaled by.
Implements makVrv::DtOverlayWedgeModel.
|
virtual |
Set/Get whether the wedge is visible.
Implements makVrv::DtOverlayWedgeModel.
|
virtual |
Set/Get whether the wedge is visible.
Implements makVrv::DtOverlayWedgeModel.
|
virtual |
Set/Get the start angle of the wedge, in radians.
Implements makVrv::DtOverlayWedgeModel.
|
virtual |
Set/Get the start angle of the wedge, in radians.
Implements makVrv::DtOverlayWedgeModel.
|
virtual |
Set the end angle of the wedge Valid range for argument values are 0 to PI radians.
Implements makVrv::DtOverlayWedgeModel.
|
virtual |
Set/Get the span of the wedge, in radians. Valid range for argument values are 0 to PI radians.
Implements makVrv::DtOverlayWedgeModel.
|
virtual |
Set/Get whether or not to draw a filled wedge. If false, an outline of the wedge is drawn.
Implements makVrv::DtOverlayWedgeModel.
|
virtual |
Set/Get whether or not to draw a filled wedge. If false, an outline of the wedge is drawn.
Implements makVrv::DtOverlayWedgeModel.
|
virtual |
Set/Get whether or not to outline a filled wedge. This function does nothing if setFill(false).
Implements makVrv::DtOverlayWedgeModel.
|
virtual |
Set/Get whether or not to outline a filled wedge. This function does nothing if setFill(false).
Implements makVrv::DtOverlayWedgeModel.
|
virtual |
Set/Get whether to solid fill or gradient fill the wedge. This function does nothing if setFill(false).
Implements makVrv::DtOverlayWedgeModel.
|
virtual |
Set/Get whether to solid fill or gradient fill the wedge. This function does nothing if setFill(false).
Implements makVrv::DtOverlayWedgeModel.
|
virtual |
Set the fill stipple pattern of the wedge.
Implements makVrv::DtOverlayWedgeModel.
|
virtual |
Set/Get the stipple pattern for the wedge.
Implements makVrv::DtOverlayWedgeModel.
Set/Get the stipple pattern for the wedge.
Implements makVrv::DtOverlayWedgeModel.
|
virtual |
Set the outline width of the wedge Uses DtLineSegmentInterface::setWidth.
Implements makVrv::DtOverlayWedgeModel.
|
virtual |
Set the outline width of the wedge Uses DtLineSegmentInterface::setWidth.
Implements makVrv::DtOverlayWedgeModel.
|
virtual |
Sets the inside and outside color of the wedge Akin to calling setInsideColor(...) and setOutsideColor(...)
Implements makVrv::DtOverlayWedgeModel.
|
virtual |
Set/Get the color of the wedge's central vertex. Valid range for argument values are 0.0 - 1.0.
Implements makVrv::DtOverlayWedgeModel.
|
virtual |
Set/Get the color of the wedge's central vertex. Valid range for argument values are 0.0 - 1.0.
Implements makVrv::DtOverlayWedgeModel.
|
virtual |
Sets the inside color of the wedge Valid range for argument values are 0.0 - 1.0.
Implements makVrv::DtOverlayWedgeModel.
|
virtual |
Sets the inside color of the wedge Valid range for argument values are 0.0 - 1.0.
Implements makVrv::DtOverlayWedgeModel.
|
virtual |
Sets the outside color of the wedge Valid range for argument values are 0.0 - 1.0.
Implements makVrv::DtOverlayWedgeModel.
|
virtual |
Sets the outside color of the wedge Valid range for argument values are 0.0 - 1.0.
Implements makVrv::DtOverlayWedgeModel.
|
virtual |
Sets to handle or not handle mouse events.
Implements makVrv::DtOverlayWedgeModel.
|
virtual |
Sets to handle or not handle mouse events.
Implements makVrv::DtOverlayWedgeModel.
|
virtual |
Sets the group this overlay will be drawn in The higher the group number, the "closer" to the eyepoint this overlay will be drawn. Use this function to stack overlay objects in the particular order you want them displayed.
Implements makVrv::DtOverlayWedgeModel.
|
virtual |
Sets the group this overlay will be drawn in The higher the group number, the "closer" to the eyepoint this overlay will be drawn. Use this function to stack overlay objects in the particular order you want them displayed.
Implements makVrv::DtOverlayWedgeModel.
|
virtual |
Set the position of a vertex in the wedge.
Reimplemented from makVrv::DtModel.
|
virtual |
Set the orientation of the wedge This function only does something if vtx equals 0.
Reimplemented from makVrv::DtModel.
|
virtual |
Called on tick.
|
virtual |
Sets the model definition on the model instance.
Reimplemented from makVrv::DtModel.
|
protectedvirtual |
Attaches the model to the scene.
Implements makVrv::DtModel.
|
protectedvirtual |
Detaches the model from the scene.
Implements makVrv::DtModel.
|
protectedvirtual |
Set whether the model is part of the support group (whether or not other scene objects can ground clamp to this model)
Implements makVrv::DtModel.
|
protectedvirtual |
Sets flag so the object is updated in the next update pass.
|
private |
Assignment Operator not implemented – Copy not allowed.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |