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 | Protected Member Functions | Protected Attributes
makVrv::DtOverlayLinearModel Class Reference

Model for Linear.

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

Public Member Functions

 DtOverlayLinearModel (DtDe &de, DtUniqueID id)
 
virtual ~DtOverlayLinearModel ()
 
 DtOverlayLinearModel ()=delete
 
 DtOverlayLinearModel (const DtOverlayLinearModel &)=delete
 
DtOverlayLinearModel & operator= (const DtOverlayLinearModel &)=delete
 
 DtOverlayLinearModel (const DtOverlayLinearModel &&)=delete
 
DtOverlayLinearModel & operator= (const DtOverlayLinearModel &&other)=delete
 
- Public Member Functions inherited from makVrv::DtOverlayModel
 DtOverlayModel (DtDe &de, DtUniqueID id)
 
virtual ~DtOverlayModel ()
 
 DtOverlayModel ()=delete
 
 DtOverlayModel (const DtOverlayModel &)=delete
 
DtOverlayModel & operator= (const DtOverlayModel &)=delete
 
 DtOverlayModel (const DtOverlayModel &&)=delete
 
DtOverlayModel & operator= (const DtOverlayModel &&other)=delete
 
virtual void setOrientation (const DtTaitBryan &orientation)
 
virtual void setColor (float r, float g, float b, float a)
 
virtual bool getColor (float &r, float &g, float &b, float &a) const
 
virtual void setAdditionalLabels (std::vector< std::string > &labels)
 
virtual void setLabelSpanFraction (double fraction)
 
virtual double labelSpanFraction () const
 
virtual void setLabelGapPadding (double padding)
 
virtual double labelGapPadding () const
 
virtual void setOrigin (const DtVector &position)
 
virtual DtVector origin () const
 
virtual void setScale (float scale)
 
virtual float scale () const
 
virtual void setVisible (bool isVisible)
 
virtual bool isVisible () const
 
virtual void setStipplePattern (unsigned int stipplePattern)
 
virtual unsigned int stipplePattern () const
 
virtual void setLineWidth (float)
 
virtual float lineWidth () const
 
virtual void setEventsEnabled (bool enabled)
 
virtual bool eventsEnabled () const
 
virtual void setGroup (int groupNum)
 
virtual int group () const
 
virtual void setFontFile (std::string fontFile)
 
virtual std::string fontFile () const
 
virtual void setFontPointSize (float pointSize)
 
virtual float fontPointSize () const
 
virtual void setFontColor (float r, float g, float b, float a)
 
virtual bool getFontColor (float &r, float &g, float &b, float &a) const
 
virtual void setPosition (int vtx, const DtVector &position) override
 
virtual void setOrientation (int vtx, const DtTaitBryan &orientation) override
 
virtual void setModelDefinition (const std::string &str) override
 
- Public Member Functions inherited from makVrv::DtModel
 DtModel (DtDe &de, DtUniqueID id)
 
virtual ~DtModel ()
 
virtual DtModelInstance * createModelInstance (const std::string &modelDefName, bool realize)
 
virtual DtModelInstance * createModelInstance (const DtModelDefinition &definition, bool realize)
 
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 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 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
 
DtDe & de ()
 
virtual void setModelInstance (DtModelInstance *modelInstance)
 
virtual void promoteBackgroundModelInstance (const DtModelDefinition &defintion)
 
virtual bool visible () const
 
virtual void setSensorMask (unsigned int sensorMask)
 
virtual unsigned int getSensorMask () 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 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 (DtBackgroundLoadContext &context)
 
virtual void foregroundLoad ()
 
virtual bool isActivelyBackgroundLoading ()
 
virtual DtLoaderHandle * getLoadQueueHandle ()
 

Protected Member Functions

virtual void createGeometryIfNecessary () override
 
virtual void clearGeometry () override
 
virtual void updateVertices () override
 
virtual void updateColors () override
 
virtual void updateStipplePattern () override
 
virtual void updateLineWidth () override
 
virtual void updateEventsEnabled () override
 
virtual void updateGroup () override
 
