![]() |
VR-Forces Developer's Guide
|
Interface for a DtWindowLineInstance - an attachable model instance that draws a 2D line.
A 2D line has a start position and end position, and is made up of segments. Each segment consists of a percentage, color, style, arrow style, stipple pattern, and thickness. Each segment is drawn as the specified percentage of length of the entire line, starting from the end of the previous segment.

Public Member Functions | |
| virtual | ~DtWindowLineInstance () |
| virtual void | setVertex (unsigned int vertex, double x, double y)=0 |
| virtual void | removeVertex (unsigned int vertex)=0 |
| virtual void | setColor (float r, float g, float b, float a)=0 |
| virtual void | setStipplePattern (unsigned int stipplePattern)=0 |
| virtual void | setWidth (unsigned int width)=0 |
| virtual void | setStyleSegments (const std::vector< double > &segmentPercentages)=0 |
| virtual void | setSegmentColor (unsigned int index, float r, float g, float b, float a)=0 |
| virtual void | setSegmentStartColor (unsigned int index, float r, float g, float b, float a)=0 |
| virtual void | setSegmentEndColor (unsigned int index, float r, float g, float b, float a)=0 |
| virtual void | setSegmentLightningStyle (unsigned int index, bool enableLightningStyle)=0 |
| virtual void | setSegmentStartArrow (unsigned int index, bool enableStartArrow)=0 |
| virtual void | setSegmentEndArrow (unsigned int index, bool enableEndArrow)=0 |
| virtual void | setSegmentStipplePattern (unsigned int index, unsigned int stippleScale, unsigned int stipplePattern)=0 |
| virtual void | setSegmentWidth (unsigned int index, unsigned int width)=0 |
| virtual void | update ()=0 |
| virtual void | setTransform (DtMatrix3< double > transform)=0 |
| virtual void | setClipBox (DtVector2< double > bottomLeftLocation, DtVector2< double > topRightLocation)=0 |
| virtual void | setGroup (int groupId)=0 |
| virtual void | setChannelOverlay (const std::string &displayName, const std::string &windowName, const std::string &channelName)=0 |
Public Member Functions inherited from makVrv::DtSetVisibilityInterface | |
| virtual | ~DtSetVisibilityInterface () |
| virtual void | setVisible (bool visible)=0 |
|
virtual |
DTOR.
|
pure virtual |
Set (or add) the specified vertex at <x,y>
Implemented in makVrv::DtOsgWindowLineInstance.
Remove the specified vertex.
Implemented in makVrv::DtOsgWindowLineInstance.
|
pure virtual |
Set the entire line color.
Implemented in makVrv::DtOsgWindowLineInstance.
|
pure virtual |
Set the entire line stipple pattern.
Implemented in makVrv::DtOsgWindowLineInstance.
Set the entire line width.
Implemented in makVrv::DtOsgWindowLineInstance.
|
pure virtual |
Set the percentage lengths of the segments; creates and removes segments as necessary.
Implemented in makVrv::DtOsgWindowLineInstance.
|
pure virtual |
Set the color of a segment.
Implemented in makVrv::DtOsgWindowLineInstance.
|
pure virtual |
Set the color of the firt vertex in a segment. This can be used for color blending between vertices.
Implemented in makVrv::DtOsgWindowLineInstance.
|
pure virtual |
Set the color of the second vertex in a segment. This can be used for color blending between vertices.
Implemented in makVrv::DtOsgWindowLineInstance.
|
pure virtual |
Set a segment's lightning style (whether or not it looks like a lighting bolt)
Implemented in makVrv::DtOsgWindowLineInstance.
|
pure virtual |
Turn on or off a segment's start arrow.
Implemented in makVrv::DtOsgWindowLineInstance.
|
pure virtual |
Turn on or off a segment's end arrow.
Implemented in makVrv::DtOsgWindowLineInstance.
|
pure virtual |
Set the stipple pattern for a segment according to the OpenGL line stipple feature.
Implemented in makVrv::DtOsgWindowLineInstance.
|
pure virtual |
Set the width of a segment in pixels.
Implemented in makVrv::DtOsgWindowLineInstance.
|
pure virtual |
Called on signal_postUpdate; time to update render data.
Implemented in makVrv::DtOsgWindowLineInstance.
|
pure virtual |
Sets the line's transform matrix, used to update the position and clockwise rotation of the vertices.
Implemented in makVrv::DtOsgWindowLineInstance.
|
pure virtual |
Set this objects clip box bounds.
Implemented in makVrv::DtOsgWindowLineInstance.
|
pure virtual |
Set this object's group ID for z order. The higher the Z order the "closer" the element will be drawn to the eye point.
Implemented in makVrv::DtOsgWindowLineInstance.
|
pure virtual |
By default window objects are placed on the RemoteDisplayWorldOverlay, which is rendered on all channels that have the "showRemoteGraphics" channel keyword. If a user wishes to draw a specific window object on a specific channel, use this method. This does not work for remote displays.
Implemented in makVrv::DtOsgWindowLineInstance, and makVrv::DtOsgWindowLineGroupInstance.