![]() |
VR-Forces Developer's Guide
|
OSG implementation of 3D Extruded line.

Classes | |
| struct | ChannelInstance |
Public Member Functions | |
| DtOsgExtrudedLineModel (DtDe &de, DtUniqueID id) | |
| virtual | ~DtOsgExtrudedLineModel () |
| virtual void | setHeight (float) |
| virtual void | setDimensions (float width, float height) |
| virtual void | setLineWidth (float width) |
| virtual void | setScribed (bool b) |
| virtual void | setScribeColor (float r, float g, float b, float a) |
| virtual void | setSegmentStartArrow (int, bool) |
| virtual void | setSegmentEndArrow (int, bool) |
| virtual void | setArrowSize (double) |
| virtual void | setHeightLinesEnabled (bool enabled) override |
| virtual void | setHeightLinesColor (float r, float g, float b, float a) override |
| virtual void | setHeightLinesSpacing (float spacing) override |
| virtual void | setOrigin (const DtVector &v) |
| virtual const DtVector & | origin () const |
| virtual bool | arePointsOffsetFromOrigin () const |
| virtual void | setModelDefinition (const std::string &str) |
| virtual void | removePosition (int index) |
| virtual void | setPosition (int index, const DtVector &position) |
| virtual void | setPositions (const std::vector< DtVector > &, const DtVector &origin) |
| virtual void | setOrientation (int vtx, const DtTaitBryan &orientation) |
| virtual void | setStipplePattern (unsigned int stipple, int repeatFactor) |
| virtual void | setSegmentStipplePattern (int, unsigned int, int repeatFactor) |
| virtual void | setLineStyle (int) |
| virtual void | setArrowStyle (int) |
| virtual const std::vector < DtVector > & | points () const |
| virtual void | setColor (float r, float g, float b, float a) |
| virtual void | setWidth (float width) |
| virtual void | setScribeWidth (float width) |
| virtual void | setSolid (bool solid) |
| virtual void | setPickable (bool) |
| virtual void | setStopOnTerrainIntersection (bool enabled) |
| virtual void | setOcclusionEnabled (bool enabled) |
| virtual void | setVisible (bool) |
| virtual void | setUpExtent (float) |
| virtual void | setDownExtent (float) |
| virtual void | setLeftExtent (float) |
| virtual void | setRightExtent (float) |
Public Member Functions inherited from makVrv::DtExtrudedLineModel | |
| DtExtrudedLineModel (DtDe &de, DtUniqueID id) | |
| virtual | ~DtExtrudedLineModel () |
Public Member Functions inherited from makVrv::Dt3DLineModel | |
| Dt3DLineModel (DtDe &de, DtUniqueID id) | |
| virtual | ~Dt3DLineModel () |
Public Member Functions inherited from makVrv::DtLineModel | |
| DtLineModel (DtDe &de, DtUniqueID id) | |
| virtual | ~DtLineModel () |
Public Member Functions inherited from makVrv::DtModel | |
| DtModel (DtDe &de, DtUniqueID id) | |
| virtual | ~DtModel () |
| DtModelInstance * | createModelInstance (const std::string &modelDefName, bool realize=true) |
| 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 | 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 |
| 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 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 () |
| virtual void | foregroundLoad () |
| virtual bool | isActivelyBackgroundLoading () |
| virtual DtLoaderHandle * | getLoadQueueHandle () |
Protected Types | |
| typedef std::map< DtChannel *, ChannelInstance > | ChannelInstances |
Protected Types inherited from makVrv::DtModel | |
| typedef std::vector < ObjectTransform > | TransformList |
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 |
Static Protected Attributes inherited from makVrv::DtModel | |
| static bool | theInittedState |
|
protected |
| makVrv::DtOsgExtrudedLineModel::DtOsgExtrudedLineModel | ( | DtDe & | de, |
| DtUniqueID | id | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Calls removePoint.
Reimplemented from makVrv::DtModel.
|
virtual |
Sets the origin if index is 0, else no-op.
Reimplemented from makVrv::DtModel.
|
virtual |
Sets the points of the line, using the given origin as the origin of the line (the point by which all other points are offset from)
|
virtual |
Sets the orientation of the line.
Reimplemented from makVrv::DtModel.
|
virtual |
Parameters for line stippling.
Implements makVrv::DtExtrudedLineModel.
|
virtual |
Sets the stipple pattern of the line.
Implements makVrv::DtExtrudedLineModel.
|
virtual |
Sets the line style (see DtTacticalGraphicUtilities.h for types)
Implements makVrv::DtExtrudedLineModel.
|
virtual |
Sets the style of the arrow (see DtTacticalGraphicUtilities.h for types)
Implements makVrv::DtExtrudedLineModel.
|
virtual |
Returns the points associated with this line.
Implements makVrv::DtLineModel.
|
virtual |
Sets the color of the line.
Implements makVrv::DtLineModel.
|
virtual |
Sets the width of the line.
Implements makVrv::DtLineModel.
|
virtual |
Sets the scribe of the scribe line.
Implements makVrv::DtExtrudedLineModel.
|
virtual |
Sets shape solid or outlined only. If outlined only, and not scribed, will scribe the line with color of alpha.
Reimplemented from makVrv::DtModel.
|
virtual |
Sets whether or not line is pickable.
Implements makVrv::Dt3DLineModel.
|
virtual |
Set whether or not the line stops at the first terrain intersection Not implemented.
Implements makVrv::Dt3DLineModel.
|
virtual |
Turn on or off occlusion of the line by other objects; default is true.
Implements makVrv::Dt3DLineModel.
|
virtual |
Sets model shown/hidden.
Reimplemented from makVrv::DtModel.
|
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.
Sets the height of the line ("above" the origin point)
Implements makVrv::DtExtrudedLineModel.
|
virtual |
Sets the height of the line ("below" the origin point)
Implements makVrv::DtExtrudedLineModel.
|
virtual |
Sets the width of the line ("left" the origin point). If width is set, this will be set to - half width.
Implements makVrv::DtExtrudedLineModel.
|
virtual |
Sets the width of the line ("right" the origin point). If width is set, this will be set to + half width.
Implements makVrv::DtExtrudedLineModel.
|
virtual |
Sets the height of the line (-half height to + half height around center). If width is set, will 0 out width or for the entire line.
Implements makVrv::DtExtrudedLineModel.
|
virtual |
Sets the dimensions of the line.
Implements makVrv::DtExtrudedLineModel.
|
virtual |
Sets the width of the line in pixel space, not world. Clears out any existing dimensional size.
Implements makVrv::DtExtrudedLineModel.
|
virtual |
Sets the line to be scribed (default true)
Implements makVrv::DtExtrudedLineModel.
|
virtual |
Sets the color of the scribe line. Once set it will always be different than the color of the main polygon.
Implements makVrv::DtExtrudedLineModel.
Sets the arrow to be on/off at the start of the segment.
Implements makVrv::DtExtrudedLineModel.
Sets the arrow to be on/off at the end of the segment. Start and end arrow turn on are equivalent.
Implements makVrv::DtExtrudedLineModel.
|
virtual |
Sets the size of the arrow (in pixels)
Implements makVrv::DtExtrudedLineModel.
|
overridevirtual |
Enable/disable height lines applied along line segments.
Implements makVrv::DtExtrudedLineModel.
|
overridevirtual |
Sets the color for height lines applied along line segments.
Implements makVrv::DtExtrudedLineModel.
|
overridevirtual |
Sets the desired spacing for height lines applied along line segments.
Implements makVrv::DtExtrudedLineModel.
|
virtual |
Sets the origin in the scene connector.
Implements makVrv::DtExtrudedLineModel.
|
virtual |
Gets the origin in the scene connector.
Implements makVrv::DtExtrudedLineModel.
|
virtual |
Get whether or not the points for this line are defined with respect to the origin. If False, then the points for this line are not offset from the origin and are in world coordinates.
Implements makVrv::DtExtrudedLineModel.
|
virtual |
Sets the model definition on the model instance.
Reimplemented from makVrv::DtModel.
|
protectedvirtual |
Attaches the model to the scene.
Implements makVrv::DtModel.
|
protectedvirtual |
Detaches the model from the scene.
Implements makVrv::DtModel.
|
protectedvirtual |
Set whether the model is part of the support group (whether or not other scene objects can ground clamp to this model)
Implements makVrv::DtModel.
|
protectedvirtual |
Moves instances from channel specific groups back to model set/visualizer groups. This will mean destroying all channel specific instances and creating a single instance.
|
protectedvirtual |
Moves the single instance to channel specific instances. Will make connections for channels being added and removed. This code is to allow for fixed sized items on different channels.
|
protectedvirtual |
Called when its time to update the model.
|
protectedvirtual |
Sets needs update flag such that on next update pass the object is updated.
|
protectedvirtual |
Sets the color for the segment.
Implements makVrv::DtExtrudedLineModel.
|
protectedvirtual |
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.
Implements makVrv::DtExtrudedLineModel.
|
protectedvirtual |
Called when channel is created, if the model set is this model set then add a new model instance.
|
protectedvirtual |
If the channel destroyed contains an instance of this model, destroy that model instance.
|
protectedvirtual |
Check to see if model instances associated with this channel need to be created or destroyed.
|
protectedvirtual |
Sets up the model instance with the specified model definition.
|
protectedvirtual |
Sets up the model instance with current values of this model.
|
protectedvirtual |
Returns true if there are any arrows present.
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Set to true if displaying model instances on a per channel basis. Default is false.
|
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 |