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

Model instance to draw a 3D line with styleable segments onto the 2D overlay.

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

Classes

struct  SegmentAttributes
 

Public Types

typedef std::vector
< SegmentAttributes
SegmentAttributesVector
 
typedef std::vector< DtVectorPoints
 

Public Member Functions

 DtOverlaySegmentedLineModelInstance (DtDe &de)
 
virtual ~DtOverlaySegmentedLineModelInstance ()
 
virtual void setPosition (int vtx, const DtVector &position)
 
virtual DtVector position (int vtx=0) const
 
virtual void removePosition (int vtx)
 
virtual void setWidth (float width)
 
virtual void setMeasurementTextFont (const std::string &fontFile, float pointSize)
 
virtual void setMeasurementTextColor (float r, float g, float b, float a)
 
virtual void setMeasurementTextBackgroundColor (float r, float g, float b, float a)
 
virtual void setColor (float r, float g, float b, float a)
 
virtual void setIsScreenSpaceBasedRenderingForMeasurementTextEnabled (bool)
 
virtual void setAreSmartDistancesForMeasurementTextEnabled (bool)
 
virtual void setMeasurementTextOffset (int x, int y)
 
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 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 setModelSet (DtModelSetId modelSet)
 
virtual bool realize (const DtModelDefinition &definition)
 
virtual void setVisible (bool isVisible)
 
virtual void setEventsEnabled (bool enabled, unsigned long long userData)
 
virtual void setEventWidth (float width)
 
virtual void update ()
 
virtual void setRotation (const DtQuat &quat)
 
virtual void setArrowSize (double)
 
virtual void setLineStyle (vrvTacticalGraphicUtilities::LineStyle)
 
virtual void setArrowStyle (vrvTacticalGraphicUtilities::ArrowStyle)
 
virtual bool isTextured () const
 
virtual void setFixedWidthSizing (bool)
 
virtual void setGroup (int)
 
virtual void setChannelInstance (DtChannel *, DtModelSetId modelSet)
 
virtual const std::vector
< DtVector > & 
points () const
 
virtual void setPoints (const std::vector< DtVector > &)
 
virtual const
SegmentAttributesVector
segmentInformation () const
 
virtual void setSegmentInformation (const SegmentAttributesVector &)
 
virtual void updateGeometry ()
 
virtual bool isMeasurementTextRenderingEnabled () const
 
virtual void setIsMeasurementTextRenderingEnabled (bool isMeasurementTextRenderingEnabled)
 
virtual void setOverlay (unsigned int overlayId)
 
virtual void deleteSegmentLabels ()
 
virtual void setIsSuppressMagneticNorthNotationEnabled (bool isEnabled)
 
virtual bool isSuppressMagneticNorthNotationEnabled () const
 
virtual void setNorthUnit (DtSharedDisplayUnitsSettings::NorthUnits unit)
 
virtual
DtSharedDisplayUnitsSettings::NorthUnits 
northUnit () const
 
virtual void setNorthUnitNotation (const DtUnicode &notation)
 
virtual DtUnicode northUnitNotation () const
 
virtual void setDistanceUnit (DtSharedDisplayUnitsSettings::DistanceUnits unit)
 
virtual
DtSharedDisplayUnitsSettings::DistanceUnits 
distanceUnit () const
 
virtual void setDistanceUnitNotation (const DtUnicode &notation)
 
virtual DtUnicode distanceUnitNotation () const
 
virtual void setDistanceDecimals (unsigned int decimals)
 
virtual unsigned int distanceDecimals () const
 
virtual void setOrientationUnit (DtSharedDisplayUnitsSettings::OrientationUnits unit)
 
virtual
DtSharedDisplayUnitsSettings::OrientationUnits 
orientationUnit () const
 
virtual void setOrientationUnitNotation (const DtUnicode &notation)
 
virtual DtUnicode orientationUnitNotation () const
 
virtual void setOrientationDecimals (unsigned int decimals)
 
virtual unsigned int orientationDecimals () const
 
virtual void setTexture (std::string &textureFileName)
 
virtual void setTexture (DtTextureInterface *textureInterface)
 
- Public Member Functions inherited from makVrv::DtModelInstance
 DtModelInstance (DtDe &de)
 
virtual ~DtModelInstance ()
 
virtual bool cloneInstance (const DtModelDefinition &definition)
 
const std::string & realizedDefinitionName () const
 