virtual void updateLabels () override
 
virtual void updateLineColor (DtSegmentedLineInterface *seg, float r, float g, float b, float a) const
 
virtual void updateLineWidth (DtSegmentedLineInterface *seg, float width) const
 
virtual void setEventsEnabledLine (DtSegmentedLineInterface *seg, bool b, unsigned long long userData) const
 
virtual void updateLineStipple (DtSegmentedLineInterface *seg, unsigned int stipple) const
 
virtual void channelUpdated (const DtTacticalGraphicModelUpdaterManager::ChannelUpdateData &updateData)
 
virtual void initializeViewResolution ()
 
- Protected Member Functions inherited from makVrv::DtOverlayModel
virtual void needsUpdate ()
 
virtual void update ()
 
virtual void slot_coordinateSystemChanged ()
 
virtual void addToScene (const DtUniqueID &sceneObjectId, DtModelSetId modelSet, int visualizerType) override
 
virtual void removeFromScene () override
 
virtual void setIsSupportModel (bool isSupport) override
 
- 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

std::vector
< DtSegmentedLineInterface * > 
mySegments
 
std::vector
< DtTextProxyInterface * > 
myLabels
 
std::vector< std::pair< int,
int > > 
myErasedSegments
 
double myViewResolution
 
float myAppliedFontPointSize
 
DtFontInterface * myScaledFont
 
- Protected Attributes inherited from makVrv::DtOverlayModel
std::vector< DtVector > myControlPoints
 
std::vector< bool > myControlPointsSet
 
bool myNeedsUpdate
 
boost::signalslib::connection mySignalPostUpdateConnection
 
DtTaitBryan myOrientationTaitBryan
 
DtVector4< double > myColor
 
float myScale
 
float myLineWidth
 
bool myEventsEnabled
 
unsigned long long myUserData
 
bool myVisible
 
unsigned int myLineStipplePattern
 
int myGroup
 
int myOverlayId
 
int myGeometryInterfaceCount
 
int myLabelCount
 
DtVector myOrigin
 
DtSignalConnectionManager myConnections
 
DtCoordinateSystem * myCoordinateSystem
 
std::string myFontFile
 
float myFontPointSize
 
DtVector4< float > myFontColor
 
DtFontInterface * myFontInterface
 
DtAltitudeBasedConfigurationCollection myAltitudeBasedConfigurationCollection
 
std::vector< std::string > myAdditionalLabels
 
double myLabelSpanFraction
 
double myLabelGapPadding
 
DtOverlayGeometryManager & myOverlayGeometryManager
 
- Protected Attributes inherited from makVrv::DtModel
DtLoaderHandle * myInLoadQueueHandle
 
DtDe & myDe
 
const DtUniqueID myUniqueId
 
DtUniqueID myElementId
 
DtUniqueID myParentSceneObjectID
 
DtModelInstance * myBackgroundModelInstance
 
TransformList myTransforms
 
DtModelInstance * myModelInstance
 
DtModelSetId myModelSet
 
int myVisualizerType
 
bool myContributesToBound
 
bool myIsPropFlag
 
bool myColorBlendingEnabled
 
bool myVisibleFlag
 
float myBlendColor [4]
 
unsigned int mySensorMask
 
DtVector myPositionOffset
 
DtTaitBryan myOrientationOffset
 
std::string myModelDefinitionName
 
float myMinLastFrameDistance
 
bool myRequireModelInstance
 

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::DtOverlayLinearModel::DtOverlayLinearModel ( DtDe &  de,
DtUniqueID  id 
)

CTOR.

virtual makVrv::DtOverlayLinearModel::~DtOverlayLinearModel ( )
virtual

DTOR.

makVrv::DtOverlayLinearModel::DtOverlayLinearModel ( )
delete

Default Constructor - not allowed.

makVrv::DtOverlayLinearModel::DtOverlayLinearModel ( const DtOverlayLinearModel &  )
delete

Copy Constructor - not allowed.

makVrv::DtOverlayLinearModel::DtOverlayLinearModel ( const DtOverlayLinearModel &&  )
delete

