![]() |
VR-Forces 5.0.2 Developer's Guide
|
A class which represents a single line segment.

Public Member Functions | |
| DtLineSegmentInterface () | |
| virtual | ~DtLineSegmentInterface () |
| virtual void | setGroup (float group)=0 |
| virtual int | group () const =0 |
| virtual void | set2DPositions (float x1, float y1, float x2, float y2)=0 |
| virtual void | set2DPosition (unsigned int index0or1, float x, float y)=0 |
| virtual void | get2DPosition (unsigned int index0or1, float &x, float &y) const =0 |
| virtual void | setColors (float r1, float g1, float b1, float a1, float r2, float g2, float b2, float a2)=0 |
| virtual void | set3DPosition (int index0or1, float dx, float dy, float z, float w)=0 |
| virtual void | get3DPosition (int index0or1, float &dx, float &dy, float &z, float &w) const =0 |
| virtual void | set3DDirection (unsigned int index0or1, float x, float y, float z)=0 |
| virtual void | get3DDirection (unsigned int index0or1, float &x, float &y, float &z) const =0 |
| virtual void | setDirection2DLength (unsigned int index0or1, float length)=0 |
| virtual float | direction2DLength (unsigned int index0or1) const =0 |
| virtual void | setColor (unsigned int index0or1, float r, float g, float b, float a)=0 |
| virtual void | getColor (unsigned int index0or1, float &r, float &g, float &b, float &a) const =0 |
| void | setColor (float r, float g, float b, float a) |
| virtual void | setWidth (float w)=0 |
| virtual float | width () const =0 |
| virtual void | setStippleParameters (unsigned int scale, unsigned short pattern)=0 |
| virtual void | getStippleParameters (unsigned int &scale, unsigned short &pattern) const =0 |
|
inline |
CTOR.
|
inlinevirtual |
Line segment destructor.
|
pure 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.
Implemented in makVrv::DtLineSegment, and makVrv::DtTexturedLineSegment.
|
pure virtual |
Get the group.
Implemented in makVrv::DtLineSegment, and makVrv::DtTexturedLineSegment.
|
pure virtual |
Set the vertex positions.
Implemented in makVrv::DtLineSegment, and makVrv::DtTexturedLineSegment.
|
pure virtual |
Set the first vertex position.
Implemented in makVrv::DtLineSegment, and makVrv::DtTexturedLineSegment.
|
pure virtual |
Implemented in makVrv::DtLineSegment, and makVrv::DtTexturedLineSegment.
|
pure virtual |
Set the vertex colors.
Implemented in makVrv::DtLineSegment, and makVrv::DtTexturedLineSegment.
|
pure virtual |
Set the 3D location of the line. This will set the 3D location for each end of the line.
Implemented in makVrv::DtLineSegment, and makVrv::DtTexturedLineSegment.
|
pure virtual |
Implemented in makVrv::DtLineSegment, and makVrv::DtTexturedLineSegment.
|
pure virtual |
Set the normalized direction of the line in world space.
Implemented in makVrv::DtLineSegment, and makVrv::DtTexturedLineSegment.
|
pure virtual |
Get the normalized direction of the vertex.
Implemented in makVrv::DtLineSegment, and makVrv::DtTexturedLineSegment.
|
pure virtual |
Set the length of the line in 2D space.
Implemented in makVrv::DtLineSegment, and makVrv::DtTexturedLineSegment.
|
pure virtual |
Get the length of the line in 2D space.
Implemented in makVrv::DtLineSegment, and makVrv::DtTexturedLineSegment.
|
pure virtual |
Implemented in makVrv::DtLineSegment, and makVrv::DtTexturedLineSegment.
|
pure virtual |
Implemented in makVrv::DtLineSegment, and makVrv::DtTexturedLineSegment.
|
inline |
|
pure virtual |
Set a line width, from 0.0 to 64.0); Default line width is 1.0.
Implemented in makVrv::DtLineSegment, and makVrv::DtTexturedLineSegment.
|
pure virtual |
Get the line width.
Implemented in makVrv::DtLineSegment, and makVrv::DtTexturedLineSegment.
|
pure 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.
Implemented in makVrv::DtLineSegment, and makVrv::DtTexturedLineSegment.
|
pure virtual |
Get the line stipple parameters Uses the two arguments as return values.
Implemented in makVrv::DtLineSegment, and makVrv::DtTexturedLineSegment.