virtual bool saveModelToFile (const std::string &filename) const
 
const DtVectorboundingBoxExtents () const
 
void getBoundingBoxExtents (double &x, double &y, double &z) const
 
const DtVectorboundingBoxCenter () const
 
void getBoundingBoxCenter (double &x, double &y, double &z) const
 
void getBoundingBoxComponents (DtVector &minimum, DtVector &maximum)
 
const DtVectorallGeometryboundingBoxExtents () const
 
void getAllGeometryBoundingBoxExtents (double &x, double &y, double &z) const
 
const DtVectorallGeometryboundingBoxCenter () const
 
void getAllGeometryBoundingBoxCenter (double &x, double &y, double &z) const
 
void getAllGeometryBoundingBoxComponents (DtVector &minimum, DtVector &maximum)
 
virtual void setContributesToBound (bool trueOrFalse)
 
bool contributesToBound () const
 
virtual void setBlendColor (float r, float g, float b, float a)
 
virtual void enableColorBlending (bool b)
 

Protected Member Functions

virtual void updateSegmentsWithArrows (const std::vector< DtVector > &pts, std::vector< DtVector > &drawPoints, std::vector< DtVector > &twodOffsets)
 
virtual void createLineIfNecessary ()
 
virtual void updateSegments ()
 
virtual void updateLabels ()
 
virtual void createSegmentLabels ()
 
virtual void updateGeometryForLineStyle ()
 
virtual void resizeSegmentAttributes (int size)
 
virtual void set3DVertexPosition (unsigned int index, double x, double y, double z)
 
virtual void set3DPositionAux (double x, double y, double z, float tempPackedCoords[4])
 
virtual void channelUpdated (const DtTacticalGraphicModelUpdaterManager::ChannelUpdateData &)
 
void updatePointsForLineStyle (const std::vector< DtVector > &, std::vector< DtVector > &drawPoints, std::vector< DtVector > &twodOffsets, std::vector< int > &segmentsToErase) const
 
virtual void slot_onCoordinateSystemChanged ()
 

Protected Attributes

DtUniqueID mySceneObjectId
 
DtSignalConnectionManager myConnections
 
DtCoordinateSystemmyCoordinateSystem
 
Points myPoints
 
Points myVertices
 
Points my2DOffsets
 
SegmentAttributesVector mySegmentAttributes
 
DtModelSetId myModelSet
 
DtSegmentedLineInterfacemyLineInterface
 
bool myVisible
 
bool myIsMeasurementTextRenderingEnabled
 
bool myAreSmartDistancesForMeasurementTextEnabled
 
bool myIsScreenSpaceBasedRenderingForMeasurementTextEnabled
 
int myMeasurementTextOffsetX
 
int myMeasurementTextOffsetY
 
std::string myMeasurementTextFontFile
 
double myMinimumForMeasurementTextMaximumWorldWidth
 
float myMeasurementTextFontPointSize
 
DtVector4< float > myMeasurementTextColor
 
DtVector4< float > myMeasurementTextBackgroundColor
 
DtVector4< float > myColor
 
float myWidth
 
unsigned int myStipplePattern
 
int myStippleRepeat
 
std::vector< doublemySegmentPercentages
 
float myEventWidth
 
bool myGeometryDirty
 
bool mySegmentsDirty
 
bool myEventsEnabled
 
DtVector myOrigin
 
DtQuat myRotation
 
double myArrowSize
 
vrvTacticalGraphicUtilities::ArrowStyle myArrowStyle
 
DtTextureInterfacemyTexture
 
vrvTacticalGraphicUtilities::LineStyle myLineStyle
 
bool myFixedWidthSizing
 
std::vector< intmySegmentsToErase
 
DtChannelmyChannelInstance
 
int myGroup
 
std::vector
< DtQuadProxyInterface * > 
myLabelBackgrounds
 
std::vector
< DtTextProxyInterface * > 
myLabels
 
unsigned int myOverlay
 
bool mySuppressMagneticNorthNotationEnabled
 
DtSharedDisplayUnitsSettings::OrientationUnits myOrientationUnitToUse
 
DtUnicode myOrientationUnitNotation
 
unsigned int myOrientationDecimalsToUse
 
DtSharedDisplayUnitsSettings::DistanceUnits myDistanceUnitToUse
 
DtUnicode myDistanceUnitNotation
 
unsigned int myDistanceDecimalsToUse
 
