Public Member Functions |
| | DtExtrudedPolygonModelInstance (DtDe &de) |
| | CTOR.
|
| virtual | ~DtExtrudedPolygonModelInstance () |
| | DTOR.
|
| virtual void | setFill (bool) |
| | Sets whether or not polygon is filled or just an outline (default is false)
|
| virtual void | setPolygonMode (DtExtrudedPolygonModel::PolygonMode mode) |
| | Sets the mode of the polygon (by default top and bottom)
|
| | DtExtrudedModelInstance (DtDe &de) |
| | CTOR.
|
| virtual | ~DtExtrudedModelInstance () |
| | DTOR.
|
| virtual const PointVector & | points () const |
| | Returns the points associated with this model.
|
| virtual void | addPoint (const DtVector &, int index=-1) |
| | Add a control point to the end of the control point list if index is -1, or, at the specified index.
|
| virtual void | removePoint (int index) |
| | Remove a control point at the specified index.
|
| virtual void | setPosition (int index, const DtVector &) |
| | Move a control point at the specified index to a new position.
|
| virtual void | clearPoints () |
| | Clears out positions and resets geometry.
|
| virtual bool | realize (DtModelDefinition &definition) |
| | Attempt to realize a definition.
|
| virtual void | addToConnector (DtOsgSceneConnector *connector) |
| | Tell the model instance to add itself to the provided node.
|
| virtual bool | removeFromConnector (DtOsgSceneConnector *connector) |
| | Tell the model instance to remove itself from the provided node.
|
| virtual void | setStipplePattern (unsigned int) |
| | Sets the stipple pattern of the line.
|
| virtual void | setColor (float r, float g, float b, float a) |
| | Set the color of the line.
|
| virtual void | setTextureHeight (double height) |
| | Set the height of the texture in meters.
|
| virtual void | setTextureWidth (double width) |
| | Set the width of the texture tiles in meters.
|
| virtual void | setTexture (osg::Texture *texture) |
| | Set the shape's texture.
|
| virtual void | setUpExtent (float height) |
| | Set the shape's upwards extrusion extent.
|
| virtual void | setDownExtent (float height) |
| | Set the shape's downwards extrusion extent.
|
| virtual void | setLeftExtent (float height) |
| | Set the shape's left extrusion extent.
|
| virtual void | setRightExtent (float heigh) |
| | Set the shape's right extrusion extent.
|
| virtual void | setWidth (float) |
| | Sets the width of the line. If there is height, will 0 out height.
|
| virtual void | setHeight (float) |
| | Sets the height of the line ("up/down" the origin point).
|
| virtual void | setDimensions (float width, float height) |
| | Sets the dimensions of the line.
|
| virtual void | setLineWidth (float width) |
| | Sets the width of the line in pixel space, not world.
|
| virtual void | setScribed (bool b) |
| | Sets the line to be scribed (default true)
|
| virtual void | setScribeColor (float r, float g, float b, float a) |
| | Sets the color of the scribe line.
|
| virtual void | setScribeOccluded (bool b) |
| | Sets the scribed line to be occluded by the terrain (default true)
|
| virtual void | setVisible (bool isVisible) |
| | no-op
|
| int | pointCount () const |
| | Returns the number of points.
|
| const DtVector & | origin () const |
| | Returns the origin point of the line.
|
| const DtVector & | point (int) const |
| | Returns the point at the given index. zero point if index is out of range.
|
| virtual void | setLockUpdates (bool) |
| | Sets whether or not updates are locked. If updates are locked, no changes made until they are unlocked.
|
| bool | updatesLocked () const |
| | Returns whether or not updates are locked.
|
| virtual void | setPickable (bool) |
| | Sets whether or not line is pickable.
|
| bool | pickable () const |
| | Returns whether or not line is pickable.
|
| void | setOrigin (const DtVector &origin) |
| virtual void | setSolid (bool) |
| | Sets shape solid or outlined only. If solid is false and scribed is false, line will be effectively invisible.
|
| virtual | ~DtOsgModelInstance () |
| | DTOR.
|
| virtual bool | saveModelToFile (const std::string &filename) const |
| | Attempt to save the model to a file.
|
| virtual void | enableColorBlending (bool b) |
| | Enable / disable coloring on all models in the scene object Note about enableColorBlending: If this particular model has instancing enabled then this flag is set to false and color blending is handled by the instance manager.
|
| virtual void | setBlendColor (float r, float g, float b, float a) |
| | set the model's color
|
| virtual void | enableTexture (bool onOff) |
| virtual osg::Node * | rootNode () |
| | Get the model instance's root node.
|
| virtual const osg::Node * | rootNode () const |
| | Get the model instance's root node.
|
| virtual osg::Node * | sensorNode () |
| | Get the model instance's sensor node, .
|
| virtual const osg::Node * | sensorNode () const |
| | Get the model instance's sensor node, .
|
| virtual void | addDynamicSensorRegion (const std::string ®ion) |
| | Add an active region state.
|
| virtual void | setDynamicSensorRegion (const std::string ®ion, bool state) |
| | Set the state of an active region.
|
| virtual bool | dynamicSensorRegion (const std::string ®ion) |
| | Get the current state of the specified sensor region.
|
| SensorRegionStateMap const | dynamicSensorRegionMap () const |
| | Get the map containing all regions and their current states.
|
| | DtModelInstance (DtDe &de) |
| | CTOR.
|
| virtual | ~DtModelInstance () |
| | DTOR.
|
| const std::string & | realizedDefinitionName () const |
| | Get the name of the definition that this model instance was realized with.
|
| 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.
|
| void | getBoundingBoxCenter (double &x, double &y, double &z) const |
| | Get the bounding box center of the model instance.
|
| void | getBoundingBoxComponents (DtVector &minimum, DtVector &maximum) |
| virtual 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.
|
A prism controlled by control points.