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

Public Member Functions | |
| DtOsgOverlayPolygonModel (DtDe &de, DtUniqueID &id) | |
| virtual | ~DtOsgOverlayPolygonModel () |
| virtual void | setUseDynamicOrigin (bool) |
| virtual void | setFillPattern (const std::vector< unsigned int > &) |
| virtual void | setOutline (bool) |
| virtual const DtVector & | origin () const |
| virtual void | setColor (float r, float g, float b, float a) |
| virtual void | setInsideColor (float r, float g, float b, float a) |
| virtual void | getInsideColor (float &r, float &g, float &b, float &a) |
| virtual void | setOutsideColor (float r, float g, float b, float a) |
| virtual void | getOutsideColor (float &r, float &g, float &b, float &a) |
| virtual void | setSolidFillCenter (bool) |
| virtual void | setPosition (int vtx, const DtVector &position) |
| virtual void | setOrigin (const DtVector &o) |
| virtual void | setPoint (int vtx, const DtVector &position) |
| virtual void | set2dOffset (int index, float x, float y) |
| virtual void | set3dDirection2dLength (int index, float x, float y, float z, float len) |
| virtual void | setGroup (int) |
| virtual void | setOrientation (int vtx, const DtTaitBryan &orientation) |
| virtual void | setTexturePath (const std::string &texturePath) |
| virtual void | setOutlineTexture (const std::string &texturePath) |
| virtual void | setNumTextureTiles (double numTiles) |
| virtual void | setSolid (bool solid) |
| virtual void | setIsSupportModel (bool isSupport) |
| virtual void | addPoint (const DtVector &point, int index) |
| virtual void | setPickable (bool enabled) |
| virtual void | removePoint (int index) |
| virtual void | removePosition (int index) |
| virtual void | setStipplePattern (unsigned int stipplePattern) |
| virtual const std::vector < DtVector > & | points () const |
| virtual int | pointCount () const |
| virtual DtVector | point (int) const |
| virtual void | setWidth (float width) |
| virtual void | setEventWidth (float width) |
| virtual void | setEventsEnabled (bool) |
| virtual void | setVisible (bool isVisible) |
| virtual void | addToScene (const DtUniqueID &sceneObjectId, int modelSet, int visualizerType) |
| virtual void | removeFromScene () |
| virtual void | setModelDefinition (const std::string &str) |
Public Member Functions inherited from makVrv::DtOverlayPolygonModel | |
| DtOverlayPolygonModel (DtDe &de, DtUniqueID id) | |
| virtual | ~DtOverlayPolygonModel () |
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 |
| 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 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 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 Types | |
| typedef std::map< DtChannel *, DtOsgOverlayPolygonModelInstance * > | ChannelInstances |
Protected Types inherited from makVrv::DtModel | |
| typedef std::vector < ObjectTransform > | TransformList |
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 |
Static Protected Attributes inherited from makVrv::DtModel | |
| static bool | theInittedState |
|
protected |
| makVrv::DtOsgOverlayPolygonModel::DtOsgOverlayPolygonModel | ( | DtDe & | de, |
| DtUniqueID & | id | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Set the color of the polygon.
Implements makVrv::DtPolygonModel.
|
virtual |
Set the color at the center of the ellipse.
Implements makVrv::DtOverlayPolygonModel.
|
virtual |
Retrieves the inside color.
|
virtual |
Set the color on the outside of the ellipse.
Implements makVrv::DtOverlayPolygonModel.
|
virtual |
Retrieves the inside color.
|
virtual |
Sets to fill the center solid (if filled) not gradiant. Default is false.
Implements makVrv::DtOverlayPolygonModel.
|
virtual |
No longer sets the origin, in order to allow the moving of vtx0.
Reimplemented from makVrv::DtModel.
|
virtual |
Will set in model instance.
Implements makVrv::DtPolygonModel.
|
virtual |
Will set point in the model instance.
Implements makVrv::DtPolygonModel.
|
virtual |
Sets the 2D offset of a vertex.
Implements makVrv::DtOverlayPolygonModel.
|
virtual |
Sets a 3D direction with a 2D length of a vertex. This only works with outline polygons.
Implements 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.
Implements makVrv::DtOverlayPolygonModel.
|
virtual |
Set the orientation of a vertex of the polygon; has no effect.
Reimplemented from makVrv::DtModel.
|
virtual |
Set the path to the polygon's texture.
Implements makVrv::DtPolygonModel.
|
virtual |
Set the path to the polygon's outline texture.
|
virtual |
Set the number of texture tiles.
Implements makVrv::DtPolygonModel.
|
virtual |
Set a object to be solid.
Reimplemented from makVrv::DtModel.
|
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::DtModel.
|
virtual |
Add a new point to the polygon at the specified index, or, at the end if index is -1.
Implements makVrv::DtPolygonModel.
|
virtual |
Sets whether or not the polygon is pickable.
Implements makVrv::DtPolygonModel.
|
virtual |
Removes the point from the specified index.
Implements makVrv::DtPolygonModel.
|
virtual |
Calls removePoint.
Reimplemented from makVrv::DtModel.
|
virtual |
Sets stipple pattern for the polygon.
Implements makVrv::DtPolygonModel.
|
virtual |
Points that make up this polygon.
Implements makVrv::DtPolygonModel.
|
virtual |
Retrieves the number of points in the model.
Implements makVrv::DtPolygonModel.
Retrieves the point inclusive of the origin.
Implements makVrv::DtPolygonModel.
|
virtual |
Set the polygon outline width.
Implements makVrv::DtPolygonModel.
|
virtual |
Set the polygon outline width used for event picking.
Implements makVrv::DtOverlayPolygonModel.
|
virtual |
Sets whether or not mouse events are enabled.
Implements makVrv::DtOverlayPolygonModel.
|
virtual |
Sets whether or not the polygon is visible.
Reimplemented from makVrv::DtModel.
|
virtual |
Add the polygon to the scene.
Implements makVrv::DtModel.
|
virtual |
Remove the polygon from the scene.
Implements makVrv::DtModel.
|
virtual |
Sets the model definition on the model instance.
Reimplemented from makVrv::DtModel.
|
virtual |
Set whether or not to use dynamic origin. Will not cause redraw or recalulate, but will effect how point 0 is used when using setPosition. If true will not set the point 0 to be at the origin, but rather will respect the current value. Default is false.
Implements makVrv::DtPolygonModel.
|
virtual |
Sets a fill pattern (32x32)
Implements 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.
Implements makVrv::DtOverlayPolygonModel.
|
virtual |
Get the object's origin.
Implements makVrv::DtOverlayPolygonModel.
|
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.
|
protectedvirtual |
Moves instances from channel specific groups back to model set/visualizer groups. This will mean destroying all channel specific instances and creating a single instance.
|
protectedvirtual |
Moves the single instance to channel specific instances. Will make connections for channels being added and removed. This code is to allow for fixed sized items on different channels.
|
protectedvirtual |
Called when channel is created, if the model set is this model set then add a new model instance.
|
protectedvirtual |
If the channel destroyed contains an instance of this model, destroy that model instance.
|
protectedvirtual |
Check to see if model instances associated with this channel need to be created or destroyed.
|
protectedvirtual |
Sets up the model instance with current values of this model.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Set to true if displaying model instances on a per channel basis. Default is false.
|
protected |
|
protected |
|
protected |
Variables that are saved in order to switch between channel instance and model set instance.
|
protected |
Variables that are saved in order to switch between channel instance and model set instance.
|
protected |
Variables that are saved in order to switch between channel instance and model set instance.
|
protected |
Variables that are saved in order to switch between channel instance and model set instance.
|
protected |
Variables that are saved in order to switch between channel instance and model set instance.
|
protected |
Variables that are saved in order to switch between channel instance and model set instance.
Variables that are saved in order to switch between channel instance and model set instance.
|
protected |
Variables that are saved in order to switch between channel instance and model set instance.
|
protected |
Variables that are saved in order to switch between channel instance and model set instance.
|
protected |
Variables that are saved in order to switch between channel instance and model set instance.
|
protected |
Variables that are saved in order to switch between channel instance and model set instance.
Variables that are saved in order to switch between channel instance and model set instance.
|
protected |
Variables that are saved in order to switch between channel instance and model set instance.
|
protected |
Variables that are saved in order to switch between channel instance and model set instance.
|
protected |
Variables that are saved in order to switch between channel instance and model set instance.