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

Public Member Functions | |
| DtOsgOverlayRectangleModel (DtDe &de, DtUniqueID &id) | |
| virtual | ~DtOsgOverlayRectangleModel () |
| virtual DtVector | rotateToDatabase (const DtVector &pos, const DtVector &origin) |
| virtual void | setInsideColor (float r, float g, float b, float a) |
| virtual void | setOutsideColor (float r, float g, float b, float a) |
| virtual void | setSolidFillCenter (bool) |
| virtual void | setFillPattern (const std::vector< unsigned int > &) |
| virtual void | setOutline (bool) |
| virtual void | setIsPerimeterWrappedTextRenderingEnabled (bool) |
| virtual void | setPerimeterWrappedTextCollection (const DtPerimeterWrappedTextCollection &) |
| virtual void | setPerimeterWrappedTextInterval (int intervalInScreenSpaceCM) |
| virtual void | setPerimeterWrappedTextFont (const std::string &fontFile, float fontPointSize) |
| virtual void | setPerimeterWrappedTextColor (float r, float g, float b, float a) |
| virtual void | setPerimeterWrappedTextBackgroundColor (float r, float g, float b, float a) |
| virtual const DtVector & | origin () const |
| virtual void | setColor (float r, float g, float b, float a) |
| virtual void | setPosition (int vtx, const DtVector &position) |
| virtual void | setPoint (int vtx, const DtVector &position) |
| virtual void | set2dOffset (int index, float x, float y) |
| virtual void | setOrientation (const DtTaitBryan &orientation) |
| virtual void | setOrientation (int vtx, const DtTaitBryan &orientation) |
| virtual void | set3dDirection2dLength (int index, float x, float y, float z, float len) |
| virtual void | setTexturePath (const std::string &texturePath) |
| virtual void | setNumTextureTiles (double numTiles) |
| virtual void | setSolid (bool solid) |
| virtual void | setIsSupportModel (bool isSupport) |
| virtual void | setGroup (int) |
| virtual void | setPickable (bool enabled) |
| virtual void | setStipplePattern (unsigned int stipplePattern) |
| virtual void | setWidth (float width) |
| virtual void | setEventWidth (float width) |
| virtual void | setEventsEnabled (bool) |
| virtual void | setDimensions (double width, double length, double altitudeOffset) |
| virtual void | resetSpatial () |
| virtual void | setOrigin (const DtVector &) |
| virtual int | pointCount () const |
| virtual DtVector | point (int) const |
| virtual const std::vector < DtVector > & | points () const |
| virtual void | addToScene (const DtUniqueID &sceneObjectId, DtModelSetId modelSet, int visualizerType) |
| virtual void | removeFromScene () |
| virtual void | setModelDefinition (const std::string &str) |
Public Member Functions inherited from makVrv::DtOverlayRectangleModel | |
| DtOverlayRectangleModel (DtDe &de, DtUniqueID id) | |
| virtual | ~DtOverlayRectangleModel () |
Public Member Functions inherited from makVrv::DtOverlayPolygonModel | |
| DtOverlayPolygonModel (DtDe &de, DtUniqueID &id) | |
| virtual | ~DtOverlayPolygonModel () |
| virtual void | setFillPatternFrequency (float frequency) |
| virtual float | fillPatternFrequency () const |
| virtual void | setEnableDecalProjector (bool enable) |
| virtual bool | enableDecalProjector () const |
| virtual void | getInsideColor (float &r, float &g, float &b, float &a) |
| virtual void | getOutsideColor (float &r, float &g, float &b, float &a) |
| virtual void | setIsStippleUsedForFill (bool isStippleUsedForFill) |
| virtual void | setIsTextureFillFittedToAreaEnabled (bool isTextureFillFittedToAreaEnabled) |
| virtual void | setOutlineTexture (const std::string &texturePath, int width=-1, int height=-1) |
| virtual void | addPoint (const DtVector &point, int index) |
| virtual void | removePoint (int index) |
| virtual void | removePosition (int index) |
| virtual void | setVisible (bool isVisible) |
Public Member Functions inherited from makVrv::DtPolygonModel | |
| DtPolygonModel (DtDe &de, DtUniqueID id) | |
| virtual | ~DtPolygonModel () |
| virtual void | setFill (bool) |
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 |
| virtual DtUniqueID | uniqueId () const |
| unsigned int | transformSize () const |
| virtual const DtVector & | position (int vtx=0) const |
| 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 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 () |
Additional Inherited Members | |
Public Types inherited from makVrv::DtOverlayPolygonModel | |
| using | DtPerimeterWrappedTextCollection = std::vector< DtUnicode > |
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::DtOverlayPolygonModel | |
| typedef std::map< DtChannel *, DtPolygonInstanceAndText > | ChannelInstances |
Protected Types inherited from makVrv::DtModel | |
| typedef std::vector < ObjectTransform > | TransformList |
Static Protected Attributes inherited from makVrv::DtModel | |
| static bool | theInittedState |
| makVrv::DtOsgOverlayRectangleModel::DtOsgOverlayRectangleModel | ( | DtDe & | de, |
| DtUniqueID & | id | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Set the color of the polygon.
Reimplemented from makVrv::DtOverlayPolygonModel.
|
virtual |
Set the position of one vertex of the polygon.
Reimplemented from makVrv::DtOverlayPolygonModel.
|
virtual |
Equivalent to setPosition.
Reimplemented from makVrv::DtOverlayPolygonModel.
|
virtual |
Sets the 2d offset of a vertex.
Reimplemented from makVrv::DtOverlayPolygonModel.
|
virtual |
Set the orientation of the rectangle.
Reimplemented from makVrv::DtOverlayRectangleModel.
|
virtual |
Set the color of the polygon.
Reimplemented from makVrv::DtOverlayPolygonModel.
|
virtual |
Sets a 3D direction with a 2D length of a vertex. This only works with outline polygons.
Reimplemented from makVrv::DtOverlayPolygonModel.
|
virtual |
Set the path to the polygon's texture.
Reimplemented from makVrv::DtOverlayPolygonModel.
|
virtual |
Set the number of texture tiles.
Reimplemented from makVrv::DtOverlayPolygonModel.
|
virtual |
Set a object to be solid.
Reimplemented from makVrv::DtOverlayPolygonModel.
|
virtual |
Set whether the model is part of the support group (whether or not other scene objects can ground clamp to this model)
Reimplemented from makVrv::DtOverlayPolygonModel.
|
virtual |
The higher the Z order the "closer" to the eyepoint this element will be drawn. Use this variable to stack overlay objects in the particular order you want them displayed.
Reimplemented from makVrv::DtOverlayPolygonModel.
|
virtual |
Sets whether or not the line is pickable.
Reimplemented from makVrv::DtOverlayPolygonModel.
|
virtual |
Sets stipple pattern for the polygon.
Reimplemented from makVrv::DtOverlayPolygonModel.
|
virtual |
Set the line width.
Reimplemented from makVrv::DtOverlayPolygonModel.
|
virtual |
Sets the events line width for the polygon model if it is outlined.
Reimplemented from makVrv::DtOverlayPolygonModel.
|
virtual |
Sets whether or not mouse events are enabled.
Reimplemented from makVrv::DtOverlayPolygonModel.
|
virtual |
Sets the dimensions of the rectangle, according to database and orientation.
Implements makVrv::DtOverlayRectangleModel.
|
virtual |
Sets geometry based on origin and dimensions.
|
virtual |
Sets origin of model such that points will be offset from this origin. Resets geometry when set.
Reimplemented from makVrv::DtOverlayPolygonModel.
|
virtual |
Retrieves the number of points in the model.
Reimplemented from makVrv::DtOverlayPolygonModel.
Retrieves the point inclusive of the origin.
Reimplemented from makVrv::DtOverlayPolygonModel.
|
virtual |
Returns the points of this rectangle.
Reimplemented from makVrv::DtOverlayPolygonModel.
|
virtual |
Add the polygon to the scene.
Reimplemented from makVrv::DtOverlayPolygonModel.
|
virtual |
Remove the polygon from the scene.
Reimplemented from makVrv::DtOverlayPolygonModel.
|
virtual |
Sets the model definition on the model instance.
Reimplemented from makVrv::DtOverlayPolygonModel.
|
virtual |
Rotates the vector into the terrains coordinate system.
|
virtual |
Set the color at the center of the ellipse.
Reimplemented from makVrv::DtOverlayPolygonModel.
|
virtual |
Set the color on the outside of the ellipse.
Reimplemented from makVrv::DtOverlayPolygonModel.
|
virtual |
Sets to fill the center solid (if filled) not gradiant. Default is false.
Reimplemented from makVrv::DtOverlayPolygonModel.
|
virtual |
Sets a fill pattern (32x32)
Reimplemented from makVrv::DtOverlayPolygonModel.
|
virtual |
Sets whether or not to outline the polygon with a scribe as if unfilled, even when filled. Only valid if fill is also true.
Reimplemented from makVrv::DtOverlayPolygonModel.
|
virtual |
Whether or not to render perimeter wrapped text. The DtOsgOverlayRectangleModel does not support this function - this function does nothing.
Reimplemented from makVrv::DtOverlayPolygonModel.
|
virtual |
The DtOsgOverlayRectangleModel does not support this function - this function does nothing.
Reimplemented from makVrv::DtOverlayPolygonModel.
|
virtual |
The DtOsgOverlayRectangleModel does not support this function - this function does nothing.
Reimplemented from makVrv::DtOverlayPolygonModel.
|
virtual |
The DtOsgOverlayRectangleModel does not support this function - this function does nothing.
Reimplemented from makVrv::DtOverlayPolygonModel.
|
virtual |
The DtOsgOverlayRectangleModel does not support this function - this function does nothing.
Reimplemented from makVrv::DtOverlayPolygonModel.
|
virtual |
The DtOsgOverlayRectangleModel does not support this function - this function does nothing.
Reimplemented from makVrv::DtOverlayPolygonModel.
|
virtual |
Get the object's origin.
Reimplemented from makVrv::DtOverlayPolygonModel.
|
protectedvirtual |
Called on tick when updated, calls updateGeometry() of model instance.
Reimplemented from makVrv::DtOverlayPolygonModel.
|
protectedvirtual |
Sets needs update flag such that on next update pass the object is updated.
Reimplemented from makVrv::DtOverlayPolygonModel.
|
protectedvirtual |
slot for when the coordinate system changes
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
local clone of the system wide coordinate system. for thread safety.
|
protected |