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
DtSdcLineObjectInterface Class Reference

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

Inheritance diagram for DtSdcLineObjectInterface:
Inheritance graph
[legend]

Public Member Functions

virtual int numSegments () const =0
 numSegments accessor
virtual void setNumSegments (int numSegments)=0
 numSegments mutator
virtual
DtSdcLineSegment::DtSdcSegmentStyle 
lineStyle (int segment=0) const =0
 lineStyle accessor
virtual void setLineStyle (DtSdcLineSegment::DtSdcSegmentStyle lineStyle, int segment=0)=0
 lineStyle mutator
virtual
DtSdcLineSegment::DtSdcSegmentArrowStyle 
arrowStyle (int segment=0) const =0
 arrowStyle accessor
virtual void setArrowStyle (DtSdcLineSegment::DtSdcSegmentArrowStyle 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.

DtSdcLine3DObject 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 DtSdcLineObjectInterface::numSegments ( ) const
pure virtual

numSegments accessor

Get the number of segments in this line

Returns
0 to N

Implemented in DtSdcLine3DObject, and DtSdcLine2DObject.

virtual void DtSdcLineObjectInterface::setNumSegments ( int  numSegments)
pure virtual

numSegments mutator

Set the number of individual segments that make up this line

Parameters
numSegments0 to N

Implemented in DtSdcLine3DObject, and DtSdcLine2DObject.

virtual DtSdcLineSegment::DtSdcSegmentStyle DtSdcLineObjectInterface::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 DtSdcLineSegment::DtSdcSegmentStyle indicating the segment's style

Implemented in DtSdcLine3DObject, and DtSdcLine2DObject.

virtual void DtSdcLineObjectInterface::setLineStyle ( DtSdcLineSegment::DtSdcSegmentStyle  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 DtSdcLine3DObject, and DtSdcLine2DObject.

virtual DtSdcLineSegment::DtSdcSegmentArrowStyle DtSdcLineObjectInterface::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 DtSdcLineSegment::DtSdcSegmentArrowStyle indicating the segment's arrow style

Implemented in DtSdcLine3DObject, and DtSdcLine2DObject.

virtual void DtSdcLineObjectInterface::setArrowStyle ( DtSdcLineSegment::DtSdcSegmentArrowStyle  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 DtSdcLine3DObject, and DtSdcLine2DObject.

virtual unsigned DtSdcLineObjectInterface::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 DtSdcLine3DObject, and DtSdcLine2DObject.

virtual void DtSdcLineObjectInterface::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 DtSdcLine3DObject, and DtSdcLine2DObject.

virtual unsigned DtSdcLineObjectInterface::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 DtSdcLine3DObject, and DtSdcLine2DObject.

virtual void DtSdcLineObjectInterface::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's implementation dependent.
segmentThe segment to apply the thickness to

Implemented in DtSdcLine3DObject, and DtSdcLine2DObject.

virtual double DtSdcLineObjectInterface::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 DtSdcLine3DObject, and DtSdcLine2DObject.

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

percentage mutator

Set the percentage of the line that the indicated segment should occupy. Note that it's 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 DtSdcLine3DObject, and DtSdcLine2DObject.


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)