VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtOsg3DSegmentedLineModel Class Reference

OSG implementation of distributed attachable segmented line model.

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

Public Member Functions

 DtOsg3DSegmentedLineModel (DtDe &de, DtUniqueID id)
 
virtual ~DtOsg3DSegmentedLineModel ()
 
virtual void setPosition (int vtx, const DtVector &position)
 
virtual void removePosition (int vtx)
 
virtual void setOrientation (int vtx, const DtTaitBryan &orientation)
 
virtual void setColor (float r, float g, float b, float a)
 
virtual void setWidth (float width)
 
virtual void setStipplePattern (unsigned int pattern, int repeatFactor)
 
virtual void setStyleSegments (const std::vector< double > &segmentPercentages)
 
virtual void setSegmentColor (unsigned int segmentIndex, float r, float g, float b, float a)
 
virtual const std::vector
< DtVector > & 
points () const
 
virtual void setArrowSize (double)
 
virtual void setArrowStyle (int)
 
virtual void setSegmentLightningStyle (unsigned int segmentIndex, bool enableLightningStyle)
 
virtual void setSegmentStartArrow (unsigned int segmentIndex, bool enableArrow)
 
virtual void setSegmentEndArrow (unsigned int segmentIndex, bool enableArrow)
 
virtual void setSegmentStipplePattern (unsigned int segmentIndex, unsigned int stipplePattern, int repeatFactor)
 
virtual void setSegmentWidth (unsigned int segmentIndex, double width)
 
virtual void setSegmentStartColor (unsigned int segmentIndex, float r, float g, float b, float a)
 
virtual void setSegmentEndColor (unsigned int segmentIndex, float r, float g, float b, float a)
 
virtual void setStopOnTerrainIntersection (bool enabled)
 
virtual void setOcclusionEnabled (bool enabled)
 
virtual void setPickable (bool pickable)
 
virtual void setVisible (bool isVisible)
 
virtual void setIsSupportModel (bool isSupport)
 
virtual void setModelDefinition (const std::string &str)
 
virtual void addToScene (const DtUniqueID &sceneObjectId, int modelSet, int visualizerType)
 
virtual void removeFromScene ()
 
virtual void update ()
 
- Public Member Functions inherited from makVrv::Dt3DSegmentedLineModel
 Dt3DSegmentedLineModel (DtDe &de, DtUniqueID id)
 
virtual ~Dt3DSegmentedLineModel ()
 
- Public Member Functions inherited from makVrv::DtSegmentedLineModel
 DtSegmentedLineModel (DtDe &de, DtUniqueID id)
 
virtual ~DtSegmentedLineModel ()
 
- Public Member Functions inherited from makVrv::DtLineModel
 DtLineModel (DtDe &de, DtUniqueID id)
 
virtual ~DtLineModel ()
 
- Public Member Functions inherited from makVrv::DtModel
 DtModel (DtDe &de, DtUniqueID id)
 
virtual ~DtModel ()
 
DtModelInstancecreateModelInstance (const std::string &modelDefName, bool realize=true)
 
virtual const std::string & modelDefinitionName ()
 
virtual void saveModelToFile (const std::string &filename)
 
virtual const std::string & className () const
 
unsigned int transformSize () const
 
virtual const DtVectorposition (int vtx=0) const
 
virtual void setPositionOffset (const DtVector &positionOffset)
 
virtual const DtVectorpositionOffset () const
 
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 enableLighting (bool l)
 
virtual int modelSet () const
 
const DtVectorboundingBoxExtents () const
 
void getBoundingBoxExtents (double &x, double &y, double &z) const
 
const DtVectorboundingBoxCenter () 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
 
DtDede ()
 
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 DtModelInstancemodelInstance ()
 
virtual const DtModelInstancemodelInstance () const
 
int visualizerType () const
 
virtual bool supportsMultithreadedLoad ()
 
virtual void backgroundLoad ()
 
virtual void foregroundLoad ()
 
virtual bool isActivelyBackgroundLoading ()
 
virtual DtLoaderHandlegetLoadQueueHandle ()
 

Protected Member Functions

virtual void needsUpdate ()
 
- 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

DtOsgSceneConnectormySceneConnector
 
bool myNeedsUpdate
 
- Protected Attributes inherited from makVrv::DtModel
DtLoaderHandlemyInLoadQueueHandle
 
DtDemyDe
 
const DtUniqueID myUniqueId
 
bool myColorBlendingEnabled
 
DtModelInstancemyBackgroundModelInstance
 
float myMinLastFrameDistance
 
TransformList myTransforms
 
DtModelInstancemyModelInstance
 
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
 
- Protected Types inherited from makVrv::DtModel
typedef std::vector
< ObjectTransform
TransformList
 
- Static Protected Attributes inherited from makVrv::DtModel
static bool theInittedState
 

Constructor & Destructor Documentation

makVrv::DtOsg3DSegmentedLineModel::DtOsg3DSegmentedLineModel ( DtDe de,
DtUniqueID  id 
)

CTOR takes a de and an id.

virtual makVrv::DtOsg3DSegmentedLineModel::~DtOsg3DSegmentedLineModel ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrv::DtOsg3DSegmentedLineModel::setPosition ( int  vtx,
const DtVector position 
)
virtual

Set the position of (or add) one vertex.

Reimplemented from makVrv::DtModel.

virtual void makVrv::DtOsg3DSegmentedLineModel::removePosition ( int  vtx)
virtual

Remove a vertex.

Reimplemented from makVrv::DtModel.

virtual void makVrv::DtOsg3DSegmentedLineModel::setOrientation ( int  vtx,
const DtTaitBryan &  orientation 
)
virtual

No effect.

Reimplemented from makVrv::DtModel.

virtual void makVrv::DtOsg3DSegmentedLineModel::setColor ( float  r,
float  g,
float  b,
float  a 
)
virtual

Set the line color.

Implements makVrv::DtLineModel.

virtual void makVrv::DtOsg3DSegmentedLineModel::setWidth ( float  width)
virtual

Set the line width.

Implements makVrv::DtLineModel.

virtual void makVrv::DtOsg3DSegmentedLineModel::setStipplePattern ( unsigned int  pattern,
int  repeatFactor 
)
virtual

Set a stipple pattern for the line.

Implements makVrv::DtLineModel.

virtual void makVrv::DtOsg3DSegmentedLineModel::setStyleSegments ( const std::vector< double > &  segmentPercentages)
virtual

Set the style segments to percentages of the total line length The values in segmentPercentages must add up to 1.0.

Implements makVrv::DtSegmentedLineModel.

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

Set the color of a particular segment.

Implements makVrv::DtSegmentedLineModel.

virtual const std::vector<DtVector>& makVrv::DtOsg3DSegmentedLineModel::points ( ) const
virtual

Returns the points associated with this line.

Implements makVrv::DtLineModel.

virtual void makVrv::DtOsg3DSegmentedLineModel::setArrowSize ( double  )
virtual

Sets arrow size. unimplemented.

Implements makVrv::DtSegmentedLineModel.

Reimplemented in makVrf::DtVrfOsg3DSegmentedLineModel.

virtual void makVrv::DtOsg3DSegmentedLineModel::setArrowStyle ( int  )
virtual

Set the style of the arrow. Unimplemented.

Implements makVrv::DtSegmentedLineModel.

virtual void makVrv::DtOsg3DSegmentedLineModel::setSegmentLightningStyle ( unsigned int  segmentIndex,
bool  enableLightningStyle 
)
virtual

Turn on or off lightning bolt style for a particular segment.

Implements makVrv::DtSegmentedLineModel.

virtual void makVrv::DtOsg3DSegmentedLineModel::setSegmentStartArrow ( unsigned int  segmentIndex,
bool  enableArrow 
)
virtual

Turn on or off the arrow at a segment's start point.

Implements makVrv::DtSegmentedLineModel.

virtual void makVrv::DtOsg3DSegmentedLineModel::setSegmentEndArrow ( unsigned int  segmentIndex,
bool  enableArrow 
)
virtual

Turn on or off the arrow at a segment's end point.

Implements makVrv::DtSegmentedLineModel.

virtual void makVrv::DtOsg3DSegmentedLineModel::setSegmentStipplePattern ( unsigned int  segmentIndex,
unsigned int  stipplePattern,
int  repeatFactor 
)
virtual

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

Implements makVrv::DtSegmentedLineModel.

virtual void makVrv::DtOsg3DSegmentedLineModel::setSegmentWidth ( unsigned int  segmentIndex,
double  width 
)
virtual

Set the width of a line segment.

Implements makVrv::DtSegmentedLineModel.

virtual void makVrv::DtOsg3DSegmentedLineModel::setSegmentStartColor ( unsigned int  segmentIndex,
float  r,
float  g,
float  b,
float  a 
)
virtual

Set the color of the firt vertex in a segment. This can be used for color blending between vertices.

Implements makVrv::DtSegmentedLineModel.

virtual void makVrv::DtOsg3DSegmentedLineModel::setSegmentEndColor ( unsigned int  segmentIndex,
float  r,
float  g,
float  b,
float  a 
)
virtual

Set the color of the end vertex in a segment. This can be used for color blending between vertices.

Implements makVrv::DtSegmentedLineModel.

virtual void makVrv::DtOsg3DSegmentedLineModel::setStopOnTerrainIntersection ( bool  enabled)
virtual

Set whether or not the line stops at the first terrain intersection.

Implements makVrv::Dt3DSegmentedLineModel.

virtual void makVrv::DtOsg3DSegmentedLineModel::setOcclusionEnabled ( bool  enabled)
virtual

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

Implements makVrv::Dt3DSegmentedLineModel.

virtual void makVrv::DtOsg3DSegmentedLineModel::setPickable ( bool  pickable)
virtual

Turn on or off the ability to pick the line. Off by default.

Implements makVrv::Dt3DSegmentedLineModel.

virtual void makVrv::DtOsg3DSegmentedLineModel::setVisible ( bool  isVisible)
virtual

Implementation of setVisible for the line model; sets the line visible or invisible while maintaining its state.

Reimplemented from makVrv::DtModel.

virtual void makVrv::DtOsg3DSegmentedLineModel::setIsSupportModel ( bool  isSupport)
virtual

Set whether the model is part of the support group (can be clamped to)

Implements makVrv::DtModel.

virtual void makVrv::DtOsg3DSegmentedLineModel::setModelDefinition ( const std::string &  str)
virtual

Set the model definition for the line (defines default color and width)

Reimplemented from makVrv::DtModel.

virtual void makVrv::DtOsg3DSegmentedLineModel::addToScene ( const DtUniqueID sceneObjectId,
int  modelSet,
int  visualizerType 
)
virtual

Add the line to the scene.

Implements makVrv::DtModel.

virtual void makVrv::DtOsg3DSegmentedLineModel::removeFromScene ( )
virtual

Remove the line from the scene.

Implements makVrv::DtModel.

virtual void makVrv::DtOsg3DSegmentedLineModel::update ( )
virtual

Connected to the renderer's postUpdate signal; tells the model instance to update.

virtual void makVrv::DtOsg3DSegmentedLineModel::needsUpdate ( )
protectedvirtual

Sets needs update flag such that on next update pass the object is updated.

Member Data Documentation

DtOsgSceneConnector* makVrv::DtOsg3DSegmentedLineModel::mySceneConnector
protected
bool makVrv::DtOsg3DSegmentedLineModel::myNeedsUpdate
protected

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

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)