![]() |
VR-Forces 4.7 Class Documentation
|
Interface for a DtWindowLineInstance - an attachable model instance that draws a 2D line. More...

Public Member Functions | |
| virtual | ~DtWindowLineInstance () |
| DTOR. | |
| virtual void | setVertex (unsigned int vertex, double x, double y)=0 |
| Set (or add) the specified vertex at <x,y> | |
| virtual void | removeVertex (unsigned int vertex)=0 |
| Remove the specified vertex. | |
| virtual void | setColor (float r, float g, float b, float a)=0 |
| Set the entire line color. | |
| virtual void | setStipplePattern (unsigned int stipplePattern)=0 |
| Set the entire line stipple pattern. | |
| virtual void | setWidth (unsigned int width)=0 |
| Set the entire line width. | |
| virtual void | setStyleSegments (const std::vector< double > &segmentPercentages)=0 |
| Set the percentage lengths of the segments; creates and removes segments as necessary. | |
| virtual void | setSegmentColor (unsigned int index, float r, float g, float b, float a)=0 |
| Set the color of a segment. | |
| virtual void | setSegmentStartColor (unsigned int index, float r, float g, float b, float a)=0 |
| Set the color of the firt vertex in a segment. | |
| virtual void | setSegmentEndColor (unsigned int index, float r, float g, float b, float a)=0 |
| Set the color of the second vertex in a segment. | |
| virtual void | setSegmentLightningStyle (unsigned int index, bool enableLightningStyle)=0 |
| Set a segment's lightning style (whether or not it looks like a lighting bolt) | |
| virtual void | setSegmentStartArrow (unsigned int index, bool enableStartArrow)=0 |
| Turn on or off a segment's start arrow. | |
| virtual void | setSegmentEndArrow (unsigned int index, bool enableEndArrow)=0 |
| Turn on or off a segment's end arrow. | |
| virtual void | setSegmentStipplePattern (unsigned int index, unsigned int stipplePattern)=0 |
| Set the stipple pattern for a segment according to the OpenGL line stipple feature. | |
| virtual void | setSegmentWidth (unsigned int index, unsigned int width)=0 |
| Set the width of a segment in pixels. | |
| virtual void | update ()=0 |
| Called on signal_postUpdate; time to update render data. | |
Public Member Functions inherited from makVrv::DtSetVisibilityInterface | |
| virtual | ~DtSetVisibilityInterface () |
| virtual void | setVisible (bool visible)=0 |
| Set the visibility. | |
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.
|
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.