![]() |
VR-Forces 4.3 Class Documentation
|
OSG implementation of overlay polygon model. More...

Public Member Functions | |
| DtOsgOverlayPolygonModel (DtDe &de, DtUniqueID &id) | |
| CTOR. | |
| virtual | ~DtOsgOverlayPolygonModel () |
| DTOR. | |
| virtual void | setUseDynamicOrigin (bool) |
| Set whether or not to use dynamic origin. | |
| virtual void | setFillPattern (const std::vector< unsigned int >) |
| Sets a fill pattern (32x32) | |
| virtual void | setOutline (bool) |
| Sets whether or not to outline the polygon with a scribe as if unfilled, even when filled. | |
| virtual void | setColor (float r, float g, float b, float a) |
| Set the color of the polygon. | |
| virtual void | setInsideColor (float r, float g, float b, float a) |
| Set the color at the center of the ellipse. | |
| virtual void | getInsideColor (float &r, float &g, float &b, float &a) |
| Retrieves the inside color. | |
| virtual void | setOutsideColor (float r, float g, float b, float a) |
| Set the color on the outside of the ellipse. | |
| virtual void | getOutsideColor (float &r, float &g, float &b, float &a) |
| Retrieves the inside color. | |
| virtual void | setSolidFillCenter (bool) |
| Sets to fill the center solid (if filled) not gradiant. Default is false. | |
| virtual void | setPosition (int vtx, const DtVector &position) |
| Sets the origin if vtx is 0. | |
| virtual void | setOrigin (const DtVector &o) |
| Will set in model instance. | |
| virtual void | setPoint (int vtx, const DtVector &position) |
| Will set point in the model instance. | |
| virtual void | set2dOffset (int index, float x, float y) |
| Sets the 2D offset of a vertex. | |
| virtual void | set3dDirection2dLength (int index, float x, float y, float z, float len) |
| Sets a 3D direction with a 2D length of a vertex. | |
| virtual void | setGroup (int) |
| The higher the Z order the "closer" to the eyepoint this element will be drawn. | |
| virtual void | setOrientation (int vtx, const DtTaitBryan &orientation) |
| Set the orientation of a vertex of the polygon; has no effect. | |
| virtual void | setTexturePath (const std::string &texturePath) |
| Set the path to the polygon's texture. | |
| virtual void | setOutlineTexture (const std::string &texturePath) |
| Set the path to the polygon's outline texture. | |
| virtual void | setNumTextureTiles (double numTiles) |
| Set the number of texture tiles. | |
| virtual void | setSolid (bool solid) |
| Set a object to be solid. | |
| virtual void | addPoint (const DtVector &point, int index) |
| Add a new point to the polygon at the specified index, or, at the end if index is -1. | |
| virtual void | setLockUpdates (bool lock) |
| Will either update or batch updates until a future unlock is given. | |
| virtual void | setPickable (bool enabled) |
| Sets whether or not the polygon is pickable. | |
| virtual void | removePoint (int index) |
| Removes the point from the specified index. | |
| virtual void | removePosition (int index) |
| Calls removePoint. | |
| virtual void | setStipplePattern (unsigned int stipplePattern) |
| Sets stipple pattern for the polygon. | |
| virtual const std::vector < DtVector > & | points () const |
| Points that make up this polygon. | |
| virtual int | pointCount () const |
| Retrieves the number of points in the model. | |
| virtual DtVector | point (int) const |
| Retrieves the point inclusive of the origin. | |
| virtual void | setWidth (float width) |
| Set the polygon outline width. | |
| virtual void | setEventWidth (float width) |
| Set the polygon outline width used for event picking. | |
| virtual void | setEventsEnabled (bool) |
| Sets whether or not mouse events are enabled. | |
| virtual void | setVisible (bool isVisible) |
| Sets whether or not the polygon is visible. | |
| virtual void | addToScene (const DtUniqueID &sceneObjectId, int modelSet, int visualizerType) |
| Add the polygon to the scene. | |
| virtual void | removeFromScene () |
| Remove the polygon from the scene. | |
| virtual void | setModelDefinition (const std::string &str) |
| Sets the model definition on the model instance. | |
Public Member Functions inherited from makVrv::DtOverlayPolygonModel | |
| DtOverlayPolygonModel (DtDe &de, DtUniqueID id) | |
| CTOR. | |
| virtual | ~DtOverlayPolygonModel () |
| DTOR. | |
Public Member Functions inherited from makVrv::DtPolygonModel | |
| DtPolygonModel (DtDe &de, DtUniqueID id) | |
| CTOR. | |
| virtual | ~DtPolygonModel () |
| DTOR. | |
| virtual void | setFill (bool) |
| Calls setSolid. | |
Public Member Functions inherited from makVrv::DtModel | |
| DtModel (DtDe &de, DtUniqueID id) | |
| CTOR. | |
| virtual | ~DtModel () |
| DTOR. | |
| virtual void | saveModelToFile (const std::string &filename) |
| virtual std::string | className () const |
| Get the class name of the model instance owner. | |
| unsigned int | transformSize () const |
| Get the number of position/orientations this model has. | |
| const DtVector & | position (int vtx=0) const |
| Get the Position of a given point. | |
| const DtTaitBryan & | orientation (int vtx=0) const |
| Get the Orientation of a given point. | |
| virtual void | enableColorBlending (bool b) |
| Enable / disable color blending for this model. | |
| virtual void | setBlendColor (float r, float g, float b, float a) |
| Set color to use if color blending is enabled. | |
| virtual void | getBlendColor (float &r, float &g, float &b, float &a) |
| Returns the blend color. | |
| virtual bool | colorBlendingEnabled () const |
| Returns whether or not blending is enabled. | |
| virtual void | enableLighting (bool l) |
| set whether the model is lit; this may not be an option on all models | |
| virtual int | modelSet () const |
| Get the model set this model is part of. | |
| const DtVector & | boundingBoxExtents () const |
| Get the bounding box extents of the model instance. | |
| void | getBoundingBoxExtents (double &x, double &y, double &z) const |
| Get the bounding box extents of the model instance. | |
| const DtVector & | boundingBoxCenter () const |
| Get the bounding box center of the model instance. | |
| virtual void | getBoundingBoxCenter (double &x, double &y, double &z) const |
| Get the bounding box center of the model instance. | |
| virtual void | getBoundingBoxComponents (DtVector &minimum, DtVector &maximum) |
| Get the minimum and maximum X,Y,Z components of the bounding box. | |
| void | setContributesToBound (bool trueOrFalse) |
| Set whether this model instance contributes to an object's overall bounding volume. | |
| bool | contributesToBound () const |
| Get whether this model instance contributes to an object's overall bounding volume. | |
| DtDe & | de () |
| Get the DtDe object. | |
| virtual void | setModelInstance (DtModelInstance *modelInstance) |
| Internally set the model instance pointer. | |
| virtual bool | visible () const |
| Get the visible state of the model. | |
| DtUniqueID | parentSceneObjectID () const |
| Parent of the model. | |
| virtual void | addedToSceneObjectAsProp (const DtUniqueID &sceneObj) |
| Called when a scene object added the model as a prop. | |
| virtual void | addedToSceneObject (const DtUniqueID &sceneObj, int modelSet, int visualizerType) |
| Called when a scene object added the model with the given model set and visualizer type. | |
| virtual void | removedFromSceneObject () |
| Called when the model was removed from a scene object. | |
| virtual DtModelInstance * | modelInstance () |
| Get the model instance. | |
| virtual const DtModelInstance * | modelInstance () const |
| Get the model instance. | |
| int | visualizerType () const |
| The visualizer type determines which channel-specific group node this model will be parented to, and consequently, which observer setting will cause it to be rendered in which channel. | |
Protected Types | |
| typedef std::map< DtChannel *, DtOsgOverlayPolygonModelInstance * > | ChannelInstances |
Protected Member Functions | |
| virtual void | moveInstancesFromChannelSpecific () |
| Moves instances from channel specific groups back to model set/visualizer groups. | |
| virtual void | moveInstancesToChannelSpecific () |
| Moves the single instance to channel specific instances. | |
| virtual void | slot_channelCreated (DtChannel *channel) |
| Called when channel is created, if the model set is this model set then add a new model instance. | |
| virtual void | slot_channelDestroyed (DtChannelManager *channelManager, DtChannel *channel) |
| If the channel destroyed contains an instance of this model, destroy that model instance. | |
| virtual void | slot_channelConfigurationModified (const std::string &deName, const std::string &winName, const std::string &oldChannelName, const DtChannelConfiguration &config) |
| Check to see if model instances associated with this channel need to be created or destroyed. | |
| virtual void | setupInstanceWithCurrentValues (DtOsgOverlayPolygonModelInstance *) |
| Sets up the model instance with current values of this model. | |
Protected Attributes | |
| DtUniqueID | myParentId |
| bool | myEventsEnabled |
| DtVector | myOrigin |
| DtTaitBryan | myRotation |
| bool | myUseDynamicOrigin |
| bool | myChannelSpecificMode |
| Set to true if displaying model instances on a per channel basis. | |
| ChannelInstances | myChannelInstances |
| DtOsgOverlayPolygonModelInstance::VertexList | myPoints |
| std::string | myModelDefinition |
| float | myInsideColor [4] |
| float | myOutsideColor [4] |
| float | myWidth |
| std::string | myTexturePath |
| std::string | myOutlineTexture |
| std::vector< unsigned int > | myFillPattern |
| bool | myOutline |
| bool | mySolidFillCenter |
| double | myNumTextureTiles |
| bool | myPickable |
| unsigned int | myStipplePattern |
| float | myEventWidth |
| bool | mySolid |
| int | myGroup |
Additional Inherited Members | |
Public Attributes inherited from makVrv::DtModel | |
| boost::signal< void(DtModel *)> | signal_modelToBeDestroyed |
| Signal emitted when the model is to be destroyed. | |
| boost::signal< void(DtModel *)> | signal_modelChanged |
| boost::signal< bool(DtModel *, bool), SlotReturnOR > | signal_visibilityChangeRequested |
| Signal when the visibility has been requested, if any slot returns false, it will not change. | |
| boost::signal< void(DtModelInstance *, DtModel *)> | signal_modelInstanceCreated |
| Signal emitted when the model instance is created. | |
| boost::signal< void(DtModelInstance *, DtModel *)> | signal_modelInstanceToBeDestroyed |
| Signal emitted when the model instance is to be destroyed. | |
OSG implementation of overlay polygon model.
|
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 |
Sets the origin if vtx is 0.
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.
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 |
Will either update or batch updates until a future unlock is given.
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.
|
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 |
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
|
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
|
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