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

Public Member Functions | |
| DtLineSegment (DtOverlayRenderer &renderer) | |
| DtLineSegment (DtLineRenderer &renderer) | |
| virtual | ~DtLineSegment () |
| DtLineSegment (const DtLineSegment &other)=delete | |
| DtLineSegment & | operator= (const DtLineSegment &other)=delete |
| void | setAltitudeBasedConfigurations (const DtLineRenderer::DtLineSegmentAltitudeBasedConfigurationCollection &configs) |
| void | clearAltitudeBasedConfigurations () |
| virtual void | setIsUseForcedAltitudeEnabled (bool enabled) |
| virtual void | setForcedAltitudeToUse (double minimumAltitudeForUse) |
| void | setLodOutAltitude (double lodOutAltitude) |
| void | setIsLodOutAltitudeEnabled (bool isLodOutAltitudeEnabled) |
| void | setGroup (float group) |
| int | group () const |
| void | set2DPositions (float x1, float y1, float x2, float y2) |
| void | set2DPosition (unsigned int index0or1, float x, float y) |
| 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) |
| 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 | set3DDirection (unsigned int index0or1, float x, float y, float z) |
| void | get3DDirection (unsigned int index0or1, float &x, float &y, float &z) const |
| void | setDirection2DLength (unsigned int index0or1, float length) |
| float | direction2DLength (unsigned int index0or1) const |
| 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) |
| float | width () const |
| void | setStippleParameters (unsigned int scale, unsigned short pattern) |
| void | getStippleParameters (unsigned int &scale, unsigned short &pattern) const |
Public Member Functions inherited from makVrv::DtLineSegmentInterface | |
| DtLineSegmentInterface () | |
| virtual | ~DtLineSegmentInterface () |
| void | setColor (float r, float g, float b, float a) |
Static Public Attributes | |
| static const unsigned short | NoStipple = 0xFFFF |
| static const unsigned short | NoLine = 0x0 |
Protected Attributes | |
| DtLineSegmentProxy * | myProxy |
Private Member Functions | |
| DtLineSegment () | |
| makVrv::DtLineSegment::DtLineSegment | ( | DtOverlayRenderer & | renderer | ) |
Create a a line segment.
| makVrv::DtLineSegment::DtLineSegment | ( | DtLineRenderer & | renderer | ) |
Create a a line segment.
|
virtual |
Line segment destructor.
|
delete |
Copy Constructor not implemented - Copy not allowed.
|
inlineprivate |
|
delete |
Assignment Operator not implemented - Assignment not allowed.
| void makVrv::DtLineSegment::setAltitudeBasedConfigurations | ( | const DtLineRenderer::DtLineSegmentAltitudeBasedConfigurationCollection & | configs | ) |
Set the altitude-based configurations for this line segment.
| void makVrv::DtLineSegment::clearAltitudeBasedConfigurations | ( | ) |
Clear the altitude-based configurations for this line segment. The line segment will no longer have a dynamic length but will fixed to the length specified by: setDirection2DLength(unsigned int, float).
|
virtual |
Set whether or not a particular altitude-based configuration is used, regardless of altitude. This only matters if altitude-based configurations are used. The altitude-based configuration used is provided by the configuration corresponding to the altitude provided using: setForcedAltitudeToUse(...)
|
virtual |
Set the MSL altitude, in meters, to use when determining the altitude-based configuration to use. This is only used if setIsUseForcedAltitudeEnabled(true).
| void makVrv::DtLineSegment::setLodOutAltitude | ( | double | lodOutAltitude | ) |
Set the minimum MSL altitude, in meters, at which the line will no longer appear.
| void makVrv::DtLineSegment::setIsLodOutAltitudeEnabled | ( | bool | isLodOutAltitudeEnabled | ) |
Set whether or not this attribute will use the LOD Out Altitude property.
|
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.
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 |
|
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.
|
static |
|
static |
|
protected |