![]() |
VR-Forces Developer's Guide
|
A prism controlled by control points.

Classes | |
| struct | SegmentInformation |
Public Types | |
| typedef std::vector< DtVector > | PointVector |
Public Types inherited from makVrv::DtOsgModelInstance | |
| enum | AlphaToCoverageState { USE_GLOBAL, FORCE_OFF, FORCE_ON } |
| typedef std::unordered_map < std::string, bool > | SensorRegionStateMap |
Public Member Functions | |
| DtExtrudedLineModelInstance (DtDe &de) | |
| virtual | ~DtExtrudedLineModelInstance () |
| virtual const std::vector < DtVector > & | points () const |
| virtual void | addPoint (const DtVector &, int index=-1) |
| virtual void | removePoint (int index) |
| virtual void | setPosition (int index, const DtVector &) |
| virtual void | setLinePoints (const std::vector< DtVector > &) |
| virtual void | clearPoints () |
| virtual bool | realize (const DtModelDefinition &definition) |
| virtual void | addToConnector (DtOsgSceneConnector *connector) |
| virtual bool | removeFromConnector (DtOsgSceneConnector *connector) |
| virtual void | setStipplePattern (unsigned int, int repeatFactor) |
| virtual std::vector < SegmentInformation > | segmentInformation () const |
| virtual void | setSegmentInformation (const std::vector< SegmentInformation > &) |
| virtual void | setSegmentStipplePattern (int s, unsigned int, int repeatFactor) |
| virtual void | setColor (float r, float g, float b, float a) |
| virtual void | setSegmentColor (int, float r, float g, float b, float a) |
| virtual void | setTextureHeight (double height) |
| virtual void | setTextureWidth (double width) |
| virtual void | setTexture (osg::Texture *texture) |
| virtual void | setWidth (float) |
| virtual void | setHeight (float) |
| virtual void | setDimensions (float width, float height) |
| virtual void | setLineWidth (float width) |
| virtual void | setScribed (bool b) |
| virtual void | setScribeWidth (float) |
| virtual void | setScribeColor (float r, float g, float b, float a) |
| virtual void | setOcclusionEnabled (bool enabled) |
| virtual void | setVisible (bool isVisible) |
| int | pointCount () const |
| const DtVector & | point (int) const |
| virtual void | setPickable (bool) |
| bool | pickable () const |
| void | setOrigin (const DtVector &origin) |
| virtual void | setSolid (bool) |
| virtual void | update () |
| virtual void | setSegmentEndArrow (int, bool) |
| virtual void | setSegmentStartArrow (int, bool) |
| virtual void | setArrowSize (double) |
| virtual void | setLineStyle (vrvTacticalGraphicUtilities::LineStyle) |
| virtual void | setArrowStyle (vrvTacticalGraphicUtilities::ArrowStyle) |
| virtual void | channelUpdated (const DtTacticalGraphicModelUpdaterManager::ChannelUpdateData &) |
| virtual void | setFixedWidthSizing (bool) |
| virtual void | setChannelInstance (DtChannel *) |
| virtual bool | hasArrows () const |
| virtual void | setHeightLinesEnabled (bool enabled) |
| virtual void | setHeightLinesColor (float r, float g, float b, float a) |
| virtual void | setHeightLinesSpacing (float spacing) |
| virtual void | setHeightLinesModelSetId (DtModelSetId modelSetId) |
| virtual void | setUpExtent (float height) |
| virtual void | setDownExtent (float height) |
| virtual void | setLeftExtent (float height) |
| virtual void | setRightExtent (float heigh) |
Public Member Functions inherited from makVrv::DtOsgModelInstance | |
| virtual | ~DtOsgModelInstance () |
| virtual bool | cloneInstance (const DtModelDefinition &definition) |
| virtual bool | saveModelToFile (const std::string &filename) const |
| virtual void | enableColorBlending (bool b) |
| virtual void | setBlendColor (float r, float g, float b, float a) |
| virtual void | enableTexture (bool onOff) |
| virtual osg::Node * | rootNode () |
| virtual const osg::Node * | rootNode () const |
| virtual osg::Node * | sensorNode () |
| virtual const osg::Node * | sensorNode () const |
| virtual void | setDynamicSensorRegion (const std::string ®ion, bool state) |
| virtual bool | dynamicSensorRegion (const std::string ®ion) |
| virtual const SensorRegionStateMap & | dynamicSensorRegionMap () const |
| virtual void | slot_atcGlobalModelEnableChanged () |
| virtual bool | alphaToCoverageEnabled () |
Public Member Functions inherited from makVrv::DtModelInstance | |
| DtModelInstance (DtDe &de) | |
| virtual | ~DtModelInstance () |
| const std::string & | realizedDefinitionName () const |
| const DtVector & | boundingBoxExtents () const |
| void | getBoundingBoxExtents (double &x, double &y, double &z) const |
| const DtVector & | boundingBoxCenter () const |
| void | getBoundingBoxCenter (double &x, double &y, double &z) const |
| void | getBoundingBoxComponents (DtVector &minimum, DtVector &maximum) |
| const DtVector & | allGeometryboundingBoxExtents () const |
| void | getAllGeometryBoundingBoxExtents (double &x, double &y, double &z) const |
| const DtVector & | allGeometryboundingBoxCenter () const |
| void | getAllGeometryBoundingBoxCenter (double &x, double &y, double &z) const |
| void | getAllGeometryBoundingBoxComponents (DtVector &minimum, DtVector &maximum) |
| virtual void | setContributesToBound (bool trueOrFalse) |
| bool | contributesToBound () const |
Protected Types | |
| typedef std::vector < DtExtrudedLineModelSegmentInstance * > | SegmentInformationArray |
Protected Member Functions | |
| virtual void | updateGeometry () |
| virtual DtExtrudedLineModelSegmentInstance * | createSegment () |
| virtual void | removeSegment (int) |
| std::vector< DtVector > | updatePointsForLineStyle (const std::vector< DtVector > &, std::vector< int > &) const |
| virtual void | resizeSegments (int) |
| virtual void | updateArrowState () |
| virtual void | updateSizes (double) |
| virtual void | updateWithViewResolution (double) |
Protected Member Functions inherited from makVrv::DtOsgModelInstance | |
| DtOsgModelInstance (DtDe &de) | |
| virtual void | updateColorBlending () |
| virtual void | updateColorBlending (osg::Node *node) |
| virtual void | enableTexture (osg::Node *root, bool onOff) |
| virtual void | updateBoundingBoxViaContents () |
| virtual void | setRootNode (osg::Node *node) |
| virtual void | setUpDepthTest (osg::StateSet *stateSet) |
Private Member Functions | |
| DtExtrudedLineModelInstance () | |
| DtExtrudedLineModelInstance (const DtExtrudedLineModelInstance &) | |
| DtExtrudedLineModelInstance & | operator= (const DtExtrudedLineModelInstance &) |
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::DtOsgModelInstance | |
| boost::signalslib::signal < void(const std::string &) > | signal_dynamicSensorRegionAdded |
| boost::signalslib::signal < void(const std::string &, bool) > | signal_dynamicSensorRegionChanged |
| boost::signalslib::signal < void(bool)> | signal_atcModeEnableChanged |
Public Attributes inherited from makVrv::DtModelInstance | |
| boost::signalslib::signal < void(DtModelInstance *)> | signal_modelInstanceChanged |
| typedef std::vector<DtVector> makVrv::DtExtrudedLineModelInstance::PointVector |
|
protected |
| makVrv::DtExtrudedLineModelInstance::DtExtrudedLineModelInstance | ( | 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 |
Returns the list of points.
|
virtual |
Add a control point to the end of the control point list if index is -1, or, at the specified index.
|
virtual |
Remove a control point at the specified index.
|
virtual |
Move a control point at the specified index to a new position.
|
virtual |
Sets the points to be used for the line, replacing any exising and reworking segments as needed.
|
virtual |
Clears out positions and resets geometry.
|
virtual |
Attempt to realize a definition. If the model instance can't realize the definition it should return false.
Reimplemented from makVrv::DtOsgModelInstance.
|
virtual |
Tell the model instance to add itself to the provided node.
Reimplemented from makVrv::DtOsgModelInstance.
|
virtual |
Tell the model instance to remove itself from the provided node.
Reimplemented from makVrv::DtOsgModelInstance.
|
virtual |
Sets the stipple pattern of the line.
|
virtual |
Returns the information for all segments.
|
virtual |
Sets the information for all the segments. If there is more information than segments currently available then will only use what is necessary to fill the current segments.
|
virtual |
Sets the stipple pattern of the segment.
|
virtual |
Set the color of the line.
|
virtual |
Sets the color for the segment.
|
virtual |
Set the height of the texture in meters.
|
virtual |
Set the width of the texture tiles in meters.
|
virtual |
Set the shape's texture.
|
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.
Set the shape's upwards extrusion extent
|
virtual |
Set the shape's downwards extrusion extent.
|
virtual |
Set the shape's left extrusion extent.
|
virtual |
Set the shape's right extrusion extent.
|
virtual |
Sets the width of the line. If there is height, will 0 out height.
|
virtual |
Sets the height of the line ("up/down" the origin point). If width is set, will 0 out width for the entire line.
|
virtual |
Sets the dimensions of the line.
|
virtual |
Sets the width of the line in pixel space, not world. Clears out any existing dimensional size.
|
virtual |
Sets the line to be scribed (default true)
|
virtual |
Sets the scribe line width.
|
virtual |
Sets the color of the scribe line. Once set it will always be different than the color of the main polygon.
|
virtual |
Turn on or off occlusion of the line by other objects; default is true.
|
inlinevirtual |
no-op
Implements makVrv::DtModelInstance.
|
inline |
Get the number of points in the line.
Get the value of the point at the specified index.
|
virtual |
Set the line's pickability.
| bool makVrv::DtExtrudedLineModelInstance::pickable | ( | ) | const |
Get if the line is pickable.
| void makVrv::DtExtrudedLineModelInstance::setOrigin | ( | const DtVector & | origin | ) |
Set the line's origin.
|
virtual |
Sets shape solid or outlined only. If solid is false and scribed is false, line will be effectively invisible.
|
virtual |
Called when it's time to update the model instance.
Sets the arrow to be on/off at the end of the segment (second point)
Sets the arrow to be on/off at the start of the segment (first point)
|
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 |
Called when a channel is updated from registration of callback with DtTacticalGraphicModelUpdaterManager.
|
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 |
Set to make this model channel specific. This means it will only update itself when the channel it is assigned to is updated.
|
virtual |
Returns true if there are any arrows present.
|
virtual |
Enables or disables height lines applied along line segments.
|
virtual |
Sets the color for height lines applied along line segments.
|
virtual |
Sets the desired spacing for height lines applied along line segments.
|
virtual |
Sets the model set that the height lines should be used with.
|
protectedvirtual |
Rebuild the geometry objects.
|
protectedvirtual |
Creates a new segment, adds it to the segment attributes and sets some default values.
|
protectedvirtual |
Removes a segment from the given index.
|
protected |
Creates the points for the line given the line style.
|
protectedvirtual |
Resizes segments to cover the segment that wants to be changed.
|
protectedvirtual |
If arrows are present connect to channel update in order to dynamically resize as zoom level changes.
|
protectedvirtual |
Updates the arrow sizes modified with the supplied view resolution.
|
protectedvirtual |
Updates geometry and line style with view resolution.
|
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 |