DtSharedDisplayUnitsSettings::NorthUnits myNorthToUse
 
DtUnicode myNorthNotation
 
- Protected Attributes inherited from makVrv::DtModelInstance
DtDemyDe
 
std::string myRealizedModelDefinitionName
 
DtVector myBoundingBoxCenter
 
DtVector myBoundingBoxExtents
 
DtVector myBoundingBoxMinimum
 
DtVector myBoundingBoxMaximum
 
DtVector myAllGeometryBoundingBoxCenter
 
DtVector myAllGeometryBoundingBoxExtents
 
DtVector myAllGeometryBoundingBoxMinimum
 
DtVector myAllGeometryBoundingBoxMaximum
 
bool myContributesToBound
 
bool myColorBlendingEnabled
 
float myBlendRed
 
float myBlendBlue
 
float myBlendGreen
 
float myBlendAlpha
 

Private Member Functions

 DtOverlaySegmentedLineModelInstance ()
 
 DtOverlaySegmentedLineModelInstance (const DtOverlaySegmentedLineModelInstance &)
 
DtOverlaySegmentedLineModelInstanceoperator= (const DtOverlaySegmentedLineModelInstance &)
 

Additional Inherited Members

- Static Public Member Functions inherited from makVrv::DtModelInstance
static float readFloat (const std::string &paramName, const DtModelDefinition &definition)
 
static DtVector readVector (const std::string &paramName, const DtModelDefinition &definition)
 
static DtVector4< float > readVector4 (const std::string &paramName, const DtModelDefinition &definition)
 
- Public Attributes inherited from makVrv::DtModelInstance
boost::signalslib::signal
< void(DtModelInstance *)> 
signal_modelInstanceChanged
 

Member Typedef Documentation

Vector of segment information.

Constructor & Destructor Documentation

makVrv::DtOverlaySegmentedLineModelInstance::DtOverlaySegmentedLineModelInstance ( DtDe de)

CTOR.

virtual makVrv::DtOverlaySegmentedLineModelInstance::~DtOverlaySegmentedLineModelInstance ( )
virtual

DTOR.

makVrv::DtOverlaySegmentedLineModelInstance::DtOverlaySegmentedLineModelInstance ( )
private

Default Constructor not implemented.

makVrv::DtOverlaySegmentedLineModelInstance::DtOverlaySegmentedLineModelInstance ( const DtOverlaySegmentedLineModelInstance )
private

Copy Constructor not implemented - Copy not allowed.

Member Function Documentation

DtOverlaySegmentedLineModelInstance& makVrv::DtOverlaySegmentedLineModelInstance::operator= ( const DtOverlaySegmentedLineModelInstance )
private

Assignment Operator not implemented - Copy not allowed.

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

Set the position of one endpoint of the line.

virtual DtVector makVrv::DtOverlaySegmentedLineModelInstance::position ( int  vtx = 0) const
virtual

Get the position of one endpoint of the line.

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

Remove the vertex at position vtx.

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

Set the width of the line.

virtual void makVrv::DtOverlaySegmentedLineModelInstance::setMeasurementTextFont ( const std::string &  fontFile,
float  pointSize 
)
virtual

Set the font file and font point size to use for measurement text, if rendered.

virtual void makVrv::DtOverlaySegmentedLineModelInstance::setMeasurementTextColor ( float  r,
float  g,
float  b,
float  a 
)
virtual

Set the color to use for measurement text, if rendered.

virtual void makVrv::DtOverlaySegmentedLineModelInstance::setMeasurementTextBackgroundColor ( float  r,
float  g,
float  b,
float  a 
)
virtual

Set the color to use for background of the measurement text, if rendered.

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

Set the color of the line.

virtual void makVrv::DtOverlaySegmentedLineModelInstance::setIsScreenSpaceBasedRenderingForMeasurementTextEnabled ( bool  )
virtual
virtual void makVrv::DtOverlaySegmentedLineModelInstance::setAreSmartDistancesForMeasurementTextEnabled ( bool  )
virtual
virtual void makVrv::DtOverlaySegmentedLineModelInstance::setMeasurementTextOffset ( int  x,
int  y 
)
virtual

Set the color of the line.

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

Set a stipple pattern for the line.

virtual void makVrv::DtOverlaySegmentedLineModelInstance::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.

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

Set the color of a particular segment.

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

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

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

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

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

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

