![]() |
VR-Forces 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 |
| virtual void | setAltitudeBasedConfigurations (const DtLineSegmentInterface::DtLineSegmentAltitudeBasedConfigurationCollection &configs) |
| virtual void | clearAltitudeBasedConfigurations () |
| virtual void | setIsUseForcedAltitudeEnabled (bool enabled) |
| virtual void | setForcedAltitudeToUse (double minimumAltitudeForUse) |
| virtual void | setLodOutAltitude (double lodOutAltitude) |
| virtual void | setIsLodOutAltitudeEnabled (bool isLodOutAltitudeEnabled) |
| virtual void | setGroup (float group) |
| virtual 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) |
| virtual void | set3DPosition (int index0or1, float dx, float dy, float z, float w) |
| virtual void | get3DPosition (int index0or1, float &dx, float &dy, float &z, float &w) const |
| 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 | 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 |
| 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 | setScale (int index, float scale) |
| float | scale (unsigned int index0or1) const |
| virtual void | setWidth (float w) |
| virtual float | width () const |
| virtual void | setStippleParameters (unsigned int scale, unsigned short pattern) |
| virtual void | getStippleParameters (unsigned int &scale, unsigned short &pattern) const |
Public Member Functions inherited from makVrv::DtLineSegmentInterface | |
| DtLineSegmentInterface () | |
| virtual | ~DtLineSegmentInterface () |
Static Public Attributes | |
| static const unsigned short | NoStipple = 0xFFFF |
| static const unsigned short | NoLine = 0x0 |
Protected Attributes | |
| DtLineSegmentProxy * | myProxy |
Private Member Functions | |
| DtLineSegment () | |
Additional Inherited Members | |
Public Types inherited from makVrv::DtLineSegmentInterface | |
| typedef std::vector < DtLineSegmentAltitudeBasedConfiguration > | DtLineSegmentAltitudeBasedConfigurationCollection |
| 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.
|
virtual |
Set the altitude-based configurations for this line segment.
Implements makVrv::DtLineSegmentInterface.
|
virtual |
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).
Implements makVrv::DtLineSegmentInterface.
|
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(...)
Implements makVrv::DtLineSegmentInterface.
|
virtual |
Set the MSL altitude, in meters, to use when determining the altitude-based configuration to use. This is only used if setIsUseForcedAltitudeEnabled(true).
Implements makVrv::DtLineSegmentInterface.
|
virtual |
Set the minimum MSL altitude, in meters, at which the line will no longer appear.
Implements makVrv::DtLineSegmentInterface.
|
virtual |
Set whether or not this attribute will use the LOD Out Altitude property.
Implements makVrv::DtLineSegmentInterface.
|
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.
|
virtual |
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 | ||
| ) |
|
inlinevirtual |
Reimplemented from makVrv::DtLineSegmentInterface.
| void makVrv::DtLineSegment::setScale | ( | int | index, |
| float | scale | ||
| ) |
Sets the scale factor to be applied to the line. The scale factor is applied whether altitude-based configurations are used or not.
Gets the scale factor to be applied to the line.
|
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 |