VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions
vrvControlToolkit::DtLineObjectInterface Class Reference

A 3D Line Stealth Draw Control Object. More...

Inheritance diagram for vrvControlToolkit::DtLineObjectInterface:
Inheritance graph
[legend]

Public Member Functions

virtual int numSegments () const =0
 numSegments accessor
virtual void setNumSegments (int numSegments)=0
 numSegments mutator
virtual
DtVdcLineSegment::DtVdcSegmentStyle 
lineStyle (int segment=0) const =0
 lineStyle accessor
virtual void setLineStyle (DtVdcLineSegment::DtVdcSegmentStyle lineStyle, int segment=0)=0
 lineStyle mutator
virtual
DtVdcLineSegment::DtVdcSegmentArrowStyle 
arrowStyle (int segment=0) const =0
 arrowStyle accessor
virtual void setArrowStyle (DtVdcLineSegment::DtVdcSegmentArrowStyle arrowStyle, int segment=0)=0
 arrowStyle mutator
virtual unsigned pattern (int segment=0) const =0
 pattern accessor
virtual void setPattern (unsigned pattern, int segment=0)=0
 pattern mutator
virtual unsigned thickness (int segment=0) const =0
 thickness accessor
virtual void setThickness (unsigned thickness, int segment=0)=0
 thickness mutator
virtual double percentage (int segment) const =0
 percentage accessor
virtual void setPercentage (double percentage, int segment)=0
 percentage mutator

Detailed Description

A 3D Line Stealth Draw Control Object.

DtLine3DObject represents a line that can be positioned and displayed in the scene. The line may be divided into multiple segments of varying relative lengths. A color, line style, arrow style, pattern and thickness may be specified for each segment; and the line can flash, if desired.

Member Function Documentation

virtual int vrvControlToolkit::DtLineObjectInterface::numSegments ( ) const
pure virtual

numSegments accessor

Get the number of segments in this line

Returns
0 to N

Implemented in vrvControlToolkit::DtLine3DObject, and vrvControlToolkit::DtLine2DObject.

virtual void vrvControlToolkit::DtLineObjectInterface::setNumSegments ( int  numSegments)
pure virtual

numSegments mutator

Set the number of individual segments that make up this line

Parameters
numSegments0 to N

Implemented in vrvControlToolkit::DtLine3DObject, and vrvControlToolkit::DtLine2DObject.

virtual DtVdcLineSegment::DtVdcSegmentStyle vrvControlToolkit::DtLineObjectInterface::lineStyle ( int  segment = 0) const
pure virtual

lineStyle accessor

Get the lineStyle assigned to the indicated segment

Parameters
segmentThe segment to retrieve the lineStyle from
Returns
A DtVdcLineSegment::DtVdcSegmentStyle indicating the segment's style

Implemented in vrvControlToolkit::DtLine3DObject, and vrvControlToolkit::DtLine2DObject.

virtual void vrvControlToolkit::DtLineObjectInterface::setLineStyle ( DtVdcLineSegment::DtVdcSegmentStyle  lineStyle,
int  segment = 0 
)
pure virtual

lineStyle mutator

Set the lineStyle to use when drawing the indicated segment

Parameters
lineStyleThe lineStyle to use for the indicated segment
segmentThe segment to apply the lineStyle to

Implemented in vrvControlToolkit::DtLine3DObject, and vrvControlToolkit::DtLine2DObject.

virtual DtVdcLineSegment::DtVdcSegmentArrowStyle vrvControlToolkit::DtLineObjectInterface::arrowStyle ( int  segment = 0) const
pure virtual

arrowStyle accessor

Get the arrowStyle assigned to the indicated segment

Parameters
segmentThe segment to retrieve the arrowStyle from
Returns
A DtVdcLineSegment::DtVdcSegmentArrowStyle indicating the segment's arrow style

Implemented in vrvControlToolkit::DtLine3DObject, and vrvControlToolkit::DtLine2DObject.

virtual void vrvControlToolkit::DtLineObjectInterface::setArrowStyle ( DtVdcLineSegment::DtVdcSegmentArrowStyle  arrowStyle,
int  segment = 0 
)
pure virtual

arrowStyle mutator

Set the arrowStyle to use when drawing the indicated segment

Parameters
arrowStyleThe arrowStyle to use for the indicated segment
segmentThe segment to apply the arrowStyle to

Implemented in vrvControlToolkit::DtLine3DObject, and vrvControlToolkit::DtLine2DObject.

virtual unsigned vrvControlToolkit::DtLineObjectInterface::pattern ( int  segment = 0) const
pure virtual

pattern accessor

Get the stipple pattern used when drawing the indicated segment

Parameters
segmentThe segment to retrieve the pattern from
Returns
The stipple pattern, 0x00000000 to 0xFFFFFFFF

Implemented in vrvControlToolkit::DtLine3DObject, and vrvControlToolkit::DtLine2DObject.

virtual void vrvControlToolkit::DtLineObjectInterface::setPattern ( unsigned  pattern,
int  segment = 0 
)
pure virtual

pattern mutator

Set the stipple pattern to use when drawing the indicated segment

Parameters
patternThe stipple pattern, 0x00000000 to 0xFFFFFFFF.
segmentThe segment to apply the pattern to

Implemented in vrvControlToolkit::DtLine3DObject, and vrvControlToolkit::DtLine2DObject.

virtual unsigned vrvControlToolkit::DtLineObjectInterface::thickness ( int  segment = 0) const
pure virtual

thickness accessor

Get the thickness assigned to the indicated segment

Parameters
segmentThe segment to retrieve the thickness from
Returns
The segments's thickness, in pixels (0-255)

Implemented in vrvControlToolkit::DtLine3DObject, and vrvControlToolkit::DtLine2DObject.

virtual void vrvControlToolkit::DtLineObjectInterface::setThickness ( unsigned  thickness,
int  segment = 0 
)
pure virtual

thickness mutator

Set the thickness to use when drawing the indicated segment

Parameters
thicknessThe thickness in pixels, (0-255). Note that GL may not actually be willing or able to draw a line 255 pixels wide. It is implementation dependent.
segmentThe segment to apply the thickness to

Implemented in vrvControlToolkit::DtLine3DObject, and vrvControlToolkit::DtLine2DObject.

virtual double vrvControlToolkit::DtLineObjectInterface::percentage ( int  segment) const
pure virtual

percentage accessor

Get the percentage of the line that the indicated segment occupies

Parameters
segmentThe segment to retrieve the percentage from
Returns
The line's thickness, in pixels (0-255)

Implemented in vrvControlToolkit::DtLine3DObject, and vrvControlToolkit::DtLine2DObject.

virtual void vrvControlToolkit::DtLineObjectInterface::setPercentage ( double  percentage,
int  segment 
)
pure virtual

percentage mutator

Set the percentage of the line that the indicated segment should occupy. Note that it is the responsibility of the user to ensure that the sum of the individual segment's percentages is 1.

Parameters
percentageThe percentage (0. to 1.)
segmentThe segment to apply the precentage to

Implemented in vrvControlToolkit::DtLine3DObject, and vrvControlToolkit::DtLine2DObject.


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

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)