![]() |
VR-Forces 5.0.3 Developer's Guide
|
DtOsgOverlayLineModel extends the DtLineModel interface to include operations only appropriate for 2D lines.

Public Member Functions | |
| DtOsgOverlaySegmentedLineModel (DtDe &de, DtUniqueID id) | |
| ~DtOsgOverlaySegmentedLineModel () | |
| virtual void | setPosition (int vtx, const DtVector &position) |
| virtual void | removePosition (int vtx) |
| virtual void | setOrientation (int vtx, const DtTaitBryan &orientation) |
| virtual void | setColor (float r, float g, float b, float a) |
| virtual void | setWidth (float width) |
| 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 const std::vector < DtVector > & | points () const |
| virtual void | setGroup (int) |
| 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 | setArrowSize (double) |
| virtual void | setLineStyle (int) |
| virtual void | setArrowStyle (int) |
| 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 | setEventsEnabled (bool) |
| virtual void | setEventWidth (float width) |
| virtual void | update () |
| virtual void | needsUpdate () |
| virtual void | setFixedWidthSizing (bool) |
| virtual void | addToScene (const DtUniqueID &sceneObjectId, int modelSet, int visualizerType) |
| virtual void | removeFromScene () |
| virtual void | setModelDefinition (const std::string &str) |
| virtual void | setVisible (bool isVisible) |
| virtual void | setIsSupportModel (bool isSupport) |
Public Member Functions inherited from makVrv::DtOverlaySegmentedLineModel | |
| DtOverlaySegmentedLineModel (DtDe &de, DtUniqueID id) | |
| virtual | ~DtOverlaySegmentedLineModel () |
Public Member Functions inherited from makVrv::DtSegmentedLineModel | |
| DtSegmentedLineModel (DtDe &de, DtUniqueID id) | |
| virtual | ~DtSegmentedLineModel () |
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 |
| 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 int | 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 (DtModelDefinition &defintion) |
| virtual bool | visible () const |
| DtUniqueID | parentSceneObjectID () const |
| virtual void | addedToSceneObjectAsProp (const DtUniqueID &sceneObj) |
| virtual void | addedToSceneObject (const DtUniqueID &sceneObj, int modelSet, int visualizerType) |
| virtual void | setElementId (DtUniqueID id) |
| virtual void | removedFromSceneObject () |
| virtual void | setSolid (bool isSolid) |
| 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 *, DtOverlaySegmentedLineModelInstance * > | ChannelInstances |
Protected Types inherited from makVrv::DtModel | |
| typedef std::vector < ObjectTransform > | TransformList |
Protected Member Functions | |
| virtual void | moveInstancesFromChannelSpecific () |
| virtual void | moveInstancesToChannelSpecific () |
| virtual void | slot_channelCreated (DtChannel *channel) |
| virtual void | slot_channelDestroyed (DtChannelManager *channelManager, DtChannel *channel) |
| virtual void | slot_channelConfigurationModified (const std::string &deName, const std::string &winName, const std::string &oldChannelName, const DtChannelConfiguration &config) |
| virtual void | setupInstanceWithCurrentValues (DtOverlaySegmentedLineModelInstance *) |
Protected Member Functions inherited from makVrv::DtModel | |
| virtual void | addToSceneAsProp (const DtUniqueID &sceneObjectId) |
| virtual void | initializeModelInstance () |
| void | slot_modelInstanceChanged (DtModelInstance *instance) |
| virtual void | waitAndClearLoadHandle () |
| virtual void | removedFromLoadQueue () |
| virtual void | setDoneBackgroundLoading () |
| virtual void | setActivelyBackgroundLoading () |
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::DtOsgOverlaySegmentedLineModel::DtOsgOverlaySegmentedLineModel | ( | DtDe & | de, |
| DtUniqueID | id | ||
| ) |
CTOR.
| makVrv::DtOsgOverlaySegmentedLineModel::~DtOsgOverlaySegmentedLineModel | ( | ) |
DTOR.
|
virtual |
Set the position of (or add) one vertex.
Reimplemented from makVrv::DtModel.
|
virtual |
Remove a vertex.
Reimplemented from makVrv::DtModel.
|
virtual |
Sets the orientation of the line.
Reimplemented from makVrv::DtModel.
|
virtual |
Set the line color.
Implements makVrv::DtLineModel.
|
virtual |
Set the line width.
Implements makVrv::DtLineModel.
|
virtual |
Set a stipple pattern for the line.
Implements makVrv::DtLineModel.
|
virtual |
Set the style segments to percentages of the total line length The values in segmentPercentages must add up to 1.0.
Implements makVrv::DtSegmentedLineModel.
|
virtual |
Set the color of a particular segment.
Implements makVrv::DtSegmentedLineModel.
|
virtual |
Turn on or off lightning bolt style for a particular segment.
Implements makVrv::DtSegmentedLineModel.
|
virtual |
Turn on or off the arrow at a segment's start point.
Implements makVrv::DtSegmentedLineModel.
|
virtual |
Returns the points associated with this line.
Implements makVrv::DtLineModel.
|
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.
Implements makVrv::DtOverlaySegmentedLineModel.
|
virtual |
Turn on or off the arrow at a segment's end point.
Implements makVrv::DtSegmentedLineModel.
|
virtual |
Set the line stipple pattern for a segment, according to the OpenGL line stippling specification.
Implements makVrv::DtSegmentedLineModel.
|
virtual |
Set the width of a line segment.
Implements makVrv::DtSegmentedLineModel.
|
virtual |
Sets the size of the arrow (in pixels)
Implements makVrv::DtSegmentedLineModel.
|
virtual |
Sets the line style (see DtTacticalGraphicUtilities.h for types)
Implements makVrv::DtOverlaySegmentedLineModel.
|
virtual |
Sets the style of the arrow (see DtTacticalGraphicUtilities.h for types)
Implements makVrv::DtSegmentedLineModel.
|
virtual |
Set the color of the firt vertex in a segment. This can be used for color blending between vertices.
Implements makVrv::DtSegmentedLineModel.
|
virtual |
Set the color of the end vertex in a segment. This can be used for color blending between vertices.
Implements makVrv::DtSegmentedLineModel.
|
virtual |
Enable or disable widget events, such as picking and mouse-over.
Implements makVrv::DtOverlaySegmentedLineModel.
|
virtual |
Set the line width for handling events.
Implements makVrv::DtOverlaySegmentedLineModel.
|
virtual |
Attaches the model to the scene.
Implements makVrv::DtModel.
|
virtual |
Detaches the model from the scene – no-op.
Implements makVrv::DtModel.
|
virtual |
Sets the model definition on the model instance.
Reimplemented from makVrv::DtModel.
|
virtual |
Sets if the line is visible.
Reimplemented from makVrv::DtModel.
|
virtual |
Not applicable to overlay objects.
Implements makVrv::DtModel.
|
virtual |
Connected to the renderer's postUpdate signal; tells the model instance to update.
|
virtual |
Called by all mutators to set up a postUpdate signal if not already connected.
|
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.
Implements makVrv::DtOverlaySegmentedLineModel.
|
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 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 current values of this model.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Set to true if displaying model instances on a per channel basis. Default is false.
|
protected |
|
protected |
Variables that are saved in order to switch between channel instance and model set instance.
|
protected |
Variables that are saved in order to switch between channel instance and model set instance.
|
protected |
Variables that are saved in order to switch between channel instance and model set instance.
|
protected |
Variables that are saved in order to switch between channel instance and model set instance.
|
protected |
Variables that are saved in order to switch between channel instance and model set instance.
|
protected |
Variables that are saved in order to switch between channel instance and model set instance.
|
protected |
Variables that are saved in order to switch between channel instance and model set instance.
Variables that are saved in order to switch between channel instance and model set instance.
|
protected |
Variables that are saved in order to switch between channel instance and model set instance.
|
protected |
Variables that are saved in order to switch between channel instance and model set instance.
|
protected |
Variables that are saved in order to switch between channel instance and model set instance.
|
protected |
Variables that are saved in order to switch between channel instance and model set instance.