![]() |
VR-Forces Developer's Guide
|
Contains DtEllipseVisualizer class. Visualizer for a ellipses and circles The setPoints method will inherently assume that if there are 2 points defined the distance between the first (origin) and second is the X Radius. If there are three points defined the distance between the third and the first is the Y radius. If there is no Y radius a circle is assumed.

Public Member Functions | |
| DtEllipseVisualizer (DtBaseConnection &simulation, DtStateListener &listener, DtSceneObjectAgent *sceneObject, DtModelSetId modelSet) | |
| virtual | ~DtEllipseVisualizer () |
| DtEllipseVisualizer ()=delete | |
| DtEllipseVisualizer (const DtEllipseVisualizer &)=delete | |
| DtEllipseVisualizer & | operator= (const DtEllipseVisualizer &)=delete |
| virtual void | initialize () override |
| virtual void | setFillStyle (vrvTacticalGraphicUtilities::FillStyle) |
| virtual vrvTacticalGraphicUtilities::FillStyle | fillStyle () const |
| virtual void | setPenStyle (vrvTacticalGraphicUtilities::PenStyle) |
| virtual unsigned short | stipplePattern () const |
| virtual void | setStipplePattern (unsigned short) |
| virtual void | slot_setSelected (bool) override |
| virtual void | setPixelLineWidth (int) |
| virtual void | setPickable (bool) |
| virtual void | setIsFriendlyForceColorOverrideEnabled (bool enabled) |
| virtual bool | isFriendlyForceColorOverrideEnabled () const |
| virtual void | setColor (float r, float g, float b, float a) |
| virtual void | getColor (float &r, float &g, float &b, float &a) const |
| virtual void | useDefaultColor () |
| virtual void | setOutsideColor (float r, float g, float b, float a) |
| virtual void | setSelectedOutsideColor (float r, float g, float b, float a) |
| virtual void | setInsideColor (float r, float g, float b, float a) |
| virtual void | setSelectedInsideColor (float r, float g, float b, float a) |
| virtual void | updateColors ()=0 |
| virtual void | setDimensions (double x, double y) |
| virtual void | getDimensions (double &x, double &y) |
| virtual void | setFilled (bool filled) |
| virtual bool | isFilled () |
Public Member Functions inherited from makVrv::DtStateVisualizer | |
| DtStateVisualizer (DtBaseConnection &connection, DtStateListener &listener, DtSceneObjectAgent *sceneObjectAgent, DtModelSetId modelSet) | |
| virtual | ~DtStateVisualizer () |
| virtual DtModelSetId | modelSet () |
| virtual const TypeInfo & | typeInfo () const =0 |
| virtual void | setSceneObjectAgent (DtSceneObjectAgent *sceneObject) |
| void | setModelDefinition (const std::string &definition) |
| const std::string & | modelDefinition () const |
| virtual void | implementVisibility (bool visible) |
| void | setName (const std::string &) |
| const std::string & | name () const |
| virtual bool | pickable () const |
| virtual DtUniqueID | sceneObjectID () const |
| int | visualizerType () const |
| virtual void | setVisualizerDefinition (const DtVisualizerDefinition &) |
| DtStateListener & | listener () |
| const DtStateListener & | listener () const |
| DtBaseConnection & | simulation () |
| void | setDistribute (bool b) |
| bool | distribute () const |
| virtual bool | setVisualizerIsVisible (bool vis, DtVisualizerShowHideContext::VisualizerShowHideContext context) |
Protected Member Functions | |
| virtual void | connectToListenerSignals () override |
| virtual void | setInitialValuesFromVisualizerDefinition () override |
| virtual void | setArrowSize (double s) |
| void | setFriendlyForceColorStyle (vrvTacticalGraphicUtilities::FriendlyForceColorStyle style) |
| virtual void | createModelAgents () override |
| virtual void | destroyModelAgents () override |
| virtual void | setModelDefinitionForAgents () override |
Protected Member Functions inherited from makVrv::DtStateVisualizer | |
| virtual void | makeVisible () |
| virtual bool | isVisible () const |
| template<typename T , typename C > | |
| void | connectAndUpdate (boost::signalslib::signal< void(T)> &sig, void(C::*fp)(T), T val) |
Additional Inherited Members | |
Public Types inherited from makVrv::DtStateVisualizer | |
| enum | Type { AllVisualizerTypes = 0, EntityVisualizerType = 1, EnvironmentalVisualizerType, InteractionVisualizerType, AggregateVisualizerType, IntervisibilityVisualizerType, TacticalSmokeVisualizerType, UserType = 10000 } |
Protected Types inherited from makVrv::DtStateVisualizer | |
| typedef std::vector < DtVisualizerShowHideContext::VisualizerShowHideContext > | ShowHideContextVector |
| makVrv::DtEllipseVisualizer::DtEllipseVisualizer | ( | DtBaseConnection & | simulation, |
| DtStateListener & | listener, | ||
| DtSceneObjectAgent * | sceneObject, | ||
| DtModelSetId | modelSet | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
delete |
default constructor - not allowed
|
delete |
copy constructor - not allowed
|
delete |
assignment operator - not allowed
|
overridevirtual |
Initialize the visualizer.
Reimplemented from makVrv::DtStateVisualizer.
Reimplemented in makVrv::Dt3DEllipseVisualizer.
|
virtual |
ColorSets the color for the ellipse. This will apply to all segments of the area. If the default (all 0's), uses the default as defined in the visual definition.
|
virtual |
ColorSets the color for the ellipse. This will apply to all segments of the area. If the default (all 0's), uses the default as defined in the visual definition.
|
virtual |
Sets color to default color as defined in the visualizer definition. Called when color set is 0, 0, 0, 0.
|
virtual |
Sets the outside color (rim) if available.
Reimplemented in makVrv::Dt3DEllipseVisualizer.
|
virtual |
Sets the selected outside color. This color is used if the object is selected.
|
virtual |
Sets inside color (fill) if available.
|
virtual |
Sets the selected inside color.
|
pure virtual |
update the color - derived classes override
Implemented in makVrv::Dt2DEllipseVisualizer, and makVrv::Dt3DEllipseVisualizer.
Set / Get the dimensions of the ellipse.
Reimplemented in makVrv::Dt3DEllipseVisualizer, and makVrv::Dt2DEllipseVisualizer.
Set / Get the dimensions of the ellipse.
|
virtual |
Set / Get if the ellipse is filled Default set from visualizer definition.
Reimplemented in makVrv::Dt3DEllipseVisualizer, and makVrv::Dt2DEllipseVisualizer.
|
virtual |
Set / Get if the ellipse is filled Default set from visualizer definition.
|
virtual |
Sets the fill style of the area. If fill is 0, will be considered an outlined area. Translates the fill style bit to a patterened fill style using the mapping routines found in vrvTacticalGraphicUtilities.h.
Reimplemented in makVrv::Dt2DEllipseVisualizer.
|
virtual |
Returns the currently set fill style.
|
virtual |
Takes the pen style and translates it to a stipple pattern. See vrvTacticalGraphicUtilities for styles.
|
virtual |
Returns the stipple pattern.
|
virtual |
Sets the stipple pattern of the line.
Reimplemented in makVrv::Dt3DEllipseVisualizer, and makVrv::Dt2DEllipseVisualizer.
|
overridevirtual |
Sets whether or not the ellipse is selected. Connected to DtStateListener's signal_objectSelectionChanged signal.
Reimplemented from makVrv::DtStateVisualizer.
|
virtual |
Sets the width of the outside line. Default is 2. The pixel line width is the line in osg pixel space. This is different than physicalLineWidth which sets the width of the line in datasbe space.
Reimplemented in makVrv::Dt3DEllipseVisualizer, and makVrv::Dt2DEllipseVisualizer.
|
virtual |
Whether or not the area can be pickable.
Reimplemented from makVrv::DtStateVisualizer.
Reimplemented in makVrv::Dt3DEllipseVisualizer, and makVrv::Dt2DEllipseVisualizer.
|
virtual |
Set whether or not the color of this graphic, if aligned friendly,
can be overridden with black/white coloration
|
virtual |
Returns (based on the model definitionor set value) whether or not the color of this graphic, if aligned friendly, can be overridden with black/white coloration.
|
overrideprotectedvirtual |
Connect the visualizer to the listeners signals Called by DtStateVisualizer::initialize()
Reimplemented from makVrv::DtStateVisualizer.
Reimplemented in makVrv::Dt3DEllipseVisualizer.
|
overrideprotectedvirtual |
Sets member variables from the visualizer definition if they exist Should not call this directly. Called by DtStateVisualizer::initialize.
Reimplemented from makVrv::DtStateVisualizer.
Reimplemented in makVrv::Dt3DEllipseVisualizer, and makVrv::Dt2DEllipseVisualizer.
|
protectedvirtual |
This is for air corridors, they set the dimensions of the ellipse via arrow size when ellipses are used at each vertex.
|
protected |
Connected to the TG listener's signal_friendlyForceColorStyleChanged. This will cache the new value and force a call to updateColors()
|
overrideprotectedvirtual |
No-op must override pure virtual.
Implements makVrv::DtStateVisualizer.
Reimplemented in makVrv::Dt3DEllipseVisualizer, and makVrv::Dt2DEllipseVisualizer.
|
overrideprotectedvirtual |
No-op must override pure virtual.
Implements makVrv::DtStateVisualizer.
Reimplemented in makVrv::Dt3DEllipseVisualizer, and makVrv::Dt2DEllipseVisualizer.
|
overrideprotectedvirtual |
No-op must override pure virtual.
Implements makVrv::DtStateVisualizer.
Reimplemented in makVrv::Dt3DEllipseVisualizer, and makVrv::Dt2DEllipseVisualizer.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |