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

Public Member Functions | |
| DtTexturedLineSegment (DtOverlayRenderer &renderer) | |
| Create a a line segment. | |
| DtTexturedLineSegment (DtQuadRenderer &renderer) | |
| Create a a line segment. | |
| virtual | ~DtTexturedLineSegment () |
| Line segment destructor. | |
| void | setGroup (float group) |
| Set the group of the line segment. | |
| int | group () const |
| Get the group. | |
| 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 | 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 |
| void | setColor (float r, float g, float b, float a) |
| void | getColor (float &r, float &g, float &b, float &a) const |
| 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. | |
| virtual void | setTextureParameters (DtOverlayResourceProvider::NativeResourceHandle texture, float myTextureWidth, float left=0.0f, float right=1.0f, float bottom=0.0f, float top=1.0f) |
| Sets the parameters for the textured line. | |
| virtual void | setZoomFactor (float z) |
| Sets the factor by which to adjust distance. | |
| virtual void | set2DPositions (float x1, float y1, float x2, float y2) |
| Sets the 2D position of the line segment. | |
| virtual void | setColor (unsigned int index0or1, float r, float g, float b, float a) |
| virtual void | getColor (unsigned int index0or1, float &r, float &g, float &b, float &a) const |
| virtual void | setColors (float r1, float g1, float b1, float a1, float r2, float g2, float b2, float a2) |
| Set the vertex colors. | |
| virtual void | setRotationOffset (float) |
| Sets the offset to the rotation to apply to the segmented line. Use for observer rotation. | |
Public Member Functions inherited from makVrv::DtLineSegmentInterface | |
| DtLineSegmentInterface () | |
| CTOR. | |
| virtual | ~DtLineSegmentInterface () |
| Line segment destructor. | |
Protected Member Functions | |
| virtual void | set3DDirection (unsigned int index0or1, float x, float y, float z) |
| Unimplemented. | |
| virtual void | get3DDirection (unsigned int index0or1, float &x, float &y, float &z) const |
| Get the normalized direction of the vertex. Unimplemented for this line. | |
| virtual void | setDirection2DLength (unsigned int index0or1, float length) |
| Set the length of the line in 2D space. Unimplemented for this line. | |
| virtual float | direction2DLength (unsigned int index0or1) const |
| Get the length of the line in 2D space. | |
| virtual void | setStippleParameters (unsigned int scale, unsigned short pattern) |
| Unimplemented as textured lines do not stipple. | |
| virtual void | getStippleParameters (unsigned int &scale, unsigned short &pattern) const |
| Get the line stipple parameters Uses the two arguments as return values. | |
| virtual void | resetTextureCoordinates () |
| Calculates number of texture elements to place based on zoom factor and length of line. | |
| DtTexturedLineSegment () | |
Protected Attributes | |
| DtQuadProxy * | myVertex |
| float | myVertices [2][4] |
| float | my2DVertices [2][2] |
| DtOverlayResourceProvider::NativeResourceHandle | myTexture |
| float | myTextureWidth |
| float | myZoomFactor |
| float | myRotationOffset |
Private Member Functions | |
| DtTexturedLineSegment (const DtTexturedLineSegment &) | |
| DtTexturedLineSegment & | operator= (const DtTexturedLineSegment &) |
A class which represents a single line segment.
| makVrv::DtTexturedLineSegment::DtTexturedLineSegment | ( | DtOverlayRenderer & | renderer | ) |
Create a a line segment.
| makVrv::DtTexturedLineSegment::DtTexturedLineSegment | ( | DtQuadRenderer & | renderer | ) |
Create a a line segment.
|
virtual |
Line segment destructor.
|
private |
|
protected |
|
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 first vertex position.
Implements makVrv::DtLineSegmentInterface.
|
virtual |
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.
| void makVrv::DtTexturedLineSegment::setColor | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | a | ||
| ) |
Reimplemented from makVrv::DtLineSegmentInterface.
| void makVrv::DtTexturedLineSegment::getColor | ( | float & | r, |
| float & | g, | ||
| float & | b, | ||
| float & | a | ||
| ) | const |
|
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 |
Sets the parameters for the textured line.
values other than 1 will cause repeating of the texture. Texture width is used to determine the width of the texture. Set larger/smaller width than texture to produce texture scaling
|
virtual |
Sets the factor by which to adjust distance.
|
virtual |
Sets the 2D position of the line segment.
Implements makVrv::DtLineSegmentInterface.
|
virtual |
Implements makVrv::DtLineSegmentInterface.
|
virtual |
Implements makVrv::DtLineSegmentInterface.
|
virtual |
Set the vertex colors.
Implements makVrv::DtLineSegmentInterface.
|
virtual |
Sets the offset to the rotation to apply to the segmented line. Use for observer rotation.
|
inlineprotectedvirtual |
Unimplemented.
Set the normalized direction of the line in world space. Unimplemented for this type of line
Implements makVrv::DtLineSegmentInterface.
|
inlineprotectedvirtual |
Get the normalized direction of the vertex. Unimplemented for this line.
Implements makVrv::DtLineSegmentInterface.
|
inlineprotectedvirtual |
Set the length of the line in 2D space. Unimplemented for this line.
Implements makVrv::DtLineSegmentInterface.
|
inlineprotectedvirtual |
Get the length of the line in 2D space.
Implements makVrv::DtLineSegmentInterface.
|
protectedvirtual |
Unimplemented as textured lines do not stipple.
Implements makVrv::DtLineSegmentInterface.
|
protectedvirtual |
Get the line stipple parameters Uses the two arguments as return values.
Implements makVrv::DtLineSegmentInterface.
|
protectedvirtual |
Calculates number of texture elements to place based on zoom factor and length of line.
|
private |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |