![]() |
VR-Forces 5.0.2 Developer's Guide
|
Implementation of class that will manage a collection of line models.

Classes | |
| struct | Segment |
Public Member Functions | |
| DtMultiLineModel (DtDe &de, DtUniqueID id) | |
| virtual | ~DtMultiLineModel () |
| virtual void | setSegmentColor (unsigned int segmentIndex, float r, float g, float b, float a) |
| virtual void | setSegmentStipplePattern (unsigned int segmentIndex, unsigned int stipplePattern) |
| virtual void | setSegmentWidth (unsigned int segmentIndex, double width) |
| virtual void | setPutOnOverlay (bool enabled) |
| bool | putOnOverlay () const |
| virtual void | setVisible (bool) |
| virtual void | setSegmentColor (int line, unsigned int segmentIndex, float r, float g, float b, float a) |
| virtual void | setSegmentStipplePattern (int line, unsigned int segmentIndex, unsigned int stipplePattern) |
| virtual void | setSegmentWidth (int line, unsigned int segmentIndex, double width) |
| virtual void | setLineOverlayGroup (int line, int group) |
| virtual void | addLineModel () |
| virtual void | removeLineModel (int) |
| virtual void | removeAllLineModels () |
| virtual void | setLineModels (int numberOfLines) |
| virtual void | setVisible (int line, bool) |
| virtual void | setPosition (int line, int vtx, const DtVector &) |
Public Member Functions inherited from makVrv::DtModel | |
| DtModel (DtDe &de, DtUniqueID id) | |
| virtual | ~DtModel () |
| DtModelInstance * | createModelInstance (const std::string &modelDefName, bool realize=true) |
| virtual void | setModelDefinition (const std::string &str) |
| virtual const std::string & | modelDefinitionName () |
| virtual void | saveModelToFile (const std::string &filename) |
| virtual const std::string & | className () const |
| unsigned int | transformSize () const |
| virtual void | setPosition (int vtx, const DtVector &position) |
| virtual const DtVector & | position (int vtx=0) const |
| virtual void | removePosition (int vtx) |
| virtual void | setPositionOffset (const DtVector &positionOffset) |
| virtual const DtVector & | positionOffset () const |
| virtual void | setOrientation (int vtx, const DtTaitBryan &orientation) |
| virtual void | setPositionAndOrientation (int vtx, const DtVector &positionOffset, const DtTaitBryan &orientation) |
| virtual const DtTaitBryan & | orientation (int vtx=0) const |
| virtual void | setOrientationOffset (const DtTaitBryan &orientationOffset) |
| virtual const DtTaitBryan & | orientationOffset () const |
| virtual void | enableColorBlending (bool b) |
| virtual void | setBlendColor (float r, float g, float b, float a) |
| virtual void | getBlendColor (float &r, float &g, float &b, float &a) |
| virtual bool | colorBlendingEnabled () const |
| virtual void | setColor (float r, float g, float b, float a) |
| virtual void | enableLighting (bool l) |
| virtual int | modelSet () const |
| const DtVector & | boundingBoxExtents () const |
| void | getBoundingBoxExtents (double &x, double &y, double &z) const |
| const DtVector & | boundingBoxCenter () const |
| virtual void | getBoundingBoxCenter (double &x, double &y, double &z) const |
| virtual void | getBoundingBoxComponents (DtVector &minimum, DtVector &maximum) |
| void | setContributesToBound (bool trueOrFalse) |
| bool | contributesToBound () const |
| DtDe & | de () |
| virtual void | setModelInstance (DtModelInstance *modelInstance) |
| virtual void | promoteBackgroundModelInstance (DtModelDefinition &defintion) |
| virtual bool | visible () const |
| DtUniqueID | parentSceneObjectID () const |
| virtual void | addedToSceneObjectAsProp (const DtUniqueID &sceneObj) |
| virtual void | addedToSceneObject (const DtUniqueID &sceneObj, int modelSet, int visualizerType) |
| virtual void | setElementId (DtUniqueID id) |
| virtual void | removedFromSceneObject () |
| virtual void | setSolid (bool isSolid) |
| virtual bool | isProp () |
| virtual void | updateMinLastFrameDistance (float distance) |
| virtual void | resetLastFrameDistance () |
| virtual float | minLastFrameDistance () const |
| virtual DtModelInstance * | modelInstance () |
| virtual const DtModelInstance * | modelInstance () const |
| int | visualizerType () const |
| virtual bool | supportsMultithreadedLoad () |
| virtual void | backgroundLoad () |
| virtual void | foregroundLoad () |
| virtual bool | isActivelyBackgroundLoading () |
| virtual DtLoaderHandle * | getLoadQueueHandle () |
Protected Types | |
| typedef std::vector < DtSegmentedLineModel * > | LineModels |
| typedef boost::unordered_map < int, Segment > | Segments |
Protected Types inherited from makVrv::DtModel | |
| typedef std::vector < ObjectTransform > | TransformList |
Protected Member Functions | |
| virtual void | addToScene (const DtUniqueID &sceneObjectId, int modelSet, int visualizerType) |
| virtual void | removeFromScene () |
| virtual void | setIsSupportModel (bool isSupport) |
| virtual DtSegmentedLineModel * | createOverlayLineModel ()=0 |
| virtual DtSegmentedLineModel * | createGeometryLineModel ()=0 |
Protected Member Functions inherited from makVrv::DtModel | |
| virtual void | addToSceneAsProp (const DtUniqueID &sceneObjectId) |
| virtual void | initializeModelInstance () |
| void | slot_modelInstanceChanged (DtModelInstance *instance) |
| virtual void | waitAndClearLoadHandle () |
| virtual void | removedFromLoadQueue () |
| virtual void | setDoneBackgroundLoading () |
| virtual void | setActivelyBackgroundLoading () |
Protected Attributes | |
| LineModels | myLineModels |
| Segments | mySegments |
| bool | myPutOnOverlay |
Protected Attributes inherited from makVrv::DtModel | |
| DtLoaderHandle * | myInLoadQueueHandle |
| DtDe & | myDe |
| const DtUniqueID | myUniqueId |
| bool | myColorBlendingEnabled |
| DtModelInstance * | myBackgroundModelInstance |
| float | myMinLastFrameDistance |
| TransformList | myTransforms |
| DtModelInstance * | myModelInstance |
| int | myModelSet |
| int | myVisualizerType |
| bool | myContributesToBound |
| DtUniqueID | myParentSceneObjectID |
| bool | myIsPropFlag |
| float | myBlendColor [4] |
| bool | myVisibleFlag |
| DtVector | myPositionOffset |
| DtTaitBryan | myOrientationOffset |
| std::string | myModelDefinitionName |
Additional Inherited Members | |
Public Attributes inherited from makVrv::DtModel | |
| boost::signalslib::signal < void(DtModel *)> | signal_modelToBeDestroyed |
| boost::signalslib::signal < void(DtModel *)> | signal_modelChanged |
| boost::signalslib::signal < bool(DtModel *, bool), SlotReturnOR > | signal_visibilityChangeRequested |
| boost::signalslib::signal < void(DtModelInstance *, DtModel *)> | signal_modelInstanceCreated |
| boost::signalslib::signal < void(DtModelInstance *, DtModel *)> | signal_modelInstanceToBeDestroyed |
Static Protected Attributes inherited from makVrv::DtModel | |
| static bool | theInittedState |
|
protected |
|
protected |
| makVrv::DtMultiLineModel::DtMultiLineModel | ( | DtDe & | de, |
| DtUniqueID | id | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Set the color of a particular segment.
|
virtual |
Set the line stipple pattern for a segment, according to the OpenGL line stippling specification.
|
virtual |
Set the width of a line segment.
|
virtual |
Turn on or off occlusion of the line by other objects; default is true.
|
inline |
|
virtual |
Sets all lines visibile/not visibile.
Reimplemented from makVrv::DtModel.
|
virtual |
Per line items. If line is -1, applies to all lines.
Set the color of a particular segment
|
virtual |
Set the line stipple pattern for a segment, according to the OpenGL line stippling specification.
|
virtual |
Set the width of a line segment.
Set/Get the group a line overlay will be drawn in. The higher the group number, the "closer" to the eyepoint this overlay will be drawn. Use this function to stack overlay objects in the particular order you want them displayed. This is only used if setPutOnOverlay(true) is called. Pass in -1 into the line integer parameter to apply to all lines in this multi-line model.
|
virtual |
Adds a new line model and adds all segments.
Reimplemented in makVrf::DtSensorContactLinesModel.
|
virtual |
Removes the specified line model.
Reimplemented in makVrf::DtSensorContactLinesModel.
|
virtual |
Removes all the line models.
|
virtual |
Sets the number of line models to support. Will add points for each current segment defined.
Sets the supplied line visible.
Reimplemented in makVrf::DtSensorContactLinesModel.
Sets the vertex position on the given line.
|
protectedvirtual |
Adds model to scene. Since this model, itself, is not added, simply stores members.
Implements makVrv::DtModel.
|
protectedvirtual |
Removes the model from the scene.
Implements makVrv::DtModel.
|
protectedvirtual |
Set whether the model is part of the support group (whether or not other scene objects can ground clamp to this model)
Implements makVrv::DtModel.
|
protectedpure virtual |
Implemented by subclasses to return specific model types.
Implemented in makVrv::DtOsgMultiLineModel.
|
protectedpure virtual |
Implemented in makVrf::DtSensorContactLinesModel, and makVrv::DtOsgMultiLineModel.
|
protected |
|
protected |
|
protected |