![]() |
VR-Forces Developer's Guide
|
Model instance to draw a 3D line with styleable segments onto the 2D overlay.

Classes | |
| struct | SegmentAttributes |
Public Types | |
| typedef std::vector < SegmentAttributes > | SegmentAttributesVector |
| typedef std::vector< DtVector > | Points |
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 () |
Private Member Functions | |
| DtOverlaySegmentedLineModelInstance () | |
| DtOverlaySegmentedLineModelInstance (const DtOverlaySegmentedLineModelInstance &) | |
| DtOverlaySegmentedLineModelInstance & | operator= (const DtOverlaySegmentedLineModelInstance &) |
Additional Inherited Members | |
Static Public Member Functions inherited from makVrv::DtModelInstance | |
| static float | readFloat (const std::string ¶mName, const DtModelDefinition &definition) |
| static DtVector | readVector (const std::string ¶mName, const DtModelDefinition &definition) |
| static DtVector4< float > | readVector4 (const std::string ¶mName, const DtModelDefinition &definition) |
Public Attributes inherited from makVrv::DtModelInstance | |
| boost::signalslib::signal < void(DtModelInstance *)> | signal_modelInstanceChanged |
| typedef std::vector<SegmentAttributes> makVrv::DtOverlaySegmentedLineModelInstance::SegmentAttributesVector |
Vector of segment information.
| typedef std::vector<DtVector> makVrv::DtOverlaySegmentedLineModelInstance::Points |
| makVrv::DtOverlaySegmentedLineModelInstance::DtOverlaySegmentedLineModelInstance | ( | DtDe & | de | ) |
CTOR.
|
virtual |
DTOR.
|
private |
Default Constructor not implemented.
|
private |
Copy Constructor not implemented - Copy not allowed.
|
private |
Assignment Operator not implemented - Copy not allowed.
|
virtual |
Set the position of one endpoint of the line.
Get the position of one endpoint of the line.
|
virtual |
Remove the vertex at position vtx.
|
virtual |
Set the width of the line.
|
virtual |
Set the font file and font point size to use for measurement text, if rendered.
|
virtual |
Set the color to use for measurement text, if rendered.
|
virtual |
Set the color to use for background of the measurement text, if rendered.
|
virtual |
Set the color of the line.
|
virtual |
|
virtual |
|
virtual |
Set the color of the line.
|
virtual |
Set a stipple pattern for the line.
|
virtual |
Set the style segments to percentages of the total line length The values in segmentPercentages must add up to 1.0.
|
virtual |
Set the color of a particular segment.
|
virtual |
Turn on or off lightning bolt style for a particular segment.
|
virtual |
Turn on or off the arrow at a segment's start point.
|
virtual |
Turn on or off the arrow at a segment's end point.
|
virtual |
Set the line stipple pattern for a segment, according to the OpenGL line stippling specification.
|
virtual |
Set the line width of a segment.
|
virtual |
Set the color of the firt vertex in a segment. This can be used for color blending between vertices.
|
virtual |
Set the color of the end vertex in a segment. This can be used for color blending between vertices.
|
virtual |
Set the model set this model instance uses (needed for doing intersections). Will clear out channelInstance if set.
|
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 |
Set the line visible or invisible; maintains state.
Implements makVrv::DtModelInstance.
|
virtual |
Turn on or off the ability to pick the line. Off by default.
|
virtual |
Sets the width of the segment (in pixels), for picking and mouse-over.
|
virtual |
Indicate that its time to prepare actual scene graph data to be rendered.
|
virtual |
Set/Get the distance unit to use for the line. Default value is Nautical Miles.
|
virtual |
Set/Get the distance unit to use for the line. Default value is Nautical Miles.
|
virtual |
Set/Get the north unit to use for measurement text, if rendered. Default value is True North.
|
virtual |
Set/Get the north unit to use for measurement text, if rendered. Default value is True North.
|
virtual |
Set/Get the north unit notation to use for measurement text, if rendered. Default value is "T".
|
virtual |
Set/Get the north unit notation to use for measurement text, if rendered. Default value is "T".
|
virtual |
Set/Get the distance unit to use for measurement text, if rendered. Default value is Nautical Miles.
|
virtual |
Set/Get the distance unit to use for measurement text, if rendered. Default value is Nautical Miles.
|
virtual |
Set/Get the distance unit notation to use for measurement text, if rendered. Default value is "nm".
|
virtual |
Set/Get the distance unit notation to use for measurement text, if rendered. Default value is "nm".
|
virtual |
Set/Get the number of decimals to use for measurement text, if rendered. Default value is 0.
|
virtual |
Set/Get the number of decimals to use for measurement text, if rendered. Default value is 0.
|
virtual |
Set/Get the orientation unit to use for measurement text, if rendered. Default value is Degrees.
|
virtual |
Set/Get the orientation unit to use for measurement text, if rendered. Default value is Degrees.
|
virtual |
Set/Get the orientation unit notation to use for measurement text, if rendered. Default value is the degree symbol.
|
virtual |
Set/Get the orientation unit notation to use for measurement text, if rendered. Default value is the degree symbol.
|
virtual |
Set/Get the number of decimals to use for orientation values. Default value is 0.
|
virtual |
Set/Get the number of decimals to use for orientation values. Default value is 0.
|
virtual |
rotate the points about the origin
|
virtual |
Sets the size of the arrow (in pixels)
|
virtual |
Sets the line style (see DtTacticalGraphicUtilities.h for types)
|
virtual |
Sets the style of the arrow (see DtTacticalGraphicUtilities.h for types)
|
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 |
Assumes valid textue Deletes myTexture and myLineInterface.
|
virtual |
Returns true if this instance has a textured line.
|
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 |
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 |
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 |
Returns the points of the line.
|
virtual |
Sets the points on the line.
|
virtual |
Returns segment information.
|
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 |
Updates the lines geometry.
Reimplemented in makVrv::DtOverlayGreatCircleArcModelInstance.
|
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 |
|
virtual |
Set the overlay the model will be rendered on.
|
virtual |
Deletes the DtTextProxys from myLabels.
|
protectedvirtual |
Updates segments with arrows as appropriate (beginning or end)
|
protectedvirtual |
Creates the line model.
|
protectedvirtual |
Updates the segment information.
Reimplemented in makVrv::DtOverlayGreatCircleArcModelInstance.
|
protectedvirtual |
Updates the segment labels' angles and positions.
|
protectedvirtual |
Creates the list of segment labels.
|
protectedvirtual |
Calculates vertices to draw for updating line style.
|
protectedvirtual |
Add segments to the segments attribute vector.
Reimplemented in makVrv::DtOverlayGreatCircleArcModelInstance.
|
protectedvirtual |
Sets a lines vertex's position.
|
protectedvirtual |
Utility function for transforming a vertex and setting it on the line.
|
protectedvirtual |
Called to effect zoom level if textured to make sure textures keep proper aspect.
|
protected |
Creates the points for the line given the line style.
|
protectedvirtual |
receive signals from the shared state about coordinate system changes
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |