![]() |
VR-Forces Developer's Guide
|
A prism controlled by control points.
Public Types | |
| enum | LineExtrusionMode { LineOnly, ExtrudeWidth, ExtrudeHeight, FullExtrusion } |
Public Member Functions | |
| DtExtrudedLineModelSegmentInstance (DtDe &de) | |
| virtual | ~DtExtrudedLineModelSegmentInstance () |
| virtual void | setStipplePattern (unsigned int, int repeatFactor) |
| virtual void | getStipplePattern (unsigned int &, int &) |
| virtual void | setColor (const osg::Vec4 &) |
| virtual void | getColor (float &r, float &g, float &b, float &a) |
| virtual void | setPoints (const DtVector &start, const DtVector &end) |
| virtual void | updatePoints (const DtVector &, const DtVector &) |
| virtual void | setTextureHeight (double height) |
| virtual void | setTextureWidth (double width) |
| virtual void | setTexture (osg::Texture *texture) |
| virtual void | setWidth (float) |
| virtual void | setScribeWidth (float) |
| virtual void | setHeight (float) |
| virtual void | setLineWidth (float width) |
| virtual void | setScribed (bool b) |
| virtual void | setScribeColor (const osg::Vec4 &) |
| virtual void | setOcclusionEnabled (bool enabled) |
| virtual void | setPickable (bool) |
| bool | pickable () const |
| osg::Node * | rootNode () |
| void | setOrigin (const DtVector &origin) |
| virtual void | setSolid (bool) |
| virtual void | setEndArrow (bool) |
| virtual bool | endArrow () const |
| virtual void | setStartArrow (bool) |
| virtual bool | startArrow () const |
| virtual void | setArrowSize (double) |
| virtual void | setArrowStyle (vrvTacticalGraphicUtilities::ArrowStyle) |
| virtual void | setIsLastSegment (bool) |
| virtual bool | isLastSegment () const |
| virtual void | updateColors () |
| virtual void | setUpExtent (float height) |
| virtual void | setDownExtent (float height) |
| virtual void | setLeftExtent (float height) |
| virtual void | setRightExtent (float heigh) |
Protected Types | |
| typedef std::vector< DtVector > | PointVector |
Protected Member Functions | |
| virtual void | updateMode () |
| virtual void | updateTextureCoordinates () |
| virtual int | addPointsForExtentExtrusion (const DtVector &point) |
| virtual void | setupScribeTransparency (bool b) |
| virtual int | addFaceForRotation (const osg::Quat &rotation, const DtVector &point) |
| virtual int | addPointsForFullExtrusion (const DtVector &from, const DtVector &to) |
| virtual void | updateStippling () |
| virtual void | updateScribeLine () |
| virtual bool | frontAndBackFaceRendered () const |
| virtual void | updatePointsForLineStrip () |
| virtual void | updatePointsForTriangleStrip () |
| virtual void | updatePointsForExtrusion () |
| virtual void | createFaces () |
| virtual void | updateScribeForTriangleStrip () |
| virtual void | updateScribeForExtrusion () |
| virtual void | updatePointsWithArrows () |
| virtual void | connectFaces (osg::DrawElementsUInt *, int startFace, int endFace) const |
| virtual void | slot_coordinateSystemChanged () |
|
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 |
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 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.
|
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 |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Set when the geodes have been removed from the main transform. Segments are erased for graphics like bridges where there are connecting segments that are not meant to be drawn.
|
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 |
|
protected |
|
protected |
local clone of the system wide coordinate system. for thread safety.