![]() |
VR-Forces 4.8 Class Documentation
|
A prism controlled by control points. More...
Public Types | |
| enum | LineExtrusionMode { LineOnly, ExtrudeWidth, ExtrudeHeight, FullExtrusion } |
Public Member Functions | |
| DtExtrudedLineModelSegmentInstance (DtDe &de) | |
| CTOR. More... | |
| virtual | ~DtExtrudedLineModelSegmentInstance () |
| DTOR. More... | |
| virtual void | setStipplePattern (unsigned int, int repeatFactor) |
| Sets the stipple pattern of the line. More... | |
| virtual void | getStipplePattern (unsigned int &, int &) |
| Retrieves the stipple information. More... | |
| virtual void | setColor (const osg::Vec4 &) |
| Set the color of the line. More... | |
| virtual void | getColor (float &r, float &g, float &b, float &a) |
| Gets the color of the line. More... | |
| virtual void | setPoints (const DtVector &start, const DtVector &end) |
| Sets the start/end point on the line. Will then create geometry for the line. More... | |
| virtual void | updatePoints (const DtVector &, const DtVector &) |
| virtual void | setTextureHeight (double height) |
| Set the height of the texture in meters. More... | |
| virtual void | setTextureWidth (double width) |
| Set the width of the texture tiles in meters. More... | |
| virtual void | setTexture (osg::Texture *texture) |
| Set the shape's texture. More... | |
| virtual void | setWidth (float) |
| Sets the width of the line. If there is height, will 0 out height. More... | |
| virtual void | setScribeWidth (float) |
| Sets the width of the scribe line. If 0 will set width to width of line. More... | |
| virtual void | setHeight (float) |
| Sets the height of the line ("up/down" the origin point). More... | |
| virtual void | setLineWidth (float width) |
| Sets the width of the line in pixel space, not world. More... | |
| virtual void | setScribed (bool b) |
| Sets the line to be scribed (default true) More... | |
| virtual void | setScribeColor (const osg::Vec4 &) |
| Sets the color of the scribe line. More... | |
| virtual void | setOcclusionEnabled (bool enabled) |
| Turn on or off occlusion of the line by other objects; default is true. More... | |
| virtual void | setPickable (bool) |
| Set the line's pickability. More... | |
| bool | pickable () const |
| Get if the line is pickable. More... | |
| osg::Node * | rootNode () |
| Returns the root node. More... | |
| void | setOrigin (const DtVector &origin) |
| Set the line's origin. More... | |
| virtual void | setSolid (bool) |
| Sets shape solid or outlined only. If solid is false and scribed is false, line will be effectively invisible. More... | |
| virtual void | setEndArrow (bool) |
| Sets the arrow to be on/off at the end of the segment (second point) More... | |
| virtual bool | endArrow () const |
| Returns whether or not end arrow is set. More... | |
| virtual void | setStartArrow (bool) |
| Sets the arrow to be on/off at the start of the segment (first point) More... | |
| virtual bool | startArrow () const |
| Returns whether or not start arrow is set. More... | |
| virtual void | setArrowSize (double) |
| Sets the size of the arrow (in pixels) More... | |
| virtual void | setArrowStyle (vrvTacticalGraphicUtilities::ArrowStyle) |
| Sets the style of the arrow (see DtTacticalGraphicUtilities.h) More... | |
| virtual void | setIsLastSegment (bool) |
| Sets whether or not this is the last segment to be drawn. More... | |
| virtual bool | isLastSegment () const |
| virtual void | updateColors () |
| Updates colors of line and scribe line. More... | |
| virtual void | setUpExtent (float height) |
| Set the shape's upwards extrusion extent. More... | |
| virtual void | setDownExtent (float height) |
| Set the shape's downwards extrusion extent. More... | |
| virtual void | setLeftExtent (float height) |
| Set the shape's left extrusion extent. More... | |
| virtual void | setRightExtent (float heigh) |
| Set the shape's right extrusion extent. More... | |
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. More... | |
| virtual void | updateTextureCoordinates () |
| Recalculate the texture coordinates. More... | |
| virtual int | addPointsForExtentExtrusion (const DtVector &point) |
| Add points for a height or width extrustion. More... | |
| virtual void | setupScribeTransparency (bool b) |
| Sets up the fact that the scribe line is transparent (true) or not (false) with respect to blending into the background. More... | |
| virtual int | addFaceForRotation (const osg::Quat &rotation, const DtVector &point) |
| Adds a face given the heading and elevation (in radians) More... | |
| virtual int | addPointsForFullExtrusion (const DtVector &from, const DtVector &to) |
| Add points for full extrustion. More... | |
| virtual void | updateStippling () |
| Updates for stippling. More... | |
| virtual void | updateScribeLine () |
| Updates the scribe line for geometry and color. More... | |
| virtual bool | frontAndBackFaceRendered () const |
| Returns true if the first and last face are part of the line. Default is true. More... | |
| virtual void | updatePointsForLineStrip () |
| Updates the points for the line strip mode (no extrusion) More... | |
| virtual void | updatePointsForTriangleStrip () |
| Updates points for width or height extrusion. More... | |
| virtual void | updatePointsForExtrusion () |
| Updates points for full extrusion. More... | |
| virtual void | createFaces () |
| Creates the front/back face per segment for full extrusion. More... | |
| virtual void | updateScribeForTriangleStrip () |
| Updates script line for triangle strip mode. More... | |
| virtual void | updateScribeForExtrusion () |
| Updates scribe line for full extrusion mode. More... | |
| virtual void | updatePointsWithArrows () |
| If any segments want arrows, adds the points to draw arrows at those segment points. More... | |
| virtual void | connectFaces (osg::DrawElementsUInt *, int startFace, int endFace) const |
| Connects the faces of a full extrusion, making sure all sides are filled in. More... | |
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.
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
|
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 width of the scribe line. If 0 will set width to width of line.
|
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 |
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 |
|
virtual |
Updates colors of line and scribe line.
|
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 |
Sets up the fact that the scribe line is transparent (true) or not (false) with respect to blending into the background.
|
protectedvirtual |
Adds a face given the heading and elevation (in radians)
|
protectedvirtual |
Add points for full extrustion.
|
protectedvirtual |
Updates for stippling.
|
protectedvirtual |
Updates the scribe line for geometry and color.
|
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.
|
protectedvirtual |
Connects the faces of a full extrusion, making sure all sides are filled in.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
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 |