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

Public Member Functions | |
| DtOutlinedPolygonInterface () | |
| virtual | ~DtOutlinedPolygonInterface () |
| virtual void | setEventsEnabled (bool enabled, unsigned long long userData=0)=0 |
| virtual bool | eventsEnabled () const =0 |
| virtual void | setVertexCount (unsigned int vertexCount)=0 |
| virtual unsigned int | vertexCount () const =0 |
| virtual void | set2DPositions (const std::vector< float > &vertices)=0 |
| virtual void | set2DPosition (unsigned int vertexIndex, float x1, float y1)=0 |
| virtual void | get2DPosition (unsigned int vertexIndex, float &x, float &y) const =0 |
| virtual void | set3DPosition (unsigned int vertexIndex, float x, float y, float z, float w)=0 |
| virtual void | get3DPosition (unsigned int vertexIndex, float &x, float &y, float &z, float &w) const =0 |
| virtual void | set3DDirectionAndLength (unsigned int index, float x, float y, float z, float l)=0 |
| virtual void | setVertexColor (unsigned int index, float r, float g, float b, float a)=0 |
| virtual void | getVertexColor (unsigned int index, float &r, float &g, float &b, float &a)=0 |
| virtual void | setColor (float r, float g, float b, float a)=0 |
| virtual void | getColor (float &r, float &g, float &b, float &a) const =0 |
| virtual void | setStippleParameters (unsigned int scale, unsigned short pattern)=0 |
| virtual void | setStipple (unsigned int stipplePattern)=0 |
| virtual void | setOutlineWidth (float)=0 |
| virtual void | setEventOutlineWidth (float)=0 |
| virtual int | group () const =0 |
| virtual void | setGroup (int)=0 |
| virtual DtLineSegmentInterface * | createAndInitNewSegment ()=0 |
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) |
| makVrv::DtOutlinedPolygonInterface::DtOutlinedPolygonInterface | ( | ) |
CTOR.
|
virtual |
DTOR.
|
pure virtual |
Set whether the sprite has widget events. Disabling events disconnects all of the DtOutlinedPolygonInterface signals The user data is set when enabling the events, to change only the user data make multiple calls with enabled=true.
Implements makVrv::DtPolygonInterface.
Implemented in makVrv::DtOutlinedPolygon, and makVrv::DtTexturedOutlinedPolygon.
|
pure virtual |
Get whether events are already enabled.
Implemented in makVrv::DtOutlinedPolygon, and makVrv::DtTexturedOutlinedPolygon.
|
pure virtual |
Set the number of vertices, set the number of vertices before setting their parameters (position, color etc).
Implements makVrv::DtPolygonInterface.
Implemented in makVrv::DtOutlinedPolygon, and makVrv::DtTexturedOutlinedPolygon.
Get the vertex count.
Implements makVrv::DtPolygonInterface.
Implemented in makVrv::DtOutlinedPolygon, and makVrv::DtTexturedOutlinedPolygon.
|
pure virtual |
Set the number of vertices and their positions. vertices must be x,y,z encoded triplets.
Implements makVrv::DtPolygonInterface.
Implemented in makVrv::DtOutlinedPolygon, and makVrv::DtTexturedOutlinedPolygon.
|
pure virtual |
Set the vertex positions.
Implements makVrv::DtPolygonInterface.
Implemented in makVrv::DtOutlinedPolygon, and makVrv::DtTexturedOutlinedPolygon.
|
pure virtual |
Get the vertex position.
Implements makVrv::DtPolygonInterface.
Implemented in makVrv::DtOutlinedPolygon, and makVrv::DtTexturedOutlinedPolygon.
|
pure virtual |
Set one vertex position.
Implements makVrv::DtPolygonInterface.
Implemented in makVrv::DtOutlinedPolygon, and makVrv::DtTexturedOutlinedPolygon.
|
pure virtual |
Get the vertex position.
Implements makVrv::DtPolygonInterface.
Implemented in makVrv::DtOutlinedPolygon, and makVrv::DtTexturedOutlinedPolygon.
|
pure 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::DtPolygonInterface.
Implemented in makVrv::DtOutlinedPolygon, and makVrv::DtTexturedOutlinedPolygon.
|
pure virtual |
Set the color of a specific vertex.
Implements makVrv::DtPolygonInterface.
Implemented in makVrv::DtOutlinedPolygon, and makVrv::DtTexturedOutlinedPolygon.
|
pure virtual |
Get the color of a specific vertex.
Implements makVrv::DtPolygonInterface.
Implemented in makVrv::DtOutlinedPolygon, and makVrv::DtTexturedOutlinedPolygon.
|
pure virtual |
Set entire poly-line color.
Implements makVrv::DtPolygonInterface.
Implemented in makVrv::DtOutlinedPolygon, and makVrv::DtTexturedOutlinedPolygon.
|
pure virtual |
Get the poly-line color.
Implements makVrv::DtPolygonInterface.
Implemented in makVrv::DtOutlinedPolygon, and makVrv::DtTexturedOutlinedPolygon.
|
pure 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.
Implemented in makVrv::DtOutlinedPolygon, and makVrv::DtTexturedOutlinedPolygon.
|
pure virtual |
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::DtPolygonInterface.
Implemented in makVrv::DtOutlinedPolygon, and makVrv::DtTexturedOutlinedPolygon.
|
pure virtual |
Sets the width of the line segments that comprise the polygon.
Implemented in makVrv::DtOutlinedPolygon, and makVrv::DtTexturedOutlinedPolygon.
|
pure 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;.
Implemented in makVrv::DtOutlinedPolygon, and makVrv::DtTexturedOutlinedPolygon.
|
pure virtual |
Returns the group that the polygon is on (for Z-Ordering)
Implements makVrv::DtPolygonInterface.
Implemented in makVrv::DtOutlinedPolygon, and makVrv::DtTexturedOutlinedPolygon.
|
pure virtual |
Sets the group for Z-ordering.
Implements makVrv::DtPolygonInterface.
Implemented in makVrv::DtOutlinedPolygon, and makVrv::DtTexturedOutlinedPolygon.
|
pure virtual |
Creates and initializes a new segment.
Implemented in makVrv::DtOutlinedPolygon, makVrv::DtTexturedOutlinedPolygon, and makVrv::DtTexturedOutlinedPolygonInterface.