virtual void makVrv::DtOverlaySegmentedLineModelInstance::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.

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

Set the line width of a segment.

virtual void makVrv::DtOverlaySegmentedLineModelInstance::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.

virtual void makVrv::DtOverlaySegmentedLineModelInstance::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.

virtual void makVrv::DtOverlaySegmentedLineModelInstance::setModelSet ( DtModelSetId  modelSet)
virtual

Set the model set this model instance uses (needed for doing intersections). Will clear out channelInstance if set.

virtual bool makVrv::DtOverlaySegmentedLineModelInstance::realize ( const DtModelDefinition definition)
virtual

Attempt to realize a definition. If the model instance can't realize the definition it should return false. This instance requires the definition be of schema "Line" OR "ControlLine".

Reimplemented from makVrv::DtModelInstance.

Reimplemented in makVrv::DtOverlayGreatCircleArcModelInstance.

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

Set the line visible or invisible; maintains state.

Implements makVrv::DtModelInstance.

virtual void makVrv::DtOverlaySegmentedLineModelInstance::setEventsEnabled ( bool  enabled,
unsigned long long  userData 
)
virtual

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

virtual void makVrv::DtOverlaySegmentedLineModelInstance::setEventWidth ( float  width)
virtual

Sets the width of the segment (in pixels), for picking and mouse-over.

virtual void makVrv::DtOverlaySegmentedLineModelInstance::update ( )
virtual

Indicate that its time to prepare actual scene graph data to be rendered.

virtual void makVrv::DtOverlaySegmentedLineModelInstance::setIsSuppressMagneticNorthNotationEnabled ( bool  isEnabled)
virtual

Set/Get the distance unit to use for the line. Default value is Nautical Miles.

virtual bool makVrv::DtOverlaySegmentedLineModelInstance::isSuppressMagneticNorthNotationEnabled ( ) const
virtual

Set/Get the distance unit to use for the line. Default value is Nautical Miles.

virtual void makVrv::DtOverlaySegmentedLineModelInstance::setNorthUnit ( DtSharedDisplayUnitsSettings::NorthUnits  unit)
virtual

Set/Get the north unit to use for measurement text, if rendered. Default value is True North.

virtual DtSharedDisplayUnitsSettings::NorthUnits makVrv::DtOverlaySegmentedLineModelInstance::northUnit ( ) const
virtual

Set/Get the north unit to use for measurement text, if rendered. Default value is True North.

virtual void makVrv::DtOverlaySegmentedLineModelInstance::setNorthUnitNotation ( const DtUnicode notation)
virtual

Set/Get the north unit notation to use for measurement text, if rendered. Default value is "T".

virtual DtUnicode makVrv::DtOverlaySegmentedLineModelInstance::northUnitNotation ( ) const
virtual

Set/Get the north unit notation to use for measurement text, if rendered. Default value is "T".

virtual void makVrv::DtOverlaySegmentedLineModelInstance::setDistanceUnit ( DtSharedDisplayUnitsSettings::DistanceUnits  unit)
virtual

Set/Get the distance unit to use for measurement text, if rendered. Default value is Nautical Miles.

virtual DtSharedDisplayUnitsSettings::DistanceUnits makVrv::DtOverlaySegmentedLineModelInstance::distanceUnit ( ) const
virtual

Set/Get the distance unit to use for measurement text, if rendered. Default value is Nautical Miles.

virtual void makVrv::DtOverlaySegmentedLineModelInstance::setDistanceUnitNotation ( const DtUnicode notation)
virtual

Set/Get the distance unit notation to use for measurement text, if rendered. Default value is "nm".

virtual DtUnicode makVrv::DtOverlaySegmentedLineModelInstance::distanceUnitNotation ( ) const
virtual

Set/Get the distance unit notation to use for measurement text, if rendered. Default value is "nm".

virtual void makVrv::DtOverlaySegmentedLineModelInstance::setDistanceDecimals ( unsigned int  decimals)
virtual

Set/Get the number of decimals to use for measurement text, if rendered. Default value is 0.

virtual unsigned int makVrv::DtOverlaySegmentedLineModelInstance::distanceDecimals ( ) const
virtual

Set/Get the number of decimals to use for measurement text, if rendered. Default value is 0.

virtual void makVrv::DtOverlaySegmentedLineModelInstance::setOrientationUnit ( DtSharedDisplayUnitsSettings::OrientationUnits  unit)
virtual

Set/Get the orientation unit to use for measurement text, if rendered. Default value is Degrees.

virtual DtSharedDisplayUnitsSettings::OrientationUnits makVrv::DtOverlaySegmentedLineModelInstance::orientationUnit ( ) const
virtual

Set/Get the orientation unit to use for measurement text, if rendered. Default value is Degrees.

virtual void makVrv::DtOverlaySegmentedLineModelInstance::setOrientationUnitNotation ( const DtUnicode notation)
virtual

Set/Get the orientation unit notation to use for measurement text, if rendered. Default value is the degree symbol.

virtual DtUnicode makVrv::DtOverlaySegmentedLineModelInstance::orientationUnitNotation ( ) const
virtual

Set/Get the orientation unit notation to use for measurement text, if rendered. Default value is the degree symbol.

virtual void makVrv::DtOverlaySegmentedLineModelInstance::setOrientationDecimals ( unsigned int  decimals)
virtual

Set/Get the number of decimals to use for orientation values. Default value is 0.

virtual unsigned int makVrv::DtOverlaySegmentedLineModelInstance::orientationDecimals ( ) const
virtual

Set/Get the number of decimals to use for orientation values. Default value is 0.

virtual void makVrv::DtOverlaySegmentedLineModelInstance::setRotation ( const DtQuat quat)
virtual

rotate the points about the origin

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

Sets the size of the arrow (in pixels)

virtual void makVrv::DtOverlaySegmentedLineModelInstance::setLineStyle ( vrvTacticalGraphicUtilities::LineStyle  )
virtual

Sets the line style (see DtTacticalGraphicUtilities.h for types)

virtual void makVrv::DtOverlaySegmentedLineModelInstance::setArrowStyle ( vrvTacticalGraphicUtilities::ArrowStyle  )
virtual

Sets the style of the arrow (see DtTacticalGraphicUtilities.h for types)

virtual void makVrv::DtOverlaySegmentedLineModelInstance::setTexture ( std::string &  textureFileName)
virtual

Texture helper methods Added for API accessibility, generally the texture for the model is loaded from the model paramsSets a pattern to apply to the line and recreates line object.

virtual void makVrv::DtOverlaySegmentedLineModelInstance::setTexture ( DtTextureInterface textureInterface)
virtual

Assumes valid textue Deletes myTexture and myLineInterface.

virtual bool makVrv::DtOverlaySegmentedLineModelInstance::isTextured ( ) const
virtual

Returns true if this instance has a textured line.

virtual void makVrv::DtOverlaySegmentedLineModelInstance::setFixedWidthSizing ( bool  )
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.

virtual void makVrv::DtOverlaySegmentedLineModelInstance::setGroup ( int  )
virtual

The higher the Z order the "closer" to the eyepoint this element will be drawn. Use this variable to stack overlay objects in the particular order you want them displayed.

virtual void makVrv::DtOverlaySegmentedLineModelInstance::setChannelInstance ( DtChannel ,
DtModelSetId  modelSet 
)
virtual

Set to make this model channel specific. This means it will only update itself when the channel it is assigned to is updated for the specified model set.

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

Returns the points of the line.

virtual void makVrv::DtOverlaySegmentedLineModelInstance::setPoints ( const std::vector< DtVector > &  )
virtual

Sets the points on the line.

virtual const SegmentAttributesVector& makVrv::DtOverlaySegmentedLineModelInstance::segmentInformation ( ) const
virtual

Returns segment information.

virtual void makVrv::DtOverlaySegmentedLineModelInstance::setSegmentInformation ( const SegmentAttributesVector )
virtual

Sets segment information. If number of segments is less than the information provided, only set up to the number of segments that represents this line.

virtual void makVrv::DtOverlaySegmentedLineModelInstance::updateGeometry ( )
virtual

Updates the lines geometry.

Reimplemented in makVrv::DtOverlayGreatCircleArcModelInstance.

virtual bool makVrv::DtOverlaySegmentedLineModelInstance::isMeasurementTextRenderingEnabled ( ) const
virtual

Set/Get whether or not this segmented line will render measurement text. When measurement text rendering is enabled, informative labels appear between each vertex indicating the distance to the next vertex and the angle between vertices. Default is false.

