VR-Forces 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::DtExtrudedLineModel Class Referenceabstract

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

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

Public Member Functions

 DtExtrudedLineModel (DtDe &de, DtUniqueID id)
 
virtual ~DtExtrudedLineModel ()
 
virtual void setOrigin (const DtVector &v)=0
 
virtual const DtVector & origin () const =0
 
virtual bool arePointsOffsetFromOrigin () const =0
 
virtual void setUpExtent (float)=0
 
virtual void setDownExtent (float)=0
 
virtual void setLeftExtent (float)=0
 
virtual void setRightExtent (float)=0
 
virtual void setHeight (float)=0
 
virtual void setDimensions (float width, float height)=0
 
virtual void setScribeWidth (float)=0
 
virtual void setStipplePattern (unsigned int, int repeatFactor)=0
 
virtual void setSegmentStipplePattern (int seg, unsigned int pattern, int repeatFactor)=0
 
virtual void setLineWidth (float width)=0
 
virtual void setScribed (bool b)=0
 
virtual void setScribeColor (float r, float g, float b, float a)=0
 
virtual void setSegmentStartArrow (int, bool)=0
 
virtual void setSegmentEndArrow (int, bool)=0
 
virtual void setArrowSize (double)=0
 
virtual void setArrowStyle (int)=0
 
virtual void setSegmentColor (int, float r, float g, float b, float a)=0
 
virtual void setLineStyle (int)=0
 
virtual void setFixedWidthSizing (bool)=0
 
virtual void setHeightLinesEnabled (bool enabled)=0
 
virtual void setHeightLinesColor (float r, float g, float b, float a)=0
 
virtual void setHeightLinesSpacing (float spacing)=0
 
- Public Member Functions inherited from makVrv::Dt3DLineModel
 Dt3DLineModel (DtDe &de, DtUniqueID id)
 
virtual ~Dt3DLineModel ()
 
virtual void setStopOnTerrainIntersection (bool enabled)=0
 
virtual void setOcclusionEnabled (bool enabled)=0
 
virtual void setPickable (bool pickable)=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 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
 
virtual DtUniqueID uniqueId () 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 enableLighting (bool l)
 
virtual DtModelSetId 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
 
DtDede ()
 
virtual void setModelInstance (DtModelInstance *modelInstance)
 
virtual void promoteBackgroundModelInstance (const DtModelDefinition &defintion)
 
virtual void setVisible (bool isVisible)
 
virtual bool visible () const
 
DtUniqueID sceneObjectId () const
 
virtual void addedToSceneObjectAsProp (const DtUniqueID &sceneObj)
 
virtual void addedToSceneObject (const DtUniqueID &sceneObj, DtModelSetId modelSet, int visualizerType)
 
