VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Attributes | Protected Attributes | Private Member Functions
makVrv::DtLineSegment Class Reference

A class which represents a single line segment.

Inheritance diagram for makVrv::DtLineSegment:
Inheritance graph
[legend]

Public Member Functions

 DtLineSegment (DtOverlayRenderer &renderer)
 
 DtLineSegment (DtLineRenderer &renderer)
 
virtual ~DtLineSegment ()
 
 DtLineSegment (const DtLineSegment &other)=delete
 
DtLineSegmentoperator= (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

DtLineSegmentProxymyProxy
 

Private Member Functions

 DtLineSegment ()
 

Additional Inherited Members

- Public Types inherited from makVrv::DtLineSegmentInterface
typedef std::vector
< DtLineSegmentAltitudeBasedConfiguration
DtLineSegmentAltitudeBasedConfigurationCollection
 

Constructor & Destructor Documentation

makVrv::DtLineSegment::DtLineSegment ( DtOverlayRenderer renderer)

Create a a line segment.

makVrv::DtLineSegment::DtLineSegment ( DtLineRenderer renderer)

Create a a line segment.

virtual makVrv::DtLineSegment::~DtLineSegment ( )
virtual

Line segment destructor.

makVrv::DtLineSegment::DtLineSegment ( const DtLineSegment other)
delete

Copy Constructor not implemented - Copy not allowed.

makVrv::DtLineSegment::DtLineSegment ( )
inlineprivate

Member Function Documentation

DtLineSegment& makVrv::DtLineSegment::operator= ( const DtLineSegment other)
delete

Assignment Operator not implemented - Assignment not allowed.

virtual void makVrv::DtLineSegment::setAltitudeBasedConfigurations ( const DtLineSegmentInterface::DtLineSegmentAltitudeBasedConfigurationCollection configs)
virtual

Set the altitude-based configurations for this line segment.

Implements makVrv::DtLineSegmentInterface.

virtual void makVrv::DtLineSegment::clearAltitudeBasedConfigurations ( )
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).

See Also
setAltitudeBasedConfigurations

Implements makVrv::DtLineSegmentInterface.

virtual void makVrv::DtLineSegment::setIsUseForcedAltitudeEnabled ( bool  enabled)
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 void makVrv::DtLineSegment::setForcedAltitudeToUse ( double  minimumAltitudeForUse)
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 void makVrv::DtLineSegment::setLodOutAltitude ( double  lodOutAltitude)
virtual

Set the minimum MSL altitude, in meters, at which the line will no longer appear.

Implements makVrv::DtLineSegmentInterface.

virtual void makVrv::DtLineSegment::setIsLodOutAltitudeEnabled ( bool  isLodOutAltitudeEnabled)
virtual

Set whether or not this attribute will use the LOD Out Altitude property.

Implements makVrv::DtLineSegmentInterface.

virtual void makVrv::DtLineSegment::setGroup ( float  group)
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 int makVrv::DtLineSegment::group ( ) const
virtual

Get the group.

Implements makVrv::DtLineSegmentInterface.

void makVrv::DtLineSegment::set2DPositions ( float  x1,
float  y1,
float  x2,
float  y2 
)
virtual

Set the vertex positions.

Implements makVrv::DtLineSegmentInterface.

void makVrv::DtLineSegment::set2DPosition ( unsigned int  index0or1,
float  x,
float  y 
)
virtual

Set the first vertex position.

Implements makVrv::DtLineSegmentInterface.

void makVrv::DtLineSegment::get2DPosition ( unsigned int  index0or1,
float &  x,
float &  y 
) const
virtual
void makVrv::DtLineSegment::setColors ( float  r1,
float  g1,
float  b1,
float  a1,
float  r2,
float  g2,
float  b2,
float  a2 
)
virtual

Set the vertex colors.

Implements makVrv::DtLineSegmentInterface.

virtual void makVrv::DtLineSegment::set3DPosition ( int  index0or1,
float  dx,
float  dy,
float  z,
float  w 
)
virtual

Set the 3D location of the line. This will set the 3D location for each end of the line.

Implements makVrv::DtLineSegmentInterface.

virtual void makVrv::DtLineSegment::get3DPosition ( int  index0or1,
float &  dx,
float &  dy,
float &  z,
float &  w 
) const
virtual
virtual void makVrv::DtLineSegment::set3DDirection ( unsigned int  index0or1,
float  x,
float  y,
float  z 
)
virtual

Set the normalized direction of the line in world space.

Implements makVrv::DtLineSegmentInterface.

virtual void makVrv::DtLineSegment::get3DDirection ( unsigned int  index0or1,
float &  x,
float &  y,
float &  z 
) const
virtual

Get the normalized direction of the vertex.

Implements makVrv::DtLineSegmentInterface.

virtual void makVrv::DtLineSegment::setDirection2DLength ( unsigned int  index0or1,
float  length 
)
virtual

Set the length of the line in 2D space.

Implements makVrv::DtLineSegmentInterface.

virtual float makVrv::DtLineSegment::direction2DLength ( unsigned int  index0or1) const
virtual

Get the length of the line in 2D space.

Implements makVrv::DtLineSegmentInterface.

virtual void makVrv::DtLineSegment::setColor ( unsigned int  index0or1,
float  r,
float  g,
float  b,
float  a 
)
virtual
virtual void makVrv::DtLineSegment::getColor ( unsigned int  index0or1,
float &  r,
float &  g,
float &  b,
float &  a 
) const
virtual
void makVrv::DtLineSegment::setColor1 ( float  r1,
float  g1,
float  b1,
float  a1 
)
void makVrv::DtLineSegment::setColor2 ( float  r2,
float  g2,
float  b2,
float  a2 
)
void makVrv::DtLineSegment::setColor ( float  r,
float  g,
float  b,
float  a 
)
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.

float makVrv::DtLineSegment::scale ( unsigned int  index0or1) const

Gets the scale factor to be applied to the line.

virtual void makVrv::DtLineSegment::setWidth ( float  w)
virtual

Set a line width, from 0.0 to 64.0); Default line width is 1.0.

Implements makVrv::DtLineSegmentInterface.

virtual float makVrv::DtLineSegment::width ( ) const
virtual

Get the line width.

Implements makVrv::DtLineSegmentInterface.

virtual void makVrv::DtLineSegment::setStippleParameters ( unsigned int  scale,
unsigned short  pattern 
)
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 void makVrv::DtLineSegment::getStippleParameters ( unsigned int scale,
unsigned short &  pattern 
) const
virtual

Get the line stipple parameters Uses the two arguments as return values.

Implements makVrv::DtLineSegmentInterface.

Member Data Documentation

const unsigned short makVrv::DtLineSegment::NoStipple = 0xFFFF
static
const unsigned short makVrv::DtLineSegment::NoLine = 0x0
static
DtLineSegmentProxy* makVrv::DtLineSegment::myProxy
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)