![]() |
VR-Forces 4.3 Class Documentation
|
A prism controlled by control points. More...
Public Types | |
| enum | LineExtrusionMode { LineOnly, ExtrudeWidth, ExtrudeHeight, FullExtrusion } |
Public Member Functions | |
| DtExtrudedLineModelSegmentInstance (DtDe &de) | |
| CTOR. | |
| virtual | ~DtExtrudedLineModelSegmentInstance () |
| DTOR. | |
| virtual void | setStipplePattern (unsigned int, int repeatFactor) |
| Sets the stipple pattern of the line. | |
| virtual void | getStipplePattern (unsigned int &, int &) |
| Retrieves the stipple information. | |
| virtual void | setColor (const osg::Vec4 &) |
| Set the color of the line. | |
| virtual void | getColor (float &r, float &g, float &b, float &a) |
| Gets the color of the line. | |
| virtual void | setPoints (const DtVector &start, const DtVector &end) |
| Sets the start/end point on the line. Will then create geometry for the line. | |
| virtual void | updatePoints (const DtVector &, const DtVector &) |
| 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 | 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 (const osg::Vec4 &) |
| 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 | setOcclusionEnabled (bool enabled) |
| Turn on or off occlusion of the line by other objects; default is true. | |
| virtual void | setPickable (bool) |
| Set the line's pickability. | |
| bool | pickable () const |
| Get if the line is pickable. | |
| osg::Node * | rootNode () |
| Returns the root node. | |
| void | setOrigin (const DtVector &origin) |
| Set the line's 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 void | setEndArrow (bool) |
| Sets the arrow to be on/off at the end of the segment (second point) | |
| virtual bool | endArrow () const |
| Returns whether or not end arrow is set. | |
| virtual void | setStartArrow (bool) |
| Sets the arrow to be on/off at the start of the segment (first point) | |
| virtual bool | startArrow () const |
| Returns whether or not start arrow is set. | |
| virtual void | setArrowSize (double) |
| Sets the size of the arrow (in pixels) | |
| virtual void | setArrowStyle (vrvTacticalGraphicUtilities::ArrowStyle) |
| Sets the style of the arrow (see DtTacticalGraphicUtilities.h) | |
| virtual void | setIsLastSegment (bool) |
| Sets whether or not this is the last segment to be drawn. | |
| virtual bool | isLastSegment () const |
Protected Types | |
| typedef std::vector< DtVector > | PointVector |
Protected Member Functions | |
| virtual void | updateMode () |
| Updates the line mode to a correct mode for the given extents. | |
| virtual void | updateTextureCoordinates () |
| Recalculate the texture coordinates. | |
| virtual int | addPointsForExtentExtrusion (const DtVector &point) |
| Add points for a height or width extrustion. | |
| virtual int | addFaceForRotation (const osg::Quat &rotation, const DtVector &point) |
| Adds a face given the rotation matrix. | |
| virtual int | addPointsForFullExtrusion (const DtVector &from, const DtVector &to) |
| Add points for full extrustion. | |
| virtual void | updateStippling () |
| Updates for stippling. | |
| virtual void | updateScribeLine () |
| Updates the scribe line for geometry and color. | |
| virtual void | updateColors () |
| Updates colors of line and scribe line. | |
| virtual bool | frontAndBackFaceRendered () const |
| Returns true if the first and last face are part of the line. Default is true. | |
| virtual void | updatePointsForLineStrip () |
| Updates the points for the line strip mode (no extrusion) | |
| virtual void | updatePointsForTriangleStrip () |
| Updates points for width or height extrusion. | |
| virtual void | updatePointsForExtrusion () |
| Updates points for full extrusion. | |
| virtual void | createFaces () |
| Creates the front/back face per segment for full extrusion. | |
| virtual void | updateScribeForTriangleStrip () |
| Updates script line for triangle strip mode. | |
| virtual void | updateScribeForExtrusion (osg::Vec3Array *) |
| Updates scribe line for full extrusion mode. | |
| virtual void | updatePointsWithArrows () |
| If any segments want arrows, adds the points to draw arrows at those segment points. | |
Protected Attributes | |
| osg::ref_ptr< osg::Geode > | myShapeGeode |
| osg::ref_ptr< osg::Geometry > | myShapeGeometry |
| osg::ref_ptr< osg::Vec3Array > | myShapePoints |
| osg::ref_ptr< osg::Geode > | myScribeGeode |
| osg::ref_ptr< osg::Geometry > | myScribeGeometry |
| osg::ref_ptr< osg::Vec3Array > | myScribePoints |
| osg::ref_ptr< osg::Texture > | myTexture |
| osg::ref_ptr< osg::Vec2Array > | myTextureCoordinates |
| osg::ref_ptr< osg::LineWidth > | myLineWidth |
| osg::ref_ptr< osg::Group > | myMainTransform |
| osg::ref_ptr< osg::Vec3Array > | myFaces |
| If the line has width and height, the list of faces that make up the junction points of the boxes. | |
| osg::Vec4 | myColor |
| double | myTextureWidth |
| double | myTextureHeight |
| float | myUpExtent |
| float | myDownExtent |
| float | myLeftExtent |
| float | myRightExtent |
| DtVector | myStartPoint |
| DtVector | myEndPoint |
| DtVector | myOrigin |
| bool | myStartArrow |
| bool | myEndArrow |
| double | myArrowSize |
| vrvTacticalGraphicUtilities::ArrowStyle | myArrowStyle |
| PointVector | myDrawPoints |
| bool | myScribeOccluded |
| bool | myScribed |
| bool | mySolid |
| unsigned int | myStipplePattern |
| int | myRepeatFactor |
| LineExtrusionMode | myMode |
| DtOsgSegmentPickable * | myPickable |
| If drawing as line use this pointer to create the pickable segments of that line, else geometry will not support it. | |
| bool | myIsPickable |
| osg::Vec4 | myScribeColor |
| bool | myScribeColorSet |
| bool | myIsLastSegment |
| DtDe & | myDe |
A prism controlled by control points.
|
protected |
| makVrv::DtExtrudedLineModelSegmentInstance::DtExtrudedLineModelSegmentInstance | ( | DtDe & | de | ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Sets the stipple pattern of the line.
|
virtual |
Retrieves the stipple information.
|
virtual |
Set the color of the line.
|
virtual |
Gets the color of the line.
|
virtual |
Sets the start/end point on the line. Will then create geometry for the line.
|
virtual |
|
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 |
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 width of the line in pixel space, not world.
Clears out any existing dimensional size
|
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
|
virtual |
Sets the scribed line to be occluded by the terrain (default true)
|
virtual |
Turn on or off occlusion of the line by other objects; default is true.
|
virtual |
Set the line's pickability.
| bool makVrv::DtExtrudedLineModelSegmentInstance::pickable | ( | ) | const |
Get if the line is pickable.
| osg::Node* makVrv::DtExtrudedLineModelSegmentInstance::rootNode | ( | ) |
Returns the root node.
| void makVrv::DtExtrudedLineModelSegmentInstance::setOrigin | ( | const DtVector & | origin | ) |
Set the line's origin.
|
virtual |
Sets shape solid or outlined only. If solid is false and scribed is false, line will be effectively invisible.
|
virtual |
Sets the arrow to be on/off at the end of the segment (second point)
|
virtual |
Returns whether or not end arrow is set.
|
virtual |
Sets the arrow to be on/off at the start of the segment (first point)
|
virtual |
Returns whether or not start arrow is set.
|
virtual |
Sets the size of the arrow (in pixels)
|
virtual |
Sets the style of the arrow (see DtTacticalGraphicUtilities.h)
|
virtual |
Sets whether or not this is the last segment to be drawn.
Needs to be set for styles that draw arrows according to what is the last segment
|
virtual |
|
protectedvirtual |
Updates the line mode to a correct mode for the given extents.
|
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 |
Updates for stippling.
|
protectedvirtual |
Updates the scribe line for geometry and color.
|
protectedvirtual |
Updates colors of line and scribe line.
|
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 |
If any segments want arrows, adds the points to draw arrows at those segment points.
|
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 |
|
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 |