VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions
makVrv::DtLineSegmentInterface Class Referenceabstract

A class which represents a single line segment. More...

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

Public Member Functions

 DtLineSegmentInterface ()
 CTOR. More...
 
virtual ~DtLineSegmentInterface ()
 Line segment destructor. More...
 
virtual void setGroup (float group)=0
 Set the group of the line segment. More...
 
virtual int group () const =0
 Get the group. More...
 
virtual void set2DPositions (float x1, float y1, float x2, float y2)=0
 Set the vertex positions. More...
 
virtual void set2DPosition (unsigned int index0or1, float x, float y)=0
 Set the first vertex position. More...
 
virtual void get2DPosition (unsigned int index0or1, float &x, float &y) const =0
 
virtual void setColors (float r1, float g1, float b1, float a1, float r2, float g2, float b2, float a2)=0
 Set the vertex colors. More...
 
virtual void set3DPosition (int index0or1, float dx, float dy, float z, float w)=0
 Set the 3D location of the line. More...
 
virtual void get3DPosition (int index0or1, float &dx, float &dy, float &z, float &w) const =0
 
virtual void set3DDirection (unsigned int index0or1, float x, float y, float z)=0
 Set the normalized direction of the line in world space. More...
 
virtual void get3DDirection (unsigned int index0or1, float &x, float &y, float &z) const =0
 Get the normalized direction of the vertex. More...
 
virtual void setDirection2DLength (unsigned int index0or1, float length)=0
 Set the length of the line in 2D space. More...
 
virtual float direction2DLength (unsigned int index0or1) const =0
 Get the length of the line in 2D space. More...
 
virtual void setColor (unsigned int index0or1, float r, float g, float b, float a)=0
 
virtual void getColor (unsigned int index0or1, float &r, float &g, float &b, float &a) const =0
 
void setColor (float r, float g, float b, float a)
 
virtual void setWidth (float w)=0
 Set a line width, from 0.0 to 64.0); Default line width is 1.0. More...
 
virtual float width () const =0
 Get the line width. More...
 
virtual void setStippleParameters (unsigned int scale, unsigned short pattern)=0
 Set the line Stipple parameters. More...
 
virtual void getStippleParameters (unsigned int &scale, unsigned short &pattern) const =0
 Get the line stipple parameters Uses the two arguments as return values. More...
 

Detailed Description

A class which represents a single line segment.

Constructor & Destructor Documentation

makVrv::DtLineSegmentInterface::DtLineSegmentInterface ( )
inline

CTOR.

virtual makVrv::DtLineSegmentInterface::~DtLineSegmentInterface ( )
inlinevirtual

Line segment destructor.

Member Function Documentation

virtual void makVrv::DtLineSegmentInterface::setGroup ( float  group)
pure 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

Implemented in makVrv::DtLineSegment, and makVrv::DtTexturedLineSegment.

virtual int makVrv::DtLineSegmentInterface::group ( ) const
pure virtual

Get the group.

Implemented in makVrv::DtLineSegment, and makVrv::DtTexturedLineSegment.

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

Set the vertex positions.

Implemented in makVrv::DtTexturedLineSegment, and makVrv::DtLineSegment.

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

Set the first vertex position.

Implemented in makVrv::DtLineSegment, and makVrv::DtTexturedLineSegment.

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

Set the vertex colors.

Implemented in makVrv::DtTexturedLineSegment, and makVrv::DtLineSegment.

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

Set the 3D location of the line.

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

Implemented in makVrv::DtLineSegment, and makVrv::DtTexturedLineSegment.

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

Set the normalized direction of the line in world space.

Implemented in makVrv::DtTexturedLineSegment, and makVrv::DtLineSegment.

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

Get the normalized direction of the vertex.

Implemented in makVrv::DtTexturedLineSegment, and makVrv::DtLineSegment.

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

Set the length of the line in 2D space.

Implemented in makVrv::DtTexturedLineSegment, and makVrv::DtLineSegment.

virtual float makVrv::DtLineSegmentInterface::direction2DLength ( unsigned int  index0or1) const
pure virtual

Get the length of the line in 2D space.

Implemented in makVrv::DtTexturedLineSegment, and makVrv::DtLineSegment.

virtual void makVrv::DtLineSegmentInterface::setColor ( unsigned int  index0or1,
float  r,
float  g,
float  b,
float  a 
)
pure virtual
virtual void makVrv::DtLineSegmentInterface::getColor ( unsigned int  index0or1,
float &  r,
float &  g,
float &  b,
float &  a 
) const
pure virtual
void makVrv::DtLineSegmentInterface::setColor ( float  r,
float  g,
float  b,
float  a 
)
inline
virtual void makVrv::DtLineSegmentInterface::setWidth ( float  w)
pure virtual

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

Implemented in makVrv::DtLineSegment, and makVrv::DtTexturedLineSegment.

virtual float makVrv::DtLineSegmentInterface::width ( ) const
pure virtual

Get the line width.

Implemented in makVrv::DtLineSegment, and makVrv::DtTexturedLineSegment.

virtual void makVrv::DtLineSegmentInterface::setStippleParameters ( unsigned int  scale,
unsigned short  pattern 
)
pure 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.

Implemented in makVrv::DtTexturedLineSegment, and makVrv::DtLineSegment.

virtual void makVrv::DtLineSegmentInterface::getStippleParameters ( unsigned int scale,
unsigned short &  pattern 
) const
pure virtual

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

Implemented in makVrv::DtTexturedLineSegment, and makVrv::DtLineSegment.


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

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)