Public Member Functions |
| | DtOsgOverlayRectangleModel (DtDe &de, DtUniqueID &id) |
| | CTOR.
|
| virtual | ~DtOsgOverlayRectangleModel () |
| | DTOR.
|
| virtual DtVector | rotateToDatabase (const DtVector &pos, const DtVector &origin) |
| | Rotates the vector into the terrains coordinate system.
|
| virtual void | setInsideColor (float r, float g, float b, float a) |
| | Set the color at the center of the ellipse.
|
| virtual void | setOutsideColor (float r, float g, float b, float a) |
| | Set the color on the outside of the ellipse.
|
| virtual void | setSolidFillCenter (bool) |
| | Sets to fill the center solid (if filled) not gradiant. Default is false.
|
| 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 | setPosition (int vtx, const DtVector &position) |
| | Set the position of one vertex of the polygon.
|
| virtual void | setPoint (int vtx, const DtVector &position) |
| | Equivalent to setPosition.
|
| virtual void | set2dOffset (int index, float x, float y) |
| | Sets the 2d offset of a vertex.
|
| virtual void | setOrientation (const DtTaitBryan &orientation) |
| | Set the orientation of the rectangle.
|
| virtual void | setOrientation (int vtx, const DtTaitBryan &orientation) |
| | Set the color of the polygon.
|
| 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 | setTexturePath (const std::string &texturePath) |
| | Set the path to the polygon's 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 | setLockUpdates (bool lock) |
| | Will either update or batch updates until a future unlock is given.
|
| virtual void | setGroup (int) |
| | The higher the Z order the "closer" to the eyepoint this element will be drawn.
|
| virtual void | setPickable (bool enabled) |
| | Sets whether or not the line is pickable.
|
| virtual void | setStipplePattern (unsigned int stipplePattern) |
| | Sets stipple pattern for the polygon.
|
| virtual void | setWidth (float width) |
| | Set the line width.
|
| virtual void | setEventWidth (float width) |
| | Sets the events line width for the polygon model if it is outlined.
|
| virtual void | setEventsEnabled (bool) |
| | Sets whether or not mouse events are enabled.
|
| virtual void | setDimensions (double width, double length, double altitudeOffset) |
| | Sets the dimensions of the rectangle, according to database and orientation.
|
| virtual void | resetSpatial () |
| | Sets geometry based on origin and dimensions.
|
| virtual void | setOrigin (const DtVector &) |
| | Sets origin of model such that points will be offset from this origin.
|
| 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 const std::vector
< DtVector > & | points () const |
| | Returns the points of this rectangle.
|
|
| 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.
|
| | DtOverlayRectangleModel (DtDe &de, DtUniqueID id) |
| | CTOR.
|
| virtual | ~DtOverlayRectangleModel () |
| | DTOR.
|
| virtual void | removePoint (int index) |
| | Overridden to allow setDimensions to handle point manipulation.
|
| virtual void | addPoint (const DtVector &point, int index) |
| | Add a new point to the line at the specified index, or, at the end if index is -1.
|
| | DtOverlayPolygonModel (DtDe &de, DtUniqueID id) |
| | CTOR.
|
| virtual | ~DtOverlayPolygonModel () |
| | DTOR.
|
| | DtPolygonModel (DtDe &de, DtUniqueID id) |
| | CTOR.
|
| virtual | ~DtPolygonModel () |
| | DTOR.
|
| virtual void | setFill (bool) |
| | Calls setSolid.
|
| | 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.
|
| virtual void | removePosition (int vtx) |
| | Remove a transform at the given position.
|
| 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 void | setVisible (bool isVisible) |
| | Set the visible state of the model.
|
| 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.
|
OSG implementation of overlay polygon model.