![]() |
VR-Forces 4.6.1 Class Documentation
|
A prism controlled by control points. More...

Classes | |
| struct | SegmentInformation |
| When requesting information by segment, the structure used to return that information. More... | |
Public Types | |
| typedef std::vector< DtVector > | PointVector |
Public Types inherited from makVrv::DtOsgModelInstance | |
| enum | AlphaToCoverageState { USE_GLOBAL, FORCE_OFF, FORCE_ON } |
| The possible states of a control point. More... | |
| typedef boost::unordered_map < std::string, bool > | SensorRegionStateMap |
| Dynamic Sensor Region methods. | |
Public Member Functions | |
| DtExtrudedLineModelInstance (DtDe &de) | |
| CTOR. | |
| virtual | ~DtExtrudedLineModelInstance () |
| DTOR. | |
| virtual const std::vector < DtVector > & | points () const |
| Returns the list of points. | |
| virtual void | addPoint (const DtVector &, int index=-1) |
| Add a control point to the end of the control point list if index is -1, or, at the specified index. | |
| virtual void | removePoint (int index) |
| Remove a control point at the specified index. | |
| virtual void | setPosition (int index, const DtVector &) |
| Move a control point at the specified index to a new position. | |
| virtual void | setLinePoints (const std::vector< DtVector > &) |
| Sets the points to be used for the line, replacing any exising and reworking segments as needed. | |
| virtual void | clearPoints () |
| Clears out positions and resets geometry. | |
| virtual bool | realize (DtModelDefinition &definition) |
| Attempt to realize a definition. | |
| virtual void | addToConnector (DtOsgSceneConnector *connector) |
| Tell the model instance to add itself to the provided node. | |
| virtual bool | removeFromConnector (DtOsgSceneConnector *connector) |
| Tell the model instance to remove itself from the provided node. | |
| virtual void | setStipplePattern (unsigned int, int repeatFactor) |
| Sets the stipple pattern of the line. | |
| virtual std::vector < SegmentInformation > | segmentInformation () const |
| Returns the information for all segments. | |
| virtual void | setSegmentInformation (const std::vector< SegmentInformation > &) |
| Sets the information for all the segments. | |
| virtual void | setSegmentStipplePattern (int s, unsigned int, int repeatFactor) |
| Sets the stipple pattern of the segment. | |
| virtual void | setColor (float r, float g, float b, float a) |
| Set the color of the line. | |
| virtual void | setSegmentColor (int, float r, float g, float b, float a) |
| Sets the color for the segment. | |
| virtual void | setTextureHeight (double height) |
| Set the height of the texture in meters. | |
| virtual void | setTextureWidth (double width) |
| Set the width of the texture tiles in meters. | |
| virtual void | setTexture (osg::Texture *texture) |
| Set the shape's texture. | |
| virtual void | setWidth (float) |
| Sets the width of the line. If there is height, will 0 out height. | |
| virtual void | setHeight (float) |
| Sets the height of the line ("up/down" the origin point). | |
| virtual void | setDimensions (float width, float height) |
| Sets the dimensions of the line. | |
| virtual void | setLineWidth (float width) |
| Sets the width of the line in pixel space, not world. | |
| virtual void | setScribed (bool b) |
| Sets the line to be scribed (default true) | |
| virtual void | setScribeWidth (float) |
| Sets the scribe line width. | |
| virtual void | setScribeColor (float r, float g, float b, float a) |
| Sets the color of the scribe line. | |
| virtual void | setOcclusionEnabled (bool enabled) |
| Turn on or off occlusion of the line by other objects; default is true. | |
| virtual void | setVisible (bool isVisible) |
| no-op | |
| int | pointCount () const |
| Get the number of points in the line. | |
| const DtVector & | point (int) const |
| Get the value of the point at the specified index. | |
| virtual void | setPickable (bool) |
| Set the line's pickability. | |
| bool | pickable () const |
| Get if the line is pickable. | |
| void | setOrigin (const DtVector &origin) |
| Set the line's origin. | |
| virtual void | setSolid (bool) |
| Sets shape solid or outlined only. If solid is false and scribed is false, line will be effectively invisible. | |
| virtual void | update () |
| Called when it's time to update the model instance. | |
| virtual void | setSegmentEndArrow (int, bool) |
| Sets the arrow to be on/off at the end of the segment (second point) | |
| virtual void | setSegmentStartArrow (int, bool) |
| Sets the arrow to be on/off at the start of the segment (first point) | |
| virtual void | setArrowSize (double) |
| Sets the size of the arrow (in pixels) | |
| virtual void | setLineStyle (vrvTacticalGraphicUtilities::LineStyle) |
| Sets the line style (see DtTacticalGraphicUtilities.h for types) | |
| virtual void | setArrowStyle (vrvTacticalGraphicUtilities::ArrowStyle) |
| Sets the style of the arrow (see DtTacticalGraphicUtilities.h for types) | |
| virtual void | channelUpdated (const DtTacticalGraphicModelUpdaterManager::ChannelUpdateData &) |
| Called when a channel is updated from registration of callback with DtTacticalGraphicModelUpdaterManager. | |
| virtual void | setFixedWidthSizing (bool) |
| 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). | |
| virtual void | setChannelInstance (DtChannel *) |
| Set to make this model channel specific. | |
| virtual bool | hasArrows () const |
| Returns true if there are any arrows present. | |
| virtual void | setUpExtent (float height) |
| Set the shape's upwards extrusion extent. | |
| virtual void | setDownExtent (float height) |
| Set the shape's downwards extrusion extent. | |
| virtual void | setLeftExtent (float height) |
| Set the shape's left extrusion extent. | |
| virtual void | setRightExtent (float heigh) |
| Set the shape's right extrusion extent. | |
Public Member Functions inherited from makVrv::DtOsgModelInstance | |
| virtual | ~DtOsgModelInstance () |
| DTOR. | |
| virtual bool | saveModelToFile (const std::string &filename) const |
| Attempt to save the model to a file. | |
| virtual void | enableColorBlending (bool b) |
| Enable / disable coloring on all models in the scene object Note about enableColorBlending: If this particular model has instancing enabled then this flag is set to false and color blending is handled by the instance manager. | |
| virtual void | setBlendColor (float r, float g, float b, float a) |
| set the model's color | |
| virtual void | enableTexture (bool onOff) |
| virtual osg::Node * | rootNode () |
| Get the model instance's root node. | |
| virtual const osg::Node * | rootNode () const |
| virtual osg::Node * | sensorNode () |
| Get the model instance's sensor node, . | |
| virtual const osg::Node * | sensorNode () const |
| virtual void | addDynamicSensorRegion (const std::string ®ion) |
| Add an active region state. | |
| virtual void | setDynamicSensorRegion (const std::string ®ion, bool state) |
| Set the state of an active region. | |
| virtual bool | dynamicSensorRegion (const std::string ®ion) |
| Get the current state of the specified sensor region. | |
| SensorRegionStateMap const | dynamicSensorRegionMap () const |
| Get the map containing all regions and their current states. | |
| virtual void | slot_atcGlobalModelEnableChanged () |
| Slot to handle the global alpha to coverage signal for entities. | |
| virtual bool | alphaToCoverageEnabled () |
| Get the current setting for alpha to coverage for this model. | |
| virtual void | registerLightPoints (const std::string &groupName, bool daylightControlledLights) |
| loop over all this models light points and register them with the light point manager daylightControlled is only used if the light points do not already have a type specified | |
Public Member Functions inherited from makVrv::DtModelInstance | |
| DtModelInstance (DtDe &de) | |
| CTOR. | |
| virtual | ~DtModelInstance () |
| DTOR. | |
| const std::string & | realizedDefinitionName () const |
| Get the name of the definition that this model instance was realized with. | |
| const DtVector & | boundingBoxExtents () const |
| Get the bounding box extents of the model instance. | |
| void | getBoundingBoxExtents (double &x, double &y, double &z) const |
| Get the bounding box extents of the model instance. | |
| const DtVector & | boundingBoxCenter () const |
| Get the bounding box center of the model instance. | |
| void | getBoundingBoxCenter (double &x, double &y, double &z) const |
| Get the bounding box center of the model instance. | |
| void | getBoundingBoxComponents (DtVector &minimum, DtVector &maximum) |
| virtual void | setContributesToBound (bool trueOrFalse) |
| Set whether this model instance contributes to an object's overall bounding volume. | |
| bool | contributesToBound () const |
| Get whether this model instance contributes to an object's overall bounding volume. | |
Protected Types | |
| typedef std::vector < DtExtrudedLineModelSegmentInstance * > | SegmentInformationArray |
Protected Member Functions | |
| virtual void | updateGeometry () |
| Rebuild the geometry objects. | |
| virtual DtExtrudedLineModelSegmentInstance * | createSegment () |
| Creates a new segment, adds it to the segment attributes and sets some default values. | |
| virtual void | removeSegment (int) |
| Removes a segment from the given index. | |
| std::vector< DtVector > | updatePointsForLineStyle (const std::vector< DtVector > &, std::vector< int > &) const |
| Creates the points for the line given the line style. | |
| virtual void | resizeSegments (int) |
| Resizes segments to cover the segment that wants to be changed. | |
| virtual void | updateArrowState () |
| If arrows are present connect to channel update in order to dynamically resize as zoom level changes. | |
| virtual void | updateSizes (double) |
| Updates the arrow sizes modified with the supplied view resolution. | |
| virtual void | updateWithViewResolution (double) |
| Updates geometry and line style with view resolution. | |
Protected Member Functions inherited from makVrv::DtOsgModelInstance | |
| virtual void | updateColorBlending () |
| calls update color blending with the model root. | |
| virtual void | updateColorBlending (osg::Node *node) |
| virtual void | enableTexture (osg::Node *root, bool onOff) |
| virtual void | updateBoundingBoxViaContents () |
| DtOsgModelInstance (DtDe &de) | |
| CTOR. | |
| virtual void | setRootNode (osg::Node *node) |
| Set the model instance's root node. | |
Additional Inherited Members | |
Static Public Member Functions inherited from makVrv::DtOsgModelInstance | |
| static osg::Vec4 | readVec4 (const std::string ¶mName, const DtModelDefinition &definition) |
| static osg::Vec3 | readVec3 (const std::string ¶mName, const DtModelDefinition &definition) |
Public Attributes inherited from makVrv::DtOsgModelInstance | |
| boost::signal< void(const std::string &) > | signal_dynamicSensorRegionAdded |
| Signal raised when a dynamic sensor region is added. | |
| boost::signal< void(const std::string &, bool) > | signal_dynamicSensorRegionChanged |
| Signal raised when a dynamic sensor region's state changes. | |
| boost::signal< void(bool)> | signal_atcModeEnableChanged |
| Signal raised when alpha to coverage for this model is changed. | |
Public Attributes inherited from makVrv::DtModelInstance | |
| boost::signal< void(DtModelInstance *)> | signal_modelInstanceChanged |
A prism controlled by control points.
| typedef std::vector<DtVector> makVrv::DtExtrudedLineModelInstance::PointVector |
|
protected |
| makVrv::DtExtrudedLineModelInstance::DtExtrudedLineModelInstance | ( | DtDe & | de | ) |
CTOR.
|
virtual |
DTOR.
|
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 |
Set the shape's upwards extrusion extent.
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
|
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.
|
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 |