Move Constructor not allowed.

Member Function Documentation

DtOverlayLinearModel& makVrv::DtOverlayLinearModel::operator= ( const DtOverlayLinearModel &  )
delete

Assignment Operator - not allowed.

DtOverlayLinearModel& makVrv::DtOverlayLinearModel::operator= ( const DtOverlayLinearModel &&  other)
delete

Move assignment Operator - not allowed.

virtual void makVrv::DtOverlayLinearModel::createGeometryIfNecessary ( )
overrideprotectedvirtual

Create according to current state.

Implements makVrv::DtOverlayModel.

virtual void makVrv::DtOverlayLinearModel::clearGeometry ( )
overrideprotectedvirtual

Delete the DtSegmentedLines.

Implements makVrv::DtOverlayModel.

virtual void makVrv::DtOverlayLinearModel::updateVertices ( )
overrideprotectedvirtual

Update the vertex locations.

Implements makVrv::DtOverlayModel.

virtual void makVrv::DtOverlayLinearModel::updateColors ( )
overrideprotectedvirtual

Update the vertex colors.

Implements makVrv::DtOverlayModel.

virtual void makVrv::DtOverlayLinearModel::updateStipplePattern ( )
overrideprotectedvirtual
virtual void makVrv::DtOverlayLinearModel::updateLineWidth ( )
overrideprotectedvirtual
virtual void makVrv::DtOverlayLinearModel::updateEventsEnabled ( )
overrideprotectedvirtual
virtual void makVrv::DtOverlayLinearModel::updateGroup ( )
overrideprotectedvirtual

Updates the interface and label groups.

Implements makVrv::DtOverlayModel.

virtual void makVrv::DtOverlayLinearModel::updateLabels ( )
overrideprotectedvirtual

Updates the font, font color and altitude specific font for labels These should not change regularly.

Implements makVrv::DtOverlayModel.

virtual void makVrv::DtOverlayLinearModel::updateLineColor ( DtSegmentedLineInterface *  seg,
float  r,
float  g,
float  b,
float  a 
) const
protectedvirtual

Update the vertex and segment colors for a line.

virtual void makVrv::DtOverlayLinearModel::updateLineWidth ( DtSegmentedLineInterface *  seg,
float  width 
) const
protectedvirtual

Update the width for a line.

virtual void makVrv::DtOverlayLinearModel::setEventsEnabledLine ( DtSegmentedLineInterface *  seg,
bool  b,
unsigned long long  userData 
) const
protectedvirtual

Set whether events are enabled on a line segment.

virtual void makVrv::DtOverlayLinearModel::updateLineStipple ( DtSegmentedLineInterface *  seg,
unsigned int  stipple 
) const
protectedvirtual

Update the stipple pattern for the lines.

virtual void makVrv::DtOverlayLinearModel::channelUpdated ( const DtTacticalGraphicModelUpdaterManager::ChannelUpdateData &  updateData)
protectedvirtual

Respond to channel zoom/orientation changes and recompute label scale.

virtual void makVrv::DtOverlayLinearModel::initializeViewResolution ( )
protectedvirtual

Pulls the current view resolution for this model's channel so the first geometry bake does not have to wait for a camera-move callback.

Member Data Documentation

std::vector< DtSegmentedLineInterface* > makVrv::DtOverlayLinearModel::mySegments
protected
std::vector< DtTextProxyInterface* > makVrv::DtOverlayLinearModel::myLabels
protected
std::vector<std::pair<int, int> > makVrv::DtOverlayLinearModel::myErasedSegments
protected

Segments suppressed by geometry creators; re-applied after every recolor.

double makVrv::DtOverlayLinearModel::myViewResolution
protected

World meters per screen pixel from the last channel update; 0 = not yet received.

float makVrv::DtOverlayLinearModel::myAppliedFontPointSize
protected

Last quantized point size pushed to labels; 0 = base font in use.

DtFontInterface* makVrv::DtOverlayLinearModel::myScaledFont
protected

Cached scaled font pointer (non-owning); set when myAppliedFontPointSize > 0.


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

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)