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

Public Member Functions | |
| DtTexturedLineSegment (DtOverlayRenderer &renderer) | |
| DtTexturedLineSegment (DtQuadRenderer &renderer) | |
| virtual | ~DtTexturedLineSegment () |
| void | setGroup (float group) |
| int | group () const |
| void | set2DPosition (unsigned int index0or1, float x, float y) |
| void | get2DPosition (unsigned int index0or1, float &x, float &y) const |
| void | set3DPosition (int index0or1, float dx, float dy, float z, float w) |
| 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) |
| float | width () const |
| virtual void | setTextureParameters (DtOverlayResourceProvider::NativeResourceHandle texture, float myTextureWidth, float left=0.0f, float right=1.0f, float bottom=0.0f, float top=1.0f) |
| virtual void | setZoomFactor (float z) |
| virtual void | set2DPositions (float x1, float y1, float x2, float y2) |
| 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) |
| virtual void | setRotationOffset (float) |
Public Member Functions inherited from makVrv::DtLineSegmentInterface | |
| DtLineSegmentInterface () | |
| virtual | ~DtLineSegmentInterface () |
| void | setColor (float r, float g, float b, float a) |
Protected Member Functions | |
| virtual void | set3DDirection (unsigned int index0or1, float x, float y, float z) |
| virtual void | get3DDirection (unsigned int index0or1, float &x, float &y, float &z) const |
| virtual void | setDirection2DLength (unsigned int index0or1, float length) |
| virtual float | direction2DLength (unsigned int index0or1) const |
| virtual void | setStippleParameters (unsigned int scale, unsigned short pattern) |
| virtual void | getStippleParameters (unsigned int &scale, unsigned short &pattern) const |
| virtual void | resetTextureCoordinates () |
| 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 &) |
| 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 | ||
| ) |
| 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 |