VR-Forces 4.0.4 Class Documentation
Classes | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
makVrv::DtMultiLineModel Class Reference

Implementation of class that will manage a collection of line models. More...

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

List of all members.

Classes

struct  Segment

Public Member Functions

 DtMultiLineModel (DtDe &de, DtUniqueID id)
 CTOR.
 ~DtMultiLineModel ()
 DTOR.
virtual void setSegmentColor (unsigned int segmentIndex, float r, float g, float b, float a)
 Set the color of a particular segment.
virtual void setSegmentStipplePattern (unsigned int segmentIndex, unsigned int stipplePattern)
 Set the line stipple pattern for a segment, according to the OpenGL line stippling specification.
virtual void setSegmentWidth (unsigned int segmentIndex, double width)
 Set the width of a line segment.
virtual void setPutOnOverlay (bool enabled)
 Turn on or off occlusion of the line by other objects; default is true.
bool putOnOverlay () const
virtual void setVisible (bool)
 Sets all lines visibile/not visibile.
virtual void setSegmentColor (int line, unsigned int segmentIndex, float r, float g, float b, float a)
 Per line items. If line is -1, applies to all lines.
virtual void setSegmentStipplePattern (int line, unsigned int segmentIndex, unsigned int stipplePattern)
 Set the line stipple pattern for a segment, according to the OpenGL line stippling specification.
virtual void setSegmentWidth (int line, unsigned int segmentIndex, double width)
 Set the width of a line segment.
virtual void addLineModel ()
 Adds a new line model and adds all segments.
virtual void removeLineModel (int)
 Removes the specified line model.
virtual void removeAllLineModels ()
 Removes all the line models.
virtual void setLineModels (int numberOfLines)
 Sets the number of line models to support.
virtual void setVisible (int line, bool)
 Sets the supplied line visible.
virtual void setPosition (int line, int vtx, const DtVector &)
 Sets the vertex position on the given line.

Protected Types

typedef std::vector
< DtSegmentedLineModel * > 
LineModels
typedef boost::unordered_map
< int, Segment
Segments

Protected Member Functions

virtual void addToScene (const DtUniqueID &sceneObjectId, int modelSet, int visualizerType)
 Adds model to scene.
virtual void removeFromScene ()
 Removes the model from the scene.
virtual void setSolid (bool soild)
 Make the tree geometry solid.
virtual DtSegmentedLineModelcreateOverlayLineModel ()=0
 Implemented by subclasses to return specific model types.
virtual DtSegmentedLineModelcreateGeometryLineModel ()=0

Protected Attributes

LineModels myLineModels
Segments mySegments
bool myPutOnOverlay

Detailed Description

Implementation of class that will manage a collection of line models.


Member Typedef Documentation

typedef boost::unordered_map<int, Segment> makVrv::DtMultiLineModel::Segments [protected]

Constructor & Destructor Documentation

CTOR.

DTOR.


Member Function Documentation

virtual void makVrv::DtMultiLineModel::setSegmentColor ( unsigned int  segmentIndex,
float  r,
float  g,
float  b,
float  a 
) [virtual]

Set the color of a particular segment.

virtual void makVrv::DtMultiLineModel::setSegmentStipplePattern ( unsigned int  segmentIndex,
unsigned int  stipplePattern 
) [virtual]

Set the line stipple pattern for a segment, according to the OpenGL line stippling specification.

virtual void makVrv::DtMultiLineModel::setSegmentWidth ( unsigned int  segmentIndex,
double  width 
) [virtual]

Set the width of a line segment.

virtual void makVrv::DtMultiLineModel::setPutOnOverlay ( bool  enabled) [virtual]

Turn on or off occlusion of the line by other objects; default is true.

virtual void makVrv::DtMultiLineModel::setVisible ( bool  ) [virtual]

Sets all lines visibile/not visibile.

Reimplemented from makVrv::DtModel.

virtual void makVrv::DtMultiLineModel::setSegmentColor ( int  line,
unsigned int  segmentIndex,
float  r,
float  g,
float  b,
float  a 
) [virtual]

Per line items. If line is -1, applies to all lines.

Set the color of a particular segment

virtual void makVrv::DtMultiLineModel::setSegmentStipplePattern ( int  line,
unsigned int  segmentIndex,
unsigned int  stipplePattern 
) [virtual]

Set the line stipple pattern for a segment, according to the OpenGL line stippling specification.

virtual void makVrv::DtMultiLineModel::setSegmentWidth ( int  line,
unsigned int  segmentIndex,
double  width 
) [virtual]

Set the width of a line segment.

virtual void makVrv::DtMultiLineModel::addLineModel ( ) [virtual]

Adds a new line model and adds all segments.

virtual void makVrv::DtMultiLineModel::removeLineModel ( int  ) [virtual]

Removes the specified line model.

Removes all the line models.

virtual void makVrv::DtMultiLineModel::setLineModels ( int  numberOfLines) [virtual]

Sets the number of line models to support.

Will add points for each current segment defined

virtual void makVrv::DtMultiLineModel::setVisible ( int  line,
bool   
) [virtual]

Sets the supplied line visible.

virtual void makVrv::DtMultiLineModel::setPosition ( int  line,
int  vtx,
const DtVector  
) [virtual]

Sets the vertex position on the given line.

virtual void makVrv::DtMultiLineModel::addToScene ( const DtUniqueID sceneObjectId,
int  modelSet,
int  visualizerType 
) [protected, virtual]

Adds model to scene.

Since this model, itself, is not added, simply stores members

Implements makVrv::DtModel.

virtual void makVrv::DtMultiLineModel::removeFromScene ( ) [protected, virtual]

Removes the model from the scene.

Implements makVrv::DtModel.

virtual void makVrv::DtMultiLineModel::setSolid ( bool  soild) [protected, virtual]

Make the tree geometry solid.

Implements makVrv::DtModel.

Implemented by subclasses to return specific model types.

Implemented in makVrv::DtOsgMultiLineModel.

Implemented in makVrv::DtOsgMultiLineModel.


Member Data Documentation


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)