![]() |
VR-Forces 4.0.4 Class Documentation
|
Implementation of class that will manage a collection of line models. More...

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 DtSegmentedLineModel * | createOverlayLineModel ()=0 |
| Implemented by subclasses to return specific model types. | |
| virtual DtSegmentedLineModel * | createGeometryLineModel ()=0 |
Protected Attributes | |
| LineModels | myLineModels |
| Segments | mySegments |
| bool | myPutOnOverlay |
Implementation of class that will manage a collection of line models.
typedef std::vector<DtSegmentedLineModel*> makVrv::DtMultiLineModel::LineModels [protected] |
typedef boost::unordered_map<int, Segment> makVrv::DtMultiLineModel::Segments [protected] |
| makVrv::DtMultiLineModel::DtMultiLineModel | ( | DtDe & | de, |
| DtUniqueID | id | ||
| ) |
CTOR.
| 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.
| bool makVrv::DtMultiLineModel::putOnOverlay | ( | ) | const [inline] |
| 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.
| virtual void makVrv::DtMultiLineModel::removeAllLineModels | ( | ) | [virtual] |
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.
| virtual DtSegmentedLineModel* makVrv::DtMultiLineModel::createOverlayLineModel | ( | ) | [protected, pure virtual] |
Implemented by subclasses to return specific model types.
Implemented in makVrv::DtOsgMultiLineModel.
| virtual DtSegmentedLineModel* makVrv::DtMultiLineModel::createGeometryLineModel | ( | ) | [protected, pure virtual] |
Implemented in makVrv::DtOsgMultiLineModel.
LineModels makVrv::DtMultiLineModel::myLineModels [protected] |
Segments makVrv::DtMultiLineModel::mySegments [protected] |
bool makVrv::DtMultiLineModel::myPutOnOverlay [protected] |