![]() |
VR-Forces 4.7 Class Documentation
|
A class which represents a single line segment. More...

Public Member Functions | |
| DtLineSegment (DtOverlayRenderer &renderer) | |
| Create a a line segment. | |
| DtLineSegment (DtLineRenderer &renderer) | |
| Create a a line segment. | |
| virtual | ~DtLineSegment () |
| Line segment destructor. | |
| void | setGroup (float group) |
| Set the group of the line segment. | |
| int | group () const |
| Get the group. | |
| void | set2DPositions (float x1, float y1, float x2, float y2) |
| Set the vertex positions. | |
| void | set2DPosition (unsigned int index0or1, float x, float y) |
| Set the first vertex position. | |
| void | get2DPosition (unsigned int index0or1, float &x, float &y) const |
| void | setColors (float r1, float g1, float b1, float a1, float r2, float g2, float b2, float a2) |
| Set the vertex colors. | |
| void | set3DPosition (int index0or1, float dx, float dy, float z, float w) |
| Set the 3D location of the line. | |
| void | get3DPosition (int index0or1, float &dx, float &dy, float &z, float &w) const |
| virtual void | set3DDirection (unsigned int index0or1, float x, float y, float z) |
| Set the normalized direction of the line in world space. | |
| virtual void | get3DDirection (unsigned int index0or1, float &x, float &y, float &z) const |
| Get the normalized direction of the vertex. | |
| virtual void | setDirection2DLength (unsigned int index0or1, float length) |
| Set the length of the line in 2D space. | |
| virtual float | direction2DLength (unsigned int index0or1) const |
| Get the length of the line in 2D space. | |
| void | setColor (unsigned int index0or1, float r, float g, float b, float a) |
| void | getColor (unsigned int index0or1, float &r, float &g, float &b, float &a) const |
| void | setColor1 (float r1, float g1, float b1, float a1) |
| void | setColor2 (float r2, float g2, float b2, float a2) |
| void | setColor (float r, float g, float b, float a) |
| void | setWidth (float w) |
| Set a line width, from 0.0 to 64.0); Default line width is 1.0. | |
| float | width () const |
| Get the line width. | |
| void | setStippleParameters (unsigned int scale, unsigned short pattern) |
| Set the line Stipple parameters. | |
| void | getStippleParameters (unsigned int &scale, unsigned short &pattern) const |
| Get the line stipple parameters Uses the two arguments as return values. | |
Public Member Functions inherited from makVrv::DtLineSegmentInterface | |
| DtLineSegmentInterface () | |
| CTOR. | |
| virtual | ~DtLineSegmentInterface () |
| Line segment destructor. | |
Static Public Attributes | |
| static const unsigned short | NoStipple = 0xFFFF |
| static const unsigned short | NoLine = 0x0 |
Protected Member Functions | |
| DtLineSegment () | |
Private Member Functions | |
| DtLineSegment (const DtLineSegment &) | |
| DtLineSegment & | operator= (const DtLineSegment &) |
Private Attributes | |
| DtLineSegmentProxy * | myProxy |
A class which represents a single line segment.
| makVrv::DtLineSegment::DtLineSegment | ( | DtOverlayRenderer & | renderer | ) |
Create a a line segment.
| makVrv::DtLineSegment::DtLineSegment | ( | DtLineRenderer & | renderer | ) |
Create a a line segment.
|
virtual |
Line segment destructor.
|
private |
|
inlineprotected |
|
virtual |
Set the group of the line segment.
Setting the group to zero causes the line to be hidden. Setting the group to negative numbers causes the line to be drawn relative to North. 1
Implements makVrv::DtLineSegmentInterface.
|
virtual |
Get the group.
Implements makVrv::DtLineSegmentInterface.
|
virtual |
Set the vertex positions.
Implements makVrv::DtLineSegmentInterface.
Set the first vertex position.
Implements makVrv::DtLineSegmentInterface.
|
virtual |
Implements makVrv::DtLineSegmentInterface.
|
virtual |
Set the vertex colors.
Implements makVrv::DtLineSegmentInterface.
|
virtual |
Set the 3D location of the line.
This will set the 3D location for each end of the line.
Implements makVrv::DtLineSegmentInterface.
|
virtual |
Implements makVrv::DtLineSegmentInterface.
|
virtual |
Set the normalized direction of the line in world space.
Implements makVrv::DtLineSegmentInterface.
|
virtual |
Get the normalized direction of the vertex.
Implements makVrv::DtLineSegmentInterface.
|
virtual |
Set the length of the line in 2D space.
Implements makVrv::DtLineSegmentInterface.
Get the length of the line in 2D space.
Implements makVrv::DtLineSegmentInterface.
|
virtual |
Implements makVrv::DtLineSegmentInterface.
|
virtual |
Implements makVrv::DtLineSegmentInterface.
| void makVrv::DtLineSegment::setColor1 | ( | float | r1, |
| float | g1, | ||
| float | b1, | ||
| float | a1 | ||
| ) |
| void makVrv::DtLineSegment::setColor2 | ( | float | r2, |
| float | g2, | ||
| float | b2, | ||
| float | a2 | ||
| ) |
|
inline |
Reimplemented from makVrv::DtLineSegmentInterface.
|
virtual |
Set a line width, from 0.0 to 64.0); Default line width is 1.0.
Implements makVrv::DtLineSegmentInterface.
|
virtual |
Get the line width.
Implements makVrv::DtLineSegmentInterface.
|
virtual |
Set the line Stipple parameters.
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::DtLineSegmentInterface.
|
virtual |
Get the line stipple parameters Uses the two arguments as return values.
Implements makVrv::DtLineSegmentInterface.
|
private |
|
static |
|
static |
|
private |