![]() |
VR-Forces 4.1.1 Class Documentation
|
A convex polygon drawn using lines. More...

Public Member Functions | |
| DtSegmentedLine (DtOverlayRenderer &renderer, DtWidgetPicker &picker) | |
| CTOR. | |
| virtual | ~DtSegmentedLine () |
| Constructor removed in favor of more generic constructor to take Overlay Renderer 09/04/2012. | |
| virtual void | setEventsEnabled (bool enabled, unsigned long long userData=0) |
| Set whether the sprite has widget events. | |
| virtual bool | eventsEnabled () const |
| Get whether events are already enabled. | |
| virtual void | setVertexCount (unsigned int vertexCount) |
| Set the number of vertices, set the number of vertices before setting their parameters (position, color etc). | |
| virtual unsigned int | vertexCount () const |
| Get the vertex count. | |
| virtual unsigned int | segmentCount () const |
| Number of segments available. | |
| virtual void | set2DPosition (unsigned int vertexIndex, float x1, float y1) |
| Set the vertex positions. | |
| virtual void | get2DPosition (unsigned int vertexIndex, float &x, float &y) const |
| Get the vertex position. | |
| virtual void | set3DPosition (unsigned int vertexIndex, float x, float y, float z, float w) |
| Set one vertex position. | |
| virtual void | get3DPosition (unsigned int vertexIndex, float &x, float &y, float &z, float &w) const |
| Get the vertex position. | |
| virtual void | set3DDirection (unsigned int vertexIndex, float x, float y, float z) |
| Set the normalized direction of the line in world space. | |
| virtual void | get3DDirection (unsigned int vertexIndex, float &x, float &y, float &z) const |
| Get the normalized direction of the vertex. | |
| virtual void | setDirection2DLength (unsigned int vertexIndex, float length) |
| Set the length of the line in 2D space. | |
| virtual float | direction2DLength (unsigned int vertexIndex) const |
| Get the length of the line in 2D space. | |
| virtual void | setSegmentColor (unsigned int segment, float r, float g, float b, float a) |
| Set the color of the segment (non-blending) | |
| virtual void | setPointColor (unsigned int point, float r, float g, float b, float a) |
| Set the color of the point (bleding) | |
| virtual void | setStipplePattern (unsigned int segment, unsigned int pattern) |
| Set the stipple pattern. | |
| virtual void | setWidth (unsigned int segment, float w) |
| Set the line width. | |
| virtual void | setEventWidth (float) |
| Sets the width of the event outline segments. | |
| virtual DtLineSegmentInterface * | createAndInitNewSegment () |
| Creates and initializes a new segment. | |
Protected Types | |
| typedef std::vector < DtLineSegmentInterface * > | LineSegmentList |
| typedef std::vector < DtPickableLine * > | PickableSegmentList |
Protected Member Functions | |
| virtual void | removeLineSegmentsUntilEndFrom (int segmentCount) |
| Removed segments from the line starting at segmentCount until the end is reached. | |
| virtual void | setLineSegment (int, DtLineSegmentInterface *) |
| Sets the segment into the array. If array is smaller, increases size. | |
| virtual void | slot_pickerDestroyed () |
| Called when the widget picker is destroyed, clears out pickable segment list and sets a flag to no longer use the picker. | |
Protected Attributes | |
| DtOverlayRenderer & | myRenderer |
| DtWidgetPicker & | myPicker |
| LineSegmentList | myLineSegments |
| PickableSegmentList | myPickableSegments |
| bool | myEventsEnabled |
| unsigned int | myVertexCount |
| unsigned long long | myUserData |
| float | myEventWidth |
| bool | myPickerDestroyed |
A convex polygon drawn using lines.
|
protected |
|
protected |
| makVrv::DtSegmentedLine::DtSegmentedLine | ( | DtOverlayRenderer & | renderer, |
| DtWidgetPicker & | picker | ||
| ) |
CTOR.
|
virtual |
Constructor removed in favor of more generic constructor to take Overlay Renderer 09/04/2012.
The line renderer is still used, however the new constructor allows for subclasses to use different renderer types DtSegmentedLine(DtLineRenderer& renderer,DtWidgetPicker& picker); DTOR
|
virtual |
Set whether the sprite has widget events.
Disabling events disconnects all of the DtSegmentedLine signals The user data is set when enabling the events, to change only the user data make multiple calls with enabled=true
|
virtual |
Get whether events are already enabled.
|
virtual |
Set the number of vertices, set the number of vertices before setting their parameters (position, color etc).
The number of segments will be one less than the number of vertices set, with the count being at least 1 if the vertex count is > 0
|
virtual |
Get the vertex count.
This count will always be one more than the number of segments available. Use segment count to get the number of segments
|
virtual |
Number of segments available.
|
virtual |
Set the vertex positions.
|
virtual |
Get the vertex position.
|
virtual |
Set one vertex position.
NOTE it is much more efficient to update all vertices using setPositions If several change.
|
virtual |
Get the vertex position.
|
virtual |
Set the normalized direction of the line in world space.
|
virtual |
Get the normalized direction of the vertex.
|
virtual |
Set the length of the line in 2D space.
|
virtual |
Get the length of the line in 2D space.
|
virtual |
Set the color of the segment (non-blending)
|
virtual |
Set the color of the point (bleding)
|
virtual |
Set the stipple pattern.
|
virtual |
Set the line width.
|
virtual |
Sets the width of the event outline segments.
To use the outline width as the event width set the event outline width to -1.0f;
|
virtual |
Creates and initializes a new segment.
Reimplemented in makVrv::DtTexturedLine.
|
protectedvirtual |
Removed segments from the line starting at segmentCount until the end is reached.
Reimplemented in makVrv::DtTexturedLine.
|
protectedvirtual |
Sets the segment into the array. If array is smaller, increases size.
Reimplemented in makVrv::DtTexturedLine.
|
protectedvirtual |
Called when the widget picker is destroyed, clears out pickable segment list and sets a flag to no longer use the picker.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |