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
makVrv::DtSegmentedLineModel Class Referenceabstract

This class is a virtual class that all segmented line models must implement.

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

Public Member Functions

 DtSegmentedLineModel (DtDe &de, DtUniqueID id)
 
virtual ~DtSegmentedLineModel ()
 
virtual void setStyleSegments (const std::vector< double > &segmentPercentages)=0
 
virtual void setSegmentColor (unsigned int segmentIndex, float r, float g, float b, float a)=0
 
virtual void setSegmentLightningStyle (unsigned int segmentIndex, bool enableLightningStyle)=0
 
virtual void setSegmentStartArrow (unsigned int segmentIndex, bool enableArrow)=0
 
virtual void setSegmentEndArrow (unsigned int segmentIndex, bool enableArrow)=0
 
virtual void setSegmentStipplePattern (unsigned int segmentIndex, unsigned int stipplePattern, int repeatFactor=1)=0
 
virtual void setSegmentWidth (unsigned int segmentIndex, double width)=0
 
virtual void setSegmentStartColor (unsigned int segmentIndex, float r, float g, float b, float a)=0
 
virtual void setSegmentEndColor (unsigned int segmentIndex, float r, float g, float b, float a)=0
 
virtual void setArrowSize (double)=0
 
virtual void setArrowStyle (int)=0
 
- Public Member Functions inherited from makVrv::DtLineModel
 DtLineModel (DtDe &de, DtUniqueID id)
 
virtual ~DtLineModel ()
 
virtual void setColor (float r, float g, float b, float a)=0
 
virtual void setWidth (float width)=0
 
virtual void setStipplePattern (unsigned int pattern, int repeatFactor=1)=0
 
virtual const std::vector
< DtVector > & 
points () const =0
 
- Public Member Functions inherited from makVrv::DtModel
 DtModel (DtDe &de, DtUniqueID id)
 
virtual ~DtModel ()
 
DtModelInstancecreateModelInstance (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 DtVectorposition (int vtx=0) const
 
virtual void removePosition (int vtx)
 
virtual void setPositionOffset (const DtVector &positionOffset)
 
virtual const DtVectorpositionOffset () 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 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 void setVisible (bool isVisible)
 
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 setIsSupportModel (bool isSupport)=0
 
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 ()
 

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
 
- Protected Member Functions inherited from makVrv::DtModel
virtual void addToScene (const DtUniqueID &sceneObjectId, int modelSet, int visualizerType)=0
 
virtual void addToSceneAsProp (const DtUniqueID &sceneObjectId)
 
virtual void removeFromScene ()=0
 
virtual void initializeModelInstance ()
 
void slot_modelInstanceChanged (DtModelInstance *instance)
 
virtual void waitAndClearLoadHandle ()
 
virtual void removedFromLoadQueue ()
 
virtual void setDoneBackgroundLoading ()
 
virtual void setActivelyBackgroundLoading ()
 
- 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
 
- Static Protected Attributes inherited from makVrv::DtModel
static bool theInittedState
 

Constructor & Destructor Documentation

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

Constructor.

virtual makVrv::DtSegmentedLineModel::~DtSegmentedLineModel ( )
virtual

Destructor.

Member Function Documentation

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

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

Implemented in makVrv::DtOsg3DSegmentedLineModel, makVrv::DtOsgOverlayGreatCircleArcModel, makVrv::DtOsgOverlaySegmentedLineModel, and makVrv::DtOsg3DGreatCircleArcModel.

virtual void makVrv::DtSegmentedLineModel::setSegmentColor ( unsigned int  segmentIndex,
float  r,
float  g,
float  b,
float  a 
)
pure virtual
virtual void makVrv::DtSegmentedLineModel::setSegmentLightningStyle ( unsigned int  segmentIndex,
bool  enableLightningStyle 
)
pure virtual

Turn on or off lightning bolt style for a particular segment. Lightning style is not currently supported for overlay forms of segmented lines or great circle arc forms.

Implemented in makVrv::DtOsgOverlayGreatCircleArcModel, makVrv::DtOsg3DSegmentedLineModel, makVrv::DtOsgOverlaySegmentedLineModel, and makVrv::DtOsg3DGreatCircleArcModel.

virtual void makVrv::DtSegmentedLineModel::setSegmentStartArrow ( unsigned int  segmentIndex,
bool  enableArrow 
)
pure virtual
virtual void makVrv::DtSegmentedLineModel::setSegmentEndArrow ( unsigned int  segmentIndex,
bool  enableArrow 
)
pure virtual

Turn on or off the arrow at a segment's end point. Start and end point are equivalent to simply turning on an arrow at the end point of the specified segment.

Implemented in makVrv::DtOsgOverlayGreatCircleArcModel, makVrv::DtOsg3DSegmentedLineModel, makVrv::DtOsgOverlaySegmentedLineModel, and makVrv::DtOsg3DGreatCircleArcModel.

virtual void makVrv::DtSegmentedLineModel::setSegmentStipplePattern ( unsigned int  segmentIndex,
unsigned int  stipplePattern,
int  repeatFactor = 1 
)
pure virtual

Set the line stipple pattern for a segment, according to the OpenGL line stippling specification. Repeat factor is not supported for overlay forms of segmented lines.

Implemented in makVrv::DtOsg3DSegmentedLineModel, makVrv::DtOsg3DGreatCircleArcModel, makVrv::DtOsgOverlaySegmentedLineModel, and makVrv::DtOsgOverlayGreatCircleArcModel.

virtual void makVrv::DtSegmentedLineModel::setSegmentWidth ( unsigned int  segmentIndex,
double  width 
)
pure virtual
virtual void makVrv::DtSegmentedLineModel::setSegmentStartColor ( unsigned int  segmentIndex,
float  r,
float  g,
float  b,
float  a 
)
pure virtual

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

Implemented in makVrv::DtOsgOverlaySegmentedLineModel, makVrv::DtOsg3DSegmentedLineModel, makVrv::DtOsg3DGreatCircleArcModel, and makVrv::DtOsgOverlayGreatCircleArcModel.

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

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

Implemented in makVrv::DtOsgOverlaySegmentedLineModel, makVrv::DtOsg3DSegmentedLineModel, makVrv::DtOsg3DGreatCircleArcModel, and makVrv::DtOsgOverlayGreatCircleArcModel.

virtual void makVrv::DtSegmentedLineModel::setArrowSize ( double  )
pure virtual
virtual void makVrv::DtSegmentedLineModel::setArrowStyle ( int  )
pure virtual

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)