![]() |
VR-Forces Developer's Guide
|
A prism controlled by control points.

Public Types | |
| enum | LineExtrusionMode { LineOnly, ExtrudeWidth, ExtrudeHeight, FullExtrusion } |
| typedef std::vector< DtVector > | PointVector |
Public Types inherited from makVrv::DtOsgModelInstance | |
| enum | AlphaToCoverageState { USE_GLOBAL, FORCE_OFF, FORCE_ON } |
| typedef std::unordered_map < std::string, bool > | SensorRegionStateMap |
Public Member Functions | |
| DtExtrudedModelInstance (DtDe &de) | |
| virtual | ~DtExtrudedModelInstance () |
| virtual const PointVector & | points () const |
| virtual void | addPoint (const DtVector &, int index=-1) |
| virtual void | removePoint (int index) |
| virtual void | setPoints (const std::vector< DtVector > &) |
| virtual void | setPosition (int index, const DtVector &) |
| virtual void | setPositions (const std::vector< DtVector > &) |
| virtual void | clearPoints () |
| virtual void | addToConnector (DtOsgSceneConnector *connector) |
| virtual bool | removeFromConnector (DtOsgSceneConnector *connector) |
| virtual void | setStipplePattern (unsigned int) |
| virtual void | setColor (float r, float g, float b, float a) |
| virtual void | getColor (float &r, float &g, float &b, float &a) const |
| virtual void | setTextureHeight (double height) |
| virtual void | setTextureWidth (double width) |
| virtual void | setTexture (osg::Texture *texture) |
| virtual void | setWidth (float) |
| virtual void | setHeight (float) |
| virtual void | setDimensions (float width, float height) |
| virtual void | setLineWidth (float width) |
| virtual void | setScribeWidth (float width) |
| virtual void | setScribeAllPolygons (bool) |
| virtual void | setScribed (bool b) |
| virtual void | setScribeColor (float r, float g, float b, float a) |
| virtual void | setVisible (bool isVisible) |
| int | pointCount () const |
| const DtVector & | origin () const |
| const DtVector & | point (int) const |
| virtual void | setPickable (bool) |
| bool | pickable () const |
| void | setOrigin (const DtVector &origin) |
| virtual void | updatePoints () |
| virtual void | setSolid (bool) |
| osg::Node * | rootNode () |
| virtual void | setUpExtent (float height) |
| virtual void | setDownExtent (float height) |
| virtual void | setLeftExtent (float height) |
| virtual void | setRightExtent (float heigh) |
Public Member Functions inherited from makVrv::DtOsgModelInstance | |
| virtual | ~DtOsgModelInstance () |
| virtual bool | realize (const DtModelDefinition &definition) |
| virtual bool | cloneInstance (const DtModelDefinition &definition) |
| virtual bool | saveModelToFile (const std::string &filename) const |
| virtual void | enableColorBlending (bool b) |
| virtual void | setBlendColor (float r, float g, float b, float a) |
| virtual void | enableTexture (bool onOff) |
| virtual const osg::Node * | rootNode () const |
| virtual osg::Node * | sensorNode () |
| virtual const osg::Node * | sensorNode () const |
| virtual void | setDynamicSensorRegion (const std::string ®ion, bool state) |
| virtual bool | dynamicSensorRegion (const std::string ®ion) |
| virtual const SensorRegionStateMap & | dynamicSensorRegionMap () const |
| virtual void | slot_atcGlobalModelEnableChanged () |
| virtual bool | alphaToCoverageEnabled () |
Public Member Functions inherited from makVrv::DtModelInstance | |
| DtModelInstance (DtDe &de) | |
| virtual | ~DtModelInstance () |
| const std::string & | realizedDefinitionName () const |
| const DtVector & | boundingBoxExtents () const |
| void | getBoundingBoxExtents (double &x, double &y, double &z) const |
| const DtVector & | boundingBoxCenter () const |
| void | getBoundingBoxCenter (double &x, double &y, double &z) const |
| void | getBoundingBoxComponents (DtVector &minimum, DtVector &maximum) |
| const DtVector & | allGeometryboundingBoxExtents () const |
| void | getAllGeometryBoundingBoxExtents (double &x, double &y, double &z) const |
| const DtVector & | allGeometryboundingBoxCenter () const |
| void | getAllGeometryBoundingBoxCenter (double &x, double &y, double &z) const |
| void | getAllGeometryBoundingBoxComponents (DtVector &minimum, DtVector &maximum) |
| virtual void | setContributesToBound (bool trueOrFalse) |
| bool | contributesToBound () const |
Protected Member Functions | |
| virtual osg::Vec3 | rotatePoint (const osg::Vec3 &org, double range, const DtTaitBryan &angle) const |
| virtual void | updateMode () |
| virtual void | updateGeometry () |
| virtual void | updateTextureCoordinates () |
| virtual void | addPointsForExtentExtrusion (const DtVector &point) |
| virtual void | addFaceForRotation (const osg::Quat &rotation, const DtVector &point) |
| virtual void | addPointsForFullExtrusion (const DtVector &from, const DtVector &to) |
| virtual void | setupScribeTransparency (bool b) |
| virtual void | setupGeodeTransparency (bool b) |
| virtual void | updateStippling () |
| virtual void | updateScribeLine () |
| virtual void | updateColors () |
| virtual bool | frontAndBackFaceRendered () const |
| virtual void | updatePointsForLineStrip () |
| virtual void | updatePointsForTriangleStrip () |
| virtual void | updatePointsForExtrusion () |
| virtual void | createFaces () |
| virtual void | updateScribeForTriangleStrip () |
| virtual void | updateScribeForExtrusion (osg::Vec3Array *) |
| virtual void | updateScribeForOutline () |
| virtual void | updateScribeForFull () |
| virtual void | updateGeometryWithStrip (osg::ref_ptr< osg::Geometry > &, const osg::ref_ptr< osg::Vec3Array > &) |
| virtual void | slot_coordinateSystemChanged () |
Protected Member Functions inherited from makVrv::DtOsgModelInstance | |
| DtOsgModelInstance (DtDe &de) | |
| virtual void | updateColorBlending () |
| virtual void | updateColorBlending (osg::Node *node) |
| virtual void | enableTexture (osg::Node *root, bool onOff) |
| virtual void | updateBoundingBoxViaContents () |
| virtual void | setRootNode (osg::Node *node) |
| virtual void | setUpDepthTest (osg::StateSet *stateSet) |
Private Member Functions | |
| DtExtrudedModelInstance () | |
| DtExtrudedModelInstance (const DtExtrudedModelInstance &) | |
| DtExtrudedModelInstance & | operator= (const DtExtrudedModelInstance &) |
Additional Inherited Members | |
Static Public Member Functions inherited from makVrv::DtModelInstance | |
| static float | readFloat (const std::string ¶mName, const DtModelDefinition &definition) |
| static DtVector | readVector (const std::string ¶mName, const DtModelDefinition &definition) |
| static DtVector4< float > | readVector4 (const std::string ¶mName, const DtModelDefinition &definition) |
Public Attributes inherited from makVrv::DtOsgModelInstance | |
| boost::signalslib::signal < void(const std::string &, bool) > | signal_dynamicSensorRegionAdded |
| boost::signalslib::signal < void(const std::string &, bool) > | signal_dynamicSensorRegionChanged |
| boost::signalslib::signal < void(bool)> | signal_atcModeEnableChanged |
Public Attributes inherited from makVrv::DtModelInstance | |
| boost::signalslib::signal < void(DtModelInstance *)> | signal_modelInstanceChanged |
| typedef std::vector<DtVector> makVrv::DtExtrudedModelInstance::PointVector |
| makVrv::DtExtrudedModelInstance::DtExtrudedModelInstance | ( | DtDe & | de | ) |
CTOR.
|
virtual |
DTOR.
|
private |
Default Constructor not implemented.
|
private |
Copy Constructor not implemented - Copy not allowed.
|
private |
Assignment Operator not implemented - Copy not allowed.
|
virtual |
Returns the points associated with this model.
|
virtual |
Add a control point to the end of the control point list if index is -1, or, at the specified index.
|
virtual |
Remove a control point at the specified index.
|
virtual |
Sets all the points.
|
virtual |
Move a control point at the specified index to a new position.
|
virtual |
Sets all the positions int the model. replacing existing.
|
virtual |
Clears out positions and resets geometry.
|
virtual |
Tell the model instance to add itself to the provided node.
Reimplemented from makVrv::DtOsgModelInstance.
|
virtual |
Tell the model instance to remove itself from the provided node.
Reimplemented from makVrv::DtOsgModelInstance.
|
virtual |
Sets the stipple pattern of the line.
|
virtual |
Set the color of the line.
Reimplemented in makVrv::DtExtrudedPolygonModelInstance.
|
virtual |
Gets the color of the line.
|
virtual |
Set the height of the texture in meters.
|
virtual |
Set the width of the texture tiles in meters.
|
virtual |
Set the shape's texture.
|
virtual |
Sets the values of the extents of the line. Extents of the line are different than the width or height in that in setting the width or height those are centered around the points. The extents work from the point and move in the direction of the extent in topographic space. For example, if you imagine a straight line, the up extent moves straight up from that line, the down extent straight down, left to the left and right to the right. As the line rotates and orients the extents orient and rotate with that line.
Set the shape's upwards extrusion extent
|
virtual |
Set the shape's downwards extrusion extent.
|
virtual |
Set the shape's left extrusion extent.
|
virtual |
Set the shape's right extrusion extent.
|
virtual |
Sets the width of the line. If there is height, will 0 out height.
|
virtual |
Sets the height of the line ("up/down" the origin point). If width is set, will 0 out width for the entire line.
|
virtual |
Sets the dimensions of the line.
|
virtual |
Sets the width of the line in pixel space, not world. Clears out any existing dimensional size.
|
virtual |
Sets the width of the scribe line in pixel space. This will set a flag such that when the line width is changed this width is not, so, once set, you will need to continue to set to keep pace with line width. Set to 0 to reset scribe width back to line width.
|
virtual |
Sets whether or not to only scribe the outline (and not the line edges). Only valid if scribed is true. If set to true will scribe all point connections along the polygon. If false will only scribe the top and bottom of the polygon.
|
virtual |
Sets the line to be scribed (default true)
|
virtual |
Sets the color of the scribe line. Once set it will always be different than the color of the main polygon.
|
inlinevirtual |
no-op
Implements makVrv::DtModelInstance.
| int makVrv::DtExtrudedModelInstance::pointCount | ( | ) | const |
Returns the number of points.
| const DtVector& makVrv::DtExtrudedModelInstance::origin | ( | ) | const |
Returns the origin point of the line.
| const DtVector& makVrv::DtExtrudedModelInstance::point | ( | int | ) | const |
Returns the point at the given index. zero point if index is out of range.
|
virtual |
Sets whether or not line is pickable.
| bool makVrv::DtExtrudedModelInstance::pickable | ( | ) | const |
Returns whether or not line is pickable.
| void makVrv::DtExtrudedModelInstance::setOrigin | ( | const DtVector & | origin | ) |
|
virtual |
Create the point array based on extents and point list.
Reimplemented in makVrv::DtExtrudedPolygonModelInstance.
|
virtual |
Sets shape solid or outlined only. If solid is false and scribed is false, line will be effectively invisible.
|
virtual |
Returns the root node.
Reimplemented from makVrv::DtOsgModelInstance.
|
protectedvirtual |
Rotates the point at the given topo angle and returns the result.
|
protectedvirtual |
Updates the line mode to a correct mode for the given extents.
|
protectedvirtual |
Rebuild the geometry objects.
Reimplemented in makVrv::DtExtrudedPolygonModelInstance.
|
protectedvirtual |
Recalculate the texture coordinates.
|
protectedvirtual |
Add points for a height or width extrustion.
|
protectedvirtual |
Adds a face given the rotation matrix.
|
protectedvirtual |
Add points for full extrustion.
|
protectedvirtual |
Sets up the fact that the scribe line is transparent (true) or not (false) with respect to blending into the background.
|
protectedvirtual |
Sets up transparency for geode that represents the objects points.
|
protectedvirtual |
Updates for stippling.
Reimplemented in makVrv::DtExtrudedPolygonModelInstance.
|
protectedvirtual |
Updates the scribe line for geometry and color.
|
protectedvirtual |
Updates colors of line and scribe line.
Reimplemented in makVrv::DtExtrudedPolygonModelInstance.
|
protectedvirtual |
Returns true if the first and last face are part of the line. Default is true.
|
protectedvirtual |
Updates the points for the line strip mode (no extrusion)
|
protectedvirtual |
Updates points for width or height extrusion.
|
protectedvirtual |
Updates points for full extrusion.
|
protectedvirtual |
Creates the front/back face per segment for full extrusion.
|
protectedvirtual |
Updates script line for triangle strip mode.
|
protectedvirtual |
Updates scribe line for full extrusion mode.
|
protectedvirtual |
Updates scribe for outline (top/bottom) only.
|
protectedvirtual |
Updates scribe for edges and outline.
|
protectedvirtual |
Updates geometry with indicies necessary to draw scribe line.
|
protectedvirtual |
slot for when the coordinate system changes
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
If the line has width and height, the list of faces that make up the junction points of the boxes. Each junction point is a series of four coordinates.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
If drawing as line use this pointer to create the pickable segments of that line, else geometry will not support it.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
local clone of the system wide coordinate system. for thread safety.