virtual void makVrv::DtOverlaySegmentedLineModelInstance::setIsMeasurementTextRenderingEnabled ( bool  isMeasurementTextRenderingEnabled)
virtual
virtual void makVrv::DtOverlaySegmentedLineModelInstance::setOverlay ( unsigned int  overlayId)
virtual

Set the overlay the model will be rendered on.

virtual void makVrv::DtOverlaySegmentedLineModelInstance::deleteSegmentLabels ( )
virtual

Deletes the DtTextProxys from myLabels.

virtual void makVrv::DtOverlaySegmentedLineModelInstance::updateSegmentsWithArrows ( const std::vector< DtVector > &  pts,
std::vector< DtVector > &  drawPoints,
std::vector< DtVector > &  twodOffsets 
)
protectedvirtual

Updates segments with arrows as appropriate (beginning or end)

virtual void makVrv::DtOverlaySegmentedLineModelInstance::createLineIfNecessary ( )
protectedvirtual

Creates the line model.

virtual void makVrv::DtOverlaySegmentedLineModelInstance::updateSegments ( )
protectedvirtual

Updates the segment information.

Reimplemented in makVrv::DtOverlayGreatCircleArcModelInstance.

virtual void makVrv::DtOverlaySegmentedLineModelInstance::updateLabels ( )
protectedvirtual

Updates the segment labels' angles and positions.

virtual void makVrv::DtOverlaySegmentedLineModelInstance::createSegmentLabels ( )
protectedvirtual

Creates the list of segment labels.

virtual void makVrv::DtOverlaySegmentedLineModelInstance::updateGeometryForLineStyle ( )
protectedvirtual

Calculates vertices to draw for updating line style.

virtual void makVrv::DtOverlaySegmentedLineModelInstance::resizeSegmentAttributes ( int  size)
protectedvirtual

Add segments to the segments attribute vector.

Reimplemented in makVrv::DtOverlayGreatCircleArcModelInstance.

virtual void makVrv::DtOverlaySegmentedLineModelInstance::set3DVertexPosition ( unsigned int  index,
double  x,
double  y,
double  z 
)
protectedvirtual

Sets a lines vertex's position.

virtual void makVrv::DtOverlaySegmentedLineModelInstance::set3DPositionAux ( double  x,
double  y,
double  z,
float  tempPackedCoords[4] 
)
protectedvirtual

Utility function for transforming a vertex and setting it on the line.

virtual void makVrv::DtOverlaySegmentedLineModelInstance::channelUpdated ( const DtTacticalGraphicModelUpdaterManager::ChannelUpdateData )
protectedvirtual

Called to effect zoom level if textured to make sure textures keep proper aspect.

void makVrv::DtOverlaySegmentedLineModelInstance::updatePointsForLineStyle ( const std::vector< DtVector > &  ,
std::vector< DtVector > &  drawPoints,
std::vector< DtVector > &  twodOffsets,
std::vector< int > &  segmentsToErase 
) const
protected

Creates the points for the line given the line style.

virtual void makVrv::DtOverlaySegmentedLineModelInstance::slot_onCoordinateSystemChanged ( )
protectedvirtual

receive signals from the shared state about coordinate system changes

Member Data Documentation

