![]() |
VR-Forces Developer's Guide
|
A convex polygon drawn using lines.

Public Member Functions | |
| DtOutlinedPolygon (DtOverlayRendererInterface &renderer, DtWidgetPicker &picker) | |
| DtOutlinedPolygon (DtDe &de, DtChannel *channel, DtModelSetId modelSet) | |
| virtual | ~DtOutlinedPolygon () |
| virtual void | setEventsEnabled (bool enabled, unsigned long long userData=0) |
| bool | eventsEnabled () const |
| virtual void | setVertexCount (unsigned int vertexCount) |
| virtual unsigned int | vertexCount () const |
| virtual void | set2DPositions (const std::vector< float > &vertices) |
| virtual void | set2DPosition (unsigned int vertexIndex, float x1, float y1) |
| virtual void | get2DPosition (unsigned int vertexIndex, float &x, float &y) const |
| virtual void | set3DPosition (unsigned int vertexIndex, float x, float y, float z, float w) |
| virtual void | get3DPosition (unsigned int vertexIndex, float &x, float &y, float &z, float &w) const |
| virtual void | set3DDirectionAndLength (unsigned int index, float x, float y, float z, float l) |
| virtual void | setVertexColor (unsigned int index, float r, float g, float b, float a) |
| virtual void | getVertexColor (unsigned int index, float &r, float &g, float &b, float &a) |
| virtual void | setColor (float r, float g, float b, float a) |
| virtual void | getColor (float &r, float &g, float &b, float &a) const |
| void | setStippleParameters (unsigned int scale, unsigned short pattern) |
| virtual void | setStipple (unsigned int stipplePattern) |
| virtual void | setOutlineWidth (float) override |
| virtual void | setEventOutlineWidth (float) |
| virtual int | group () const |
| virtual void | setGroup (int) |
| virtual DtLineSegmentInterface * | createAndInitNewSegment () |
Public Member Functions inherited from makVrv::DtOutlinedPolygonInterface | |
| DtOutlinedPolygonInterface () | |
| virtual | ~DtOutlinedPolygonInterface () |
Public Member Functions inherited from makVrv::DtPolygonInterface | |
| DtPolygonInterface ()=default | |
| DtPolygonInterface (DtPolygonInterface &)=delete | |
| DtPolygonInterface (DtPolygonInterface &&)=delete | |
| DtPolygonInterface & | operator= (DtPolygonInterface &)=delete |
| DtPolygonInterface & | operator= (DtPolygonInterface &&)=delete |
| virtual | ~DtPolygonInterface () |
| virtual void | triangulationComplete (bool crossingLines) |
Protected Types | |
| typedef std::vector < DtLineSegmentInterface * > | LineSegmentList |
| typedef std::vector < DtPickableLine * > | PickableSegmentList |
Protected Member Functions | |
| virtual void | slot_pickerDestroyed () |
Protected Attributes | |
| DtOverlayRendererInterface * | myRenderer |
| DtWidgetPicker * | myPicker |
| LineSegmentList | myLineSegments |
| PickableSegmentList | myPickableSegments |
| bool | myEventsEnabled |
| unsigned long long | myUserData |
| unsigned short | myStipplePattern |
| float | myWidth |
| float | myEventWidth |
| int | myGroup |
| bool | myPickerDestroyed |
| boost::signalslib::connection | myPickerDestroyedConnection |
|
protected |
|
protected |
| makVrv::DtOutlinedPolygon::DtOutlinedPolygon | ( | DtOverlayRendererInterface & | renderer, |
| DtWidgetPicker & | picker | ||
| ) |
CTOR.
| makVrv::DtOutlinedPolygon::DtOutlinedPolygon | ( | DtDe & | de, |
| DtChannel * | channel, | ||
| DtModelSetId | modelSet | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Set whether the sprite has widget events. Disabling events disconnects all of the DtOutlinedPolygon signals The user data is set when enabling the events, to change only the user data make multiple calls with enabled=true.
Implements makVrv::DtOutlinedPolygonInterface.
|
virtual |
Get whether events are already enabled.
Implements makVrv::DtOutlinedPolygonInterface.
Set the number of vertices, set the number of vertices before setting their parameters (position, color etc).
Implements makVrv::DtOutlinedPolygonInterface.
Get the vertex count.
Implements makVrv::DtOutlinedPolygonInterface.
|
virtual |
Set the number of vertices and their positions. vertices must be x,y,z encoded triplets.
Implements makVrv::DtOutlinedPolygonInterface.
|
virtual |
Set the vertex positions.
Implements makVrv::DtOutlinedPolygonInterface.
|
virtual |
Get the vertex position.
Implements makVrv::DtOutlinedPolygonInterface.
|
virtual |
Set one vertex position.
Implements makVrv::DtOutlinedPolygonInterface.
|
virtual |
Get the vertex position.
Implements makVrv::DtOutlinedPolygonInterface.
|
virtual |
Sets an optional 3D direction with a 2D length value for a vertex.
| index | the index of the vertex to get the position of |
| x | x component of the position |
| y | y component of the position |
| z | z component of the position |
| l | l length of the vector offset in 2D. |
Implements makVrv::DtOutlinedPolygonInterface.
|
virtual |
Set the color of a specific vertex.
Implements makVrv::DtOutlinedPolygonInterface.
|
virtual |
Get the color of a specific vertex.
Implements makVrv::DtOutlinedPolygonInterface.
|
virtual |
Set entire poly-line color.
Implements makVrv::DtOutlinedPolygonInterface.
|
virtual |
Get the poly-line color.
Implements makVrv::DtOutlinedPolygonInterface.
|
virtual |
Set the entire poly-line stipple. Scale is from 1-256. Pattern is 16 bit mask. Warning Stippled lines are rendered significantly slower than non-Stippled lines. Setting the pattern to NoStipple causes the line not to be stippled anymore.
Implements makVrv::DtOutlinedPolygonInterface.
Set the stipple pattern.
This pattern is used as a bitmask against the pixels of the polygon The default value is 0xFFFFFFFF, which is equivalent to no stippling
Implements makVrv::DtOutlinedPolygonInterface.
|
overridevirtual |
Sets the width of the line segments that comprise the polygon.
Implements makVrv::DtOutlinedPolygonInterface.
|
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;.
Implements makVrv::DtOutlinedPolygonInterface.
|
virtual |
Returns the group that the polygon is on (for Z-Ordering)
Implements makVrv::DtOutlinedPolygonInterface.
|
virtual |
Sets the group for Z-ordering.
Implements makVrv::DtOutlinedPolygonInterface.
|
virtual |
Creates and initializes a new segment.
Implements makVrv::DtOutlinedPolygonInterface.
|
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 |
|
protected |
|
protected |