virtual void setElementId (DtElementID 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, DtModelSetId 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
 
DtUniqueID myElementId
 
DtUniqueID myParentSceneObjectID
 
bool myColorBlendingEnabled
 
DtModelInstancemyBackgroundModelInstance
 
float myMinLastFrameDistance
 
TransformList myTransforms
 
DtModelInstancemyModelInstance
 
DtModelSetId myModelSet
 
int myVisualizerType
 
bool myContributesToBound
 
bool myIsPropFlag
 
float myBlendColor [4]
 
bool myVisibleFlag
 
DtVector myPositionOffset
 
DtTaitBryan myOrientationOffset
 
std::string myModelDefinitionName
 
bool myRequireModelInstance = true
 
- Static Protected Attributes inherited from makVrv::DtModel
static bool theInittedState
 

Constructor & Destructor Documentation

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

Constructor.

virtual makVrv::DtExtrudedLineModel::~DtExtrudedLineModel ( )
virtual

Destructor.

Member Function Documentation

virtual void makVrv::DtExtrudedLineModel::setOrigin ( const DtVector &  v)
pure virtual

Sets the origin in the scene. If an origin is set, then the points for this line are offset from the origin.

Implemented in makVrv::DtOsgExtrudedLineModel.

virtual const DtVector& makVrv::DtExtrudedLineModel::origin ( ) const
pure virtual

Gets the origin in the scene connector.

Implemented in makVrv::DtOsgExtrudedLineModel.

virtual bool makVrv::DtExtrudedLineModel::arePointsOffsetFromOrigin ( ) const
pure virtual

Get whether or not the points for this line are defined with respect to the origin. If False, then the points for this line are not offset from the origin and are in world coordinates.

Implemented in makVrv::DtOsgExtrudedLineModel.

virtual void makVrv::DtExtrudedLineModel::setUpExtent ( float  )
pure virtual

@ Sets the values of the extents of the line. Extents of the line are different than the width or height in that in setting the width or height those are centered around the points. The extents work from the point and move in the direction of the extent in topographic space. For example, if you imagine a straight line, the up extent moves straight up from that line, the down extent straight down, left to the left and right to the right. As the line rotates and orients the extents orient and rotate with that line

Sets the height of the line ("above" the origin point)

Implemented in makVrv::DtOsgExtrudedLineModel.

virtual void makVrv::DtExtrudedLineModel::setDownExtent ( float  )
pure virtual

Sets the height of the line ("below" the origin point)

Implemented in makVrv::DtOsgExtrudedLineModel.

virtual void makVrv::DtExtrudedLineModel::setLeftExtent ( float  )
pure virtual

Sets the width of the line ("left" the origin point). If width is set, this will be set to - half width.

Implemented in makVrv::DtOsgExtrudedLineModel.

virtual void makVrv::DtExtrudedLineModel::setRightExtent ( float  )
pure virtual

Sets the width of the line ("right" the origin point). If width is set, this will be set to + half width.

Implemented in makVrv::DtOsgExtrudedLineModel.

virtual void makVrv::DtExtrudedLineModel::setHeight ( float  )
pure virtual

Sets the height of the line ("up/down" the origin point). If width is set, will zero out width and only contain height or for the entire line.

Implemented in makVrv::DtOsgExtrudedLineModel.

virtual void makVrv::DtExtrudedLineModel::setDimensions ( float  width,
float  height 
)
pure virtual

Sets the dimensions of the line.

Implemented in makVrv::DtOsgExtrudedLineModel.

virtual void makVrv::DtExtrudedLineModel::setScribeWidth ( float  )
pure virtual

Sets the width of the scribe line.

Implemented in makVrv::DtOsgExtrudedLineModel.

virtual void makVrv::DtExtrudedLineModel::setStipplePattern ( unsigned  int,
int  repeatFactor 
)
pure virtual

Sets the stipple pattern of the line.

Implements makVrv::DtLineModel.

Implemented in makVrv::DtOsgExtrudedLineModel.

virtual void makVrv::DtExtrudedLineModel::setSegmentStipplePattern ( int  seg,
unsigned int  pattern,
int  repeatFactor 
)
pure virtual

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

Implemented in makVrv::DtOsgExtrudedLineModel.

virtual void makVrv::DtExtrudedLineModel::setLineWidth ( float  width)
pure virtual

Sets the width of the line in pixel space, not world. Clears out any existing dimensional size.

Implemented in makVrv::DtOsgExtrudedLineModel.

virtual void makVrv::DtExtrudedLineModel::setScribed ( bool  b)
pure virtual

Sets the line to be scribed (default true)

Implemented in makVrv::DtOsgExtrudedLineModel.

virtual void makVrv::DtExtrudedLineModel::setScribeColor ( float  r,
float  g,
float  b,
float  a 
)
pure virtual

Sets the color of the scribe line. Once set it will always be different than the color of the main line.

Implemented in makVrv::DtOsgExtrudedLineModel.

virtual void makVrv::DtExtrudedLineModel::setSegmentStartArrow ( int  ,
bool   
)
pure virtual

Sets the arrow to be on/off at the start of the segment.

Implemented in makVrv::DtOsgExtrudedLineModel.

virtual void makVrv::DtExtrudedLineModel::setSegmentEndArrow ( int  ,
bool   
)
pure virtual

Sets the arrow to be on/off at the end of the segment. Start and end arrow set are equivalent.

Implemented in makVrv::DtOsgExtrudedLineModel.

virtual void makVrv::DtExtrudedLineModel::setArrowSize ( double  )
pure virtual

Sets the size of the arrow (in pixels)

Implemented in makVrv::DtOsgExtrudedLineModel.

virtual void makVrv::DtExtrudedLineModel::setArrowStyle ( int  )
pure virtual

Sets the style of the arrow. Applies to all segments.

Implemented in makVrv::DtOsgExtrudedLineModel.

virtual void makVrv::DtExtrudedLineModel::setSegmentColor ( int  ,
float  r,
float  g,
float  b,
float  a 
)
pure virtual

Sets the color for the segment.

Implemented in makVrv::DtOsgExtrudedLineModel.

virtual void makVrv::DtExtrudedLineModel::setLineStyle ( int  )
pure virtual

Sets the style of line to use. See DtLineFacadeBase.h for styles.

Implemented in makVrv::DtOsgExtrudedLineModel.

virtual void makVrv::DtExtrudedLineModel::setFixedWidthSizing ( bool  )
pure virtual

For those lines that support it, whether or not the lines sizes when zooming to pixel space (fixed width) or to the database (non-fixed width). Default is fixed width. If changing modes, be sure to change the arrow size.

Implemented in makVrv::DtOsgExtrudedLineModel.

virtual void makVrv::DtExtrudedLineModel::setHeightLinesEnabled ( bool  enabled)
pure virtual

Enable/disable height lines applied along line segments.

Implemented in makVrv::DtOsgExtrudedLineModel.

virtual void makVrv::DtExtrudedLineModel::setHeightLinesColor ( float  r,
float  g,
float  b,
float  a 
)
pure virtual

Sets the color for height lines applied along line segments.

Implemented in makVrv::DtOsgExtrudedLineModel.

virtual void makVrv::DtExtrudedLineModel::setHeightLinesSpacing ( float  spacing)
pure virtual

Sets the desired spacing for height lines applied along line segments.

Implemented in makVrv::DtOsgExtrudedLineModel.


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

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)