DtUniqueID makVrv::DtOverlaySegmentedLineModelInstance::mySceneObjectId
protected
DtSignalConnectionManager makVrv::DtOverlaySegmentedLineModelInstance::myConnections
protected
DtCoordinateSystem* makVrv::DtOverlaySegmentedLineModelInstance::myCoordinateSystem
protected
Points makVrv::DtOverlaySegmentedLineModelInstance::myPoints
protected
Points makVrv::DtOverlaySegmentedLineModelInstance::myVertices
protected
Points makVrv::DtOverlaySegmentedLineModelInstance::my2DOffsets
protected
SegmentAttributesVector makVrv::DtOverlaySegmentedLineModelInstance::mySegmentAttributes
protected
DtModelSetId makVrv::DtOverlaySegmentedLineModelInstance::myModelSet
protected
DtSegmentedLineInterface* makVrv::DtOverlaySegmentedLineModelInstance::myLineInterface
protected
bool makVrv::DtOverlaySegmentedLineModelInstance::myVisible
protected
bool makVrv::DtOverlaySegmentedLineModelInstance::myIsMeasurementTextRenderingEnabled
protected
bool makVrv::DtOverlaySegmentedLineModelInstance::myAreSmartDistancesForMeasurementTextEnabled
protected
bool makVrv::DtOverlaySegmentedLineModelInstance::myIsScreenSpaceBasedRenderingForMeasurementTextEnabled
protected
int makVrv::DtOverlaySegmentedLineModelInstance::myMeasurementTextOffsetX
protected
int makVrv::DtOverlaySegmentedLineModelInstance::myMeasurementTextOffsetY
protected
std::string makVrv::DtOverlaySegmentedLineModelInstance::myMeasurementTextFontFile
protected
double makVrv::DtOverlaySegmentedLineModelInstance::myMinimumForMeasurementTextMaximumWorldWidth
protected
float makVrv::DtOverlaySegmentedLineModelInstance::myMeasurementTextFontPointSize
protected
DtVector4<float> makVrv::DtOverlaySegmentedLineModelInstance::myMeasurementTextColor
protected
DtVector4<float> makVrv::DtOverlaySegmentedLineModelInstance::myMeasurementTextBackgroundColor
protected
DtVector4<float> makVrv::DtOverlaySegmentedLineModelInstance::myColor
protected
float makVrv::DtOverlaySegmentedLineModelInstance::myWidth
protected
unsigned int makVrv::DtOverlaySegmentedLineModelInstance::myStipplePattern
protected
int makVrv::DtOverlaySegmentedLineModelInstance::myStippleRepeat
protected
std::vector<double> makVrv::DtOverlaySegmentedLineModelInstance::mySegmentPercentages
protected
float makVrv::DtOverlaySegmentedLineModelInstance::myEventWidth
protected
bool makVrv::DtOverlaySegmentedLineModelInstance::myGeometryDirty
protected
bool makVrv::DtOverlaySegmentedLineModelInstance::mySegmentsDirty
protected
bool makVrv::DtOverlaySegmentedLineModelInstance::myEventsEnabled
protected
DtVector makVrv::DtOverlaySegmentedLineModelInstance::myOrigin
protected
DtQuat makVrv::DtOverlaySegmentedLineModelInstance::myRotation
protected
double makVrv::DtOverlaySegmentedLineModelInstance::myArrowSize
protected
vrvTacticalGraphicUtilities::ArrowStyle makVrv::DtOverlaySegmentedLineModelInstance::myArrowStyle
protected
DtTextureInterface* makVrv::DtOverlaySegmentedLineModelInstance::myTexture
protected
vrvTacticalGraphicUtilities::LineStyle makVrv::DtOverlaySegmentedLineModelInstance::myLineStyle
protected
bool makVrv::DtOverlaySegmentedLineModelInstance::myFixedWidthSizing
protected
std::vector<int> makVrv::DtOverlaySegmentedLineModelInstance::mySegmentsToErase
protected
DtChannel* makVrv::DtOverlaySegmentedLineModelInstance::myChannelInstance
protected
int makVrv::DtOverlaySegmentedLineModelInstance::myGroup
protected
std::vector<DtQuadProxyInterface*> makVrv::DtOverlaySegmentedLineModelInstance::myLabelBackgrounds
protected
std::vector<DtTextProxyInterface*> makVrv::DtOverlaySegmentedLineModelInstance::myLabels
protected
unsigned int makVrv::DtOverlaySegmentedLineModelInstance::myOverlay
protected
bool makVrv::DtOverlaySegmentedLineModelInstance::mySuppressMagneticNorthNotationEnabled
protected
DtSharedDisplayUnitsSettings::OrientationUnits makVrv::DtOverlaySegmentedLineModelInstance::myOrientationUnitToUse
protected
DtUnicode makVrv::DtOverlaySegmentedLineModelInstance::myOrientationUnitNotation
protected
unsigned int makVrv::DtOverlaySegmentedLineModelInstance::myOrientationDecimalsToUse
protected
DtSharedDisplayUnitsSettings::DistanceUnits makVrv::DtOverlaySegmentedLineModelInstance::myDistanceUnitToUse
protected
DtUnicode makVrv::DtOverlaySegmentedLineModelInstance::myDistanceUnitNotation
protected
unsigned int makVrv::DtOverlaySegmentedLineModelInstance::myDistanceDecimalsToUse
protected
DtSharedDisplayUnitsSettings::NorthUnits makVrv::DtOverlaySegmentedLineModelInstance::myNorthToUse
protected
DtUnicode makVrv::DtOverlaySegmentedLineModelInstance::myNorthNotation
protected

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

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)