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

Public Member Functions | |
| DtLineSegmentInterface () | |
| CTOR. More... | |
| virtual | ~DtLineSegmentInterface () |
| Line segment destructor. More... | |
| virtual void | setGroup (float group)=0 |
| Set the group of the line segment. More... | |
| virtual int | group () const =0 |
| Get the group. More... | |
| virtual void | set2DPositions (float x1, float y1, float x2, float y2)=0 |
| Set the vertex positions. More... | |
| virtual void | set2DPosition (unsigned int index0or1, float x, float y)=0 |
| Set the first vertex position. More... | |
| 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 |
| Set the vertex colors. More... | |
| virtual void | set3DPosition (int index0or1, float dx, float dy, float z, float w)=0 |
| Set the 3D location of the line. More... | |
| 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 |
| Set the normalized direction of the line in world space. More... | |
| virtual void | get3DDirection (unsigned int index0or1, float &x, float &y, float &z) const =0 |
| Get the normalized direction of the vertex. More... | |
| virtual void | setDirection2DLength (unsigned int index0or1, float length)=0 |
| Set the length of the line in 2D space. More... | |
| virtual float | direction2DLength (unsigned int index0or1) const =0 |
| Get the length of the line in 2D space. More... | |
| 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 |
| Set a line width, from 0.0 to 64.0); Default line width is 1.0. More... | |
| virtual float | width () const =0 |
| Get the line width. More... | |
| virtual void | setStippleParameters (unsigned int scale, unsigned short pattern)=0 |
| Set the line Stipple parameters. More... | |
| virtual void | getStippleParameters (unsigned int &scale, unsigned short &pattern) const =0 |
| Get the line stipple parameters Uses the two arguments as return values. More... | |
A class which represents a single line segment.
|
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::DtTexturedLineSegment, and makVrv::DtLineSegment.
|
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::DtTexturedLineSegment, and makVrv::DtLineSegment.
|
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::DtTexturedLineSegment, and makVrv::DtLineSegment.
|
pure virtual |
Get the normalized direction of the vertex.
Implemented in makVrv::DtTexturedLineSegment, and makVrv::DtLineSegment.
|
pure virtual |
Set the length of the line in 2D space.
Implemented in makVrv::DtTexturedLineSegment, and makVrv::DtLineSegment.
|
pure virtual |
Get the length of the line in 2D space.
Implemented in makVrv::DtTexturedLineSegment, and makVrv::DtLineSegment.
|
pure virtual |
Implemented in makVrv::DtTexturedLineSegment, and makVrv::DtLineSegment.
|
pure virtual |
Implemented in makVrv::DtTexturedLineSegment, and makVrv::DtLineSegment.
|
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::DtTexturedLineSegment, and makVrv::DtLineSegment.
|
pure virtual |
Get the line stipple parameters Uses the two arguments as return values.
Implemented in makVrv::DtTexturedLineSegment, and makVrv::DtLineSegment.