![]() |
VR-Forces Developer's Guide
|
Contains Dt3DEllipseVisualizer class. Visualizer for a 3D (overlay) circle. The model 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 | |
| Dt3DEllipseVisualizer (DtBaseConnection &simulation, DtStateListener &listener, DtSceneObjectAgent *sceneObject, DtModelSetId modelSet) | |
| virtual | ~Dt3DEllipseVisualizer () |
| Dt3DEllipseVisualizer ()=delete | |
| Dt3DEllipseVisualizer (const Dt3DEllipseVisualizer &)=delete | |
| Dt3DEllipseVisualizer & | operator= (const Dt3DEllipseVisualizer &)=delete |
| virtual void | initialize () override |
| virtual const DtStateVisualizer::TypeInfo & | typeInfo () const |
| virtual void | setPhysicalLineHeight (float) |
| virtual void | setScribeColor (float r, float g, float b, float a) |
| virtual void | getScribeColor (float &r, float &g, float &b, float &a) |
| virtual void | setSelectedScribeColor (float r, float g, float b, float a) |
| virtual void | getSelectedScribeColor (float &r, float &g, float &b, float &a) |
| virtual void | setOutsideColor (float r, float g, float b, float a) override |
| virtual void | updateColors () override |
| virtual void | setScribed (bool) |
| virtual bool | isScribed () |
| virtual void | setScribeWidth (float width) |
| virtual float | scribeWidth () |
| virtual void | setScribeAllPolygons (bool) |
| virtual void | setStipplePattern (unsigned short) override |
| virtual void | setPixelLineWidth (int) override |
| virtual void | setPickable (bool b) override |
| virtual void | setDimensions (double, double) override |
| virtual void | setFilled (bool filled) override |
| virtual DtExtrudedEllipseModelAgent * | findEllipseModel () |
Public Member Functions inherited from makVrv::DtEllipseVisualizer | |
| DtEllipseVisualizer (DtBaseConnection &simulation, DtStateListener &listener, DtSceneObjectAgent *sceneObject, DtModelSetId modelSet) | |
| virtual | ~DtEllipseVisualizer () |
| DtEllipseVisualizer ()=delete | |
| DtEllipseVisualizer (const DtEllipseVisualizer &)=delete | |
| DtEllipseVisualizer & | operator= (const DtEllipseVisualizer &)=delete |
| virtual void | setFillStyle (vrvTacticalGraphicUtilities::FillStyle) |
| virtual vrvTacticalGraphicUtilities::FillStyle | fillStyle () const |
| virtual void | setPenStyle (vrvTacticalGraphicUtilities::PenStyle) |
| virtual unsigned short | stipplePattern () const |
| virtual void | slot_setSelected (bool) override |
| 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 | 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 | getDimensions (double &x, double &y) |
| 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 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) |
Static Public Member Functions | |
| static const DtStateVisualizer::TypeInfo & | theTypeInfo () |
Protected Member Functions | |
| virtual void | createModelAgents () override |
| virtual void | destroyModelAgents () override |
| virtual void | setModelDefinitionForAgents () override |
| virtual void | connectToListenerSignals () override |
| virtual void | setInitialValuesFromVisualizerDefinition () override |
Protected Member Functions inherited from makVrv::DtEllipseVisualizer | |
| virtual void | setArrowSize (double s) |
| void | setFriendlyForceColorStyle (vrvTacticalGraphicUtilities::FriendlyForceColorStyle style) |
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::Dt3DEllipseVisualizer::Dt3DEllipseVisualizer | ( | 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 |
Intialize the visualizer.
Reimplemented from makVrv::DtEllipseVisualizer.
|
virtual |
Get the instance's type info.
Implements makVrv::DtStateVisualizer.
|
static |
The class's type info.
|
virtual |
Sets the height (up extent) of the lines of the area.
|
virtual |
Sets the color of the scribe line.
|
virtual |
|
virtual |
Sets the color to used for the scribe when the mode is selected.
|
virtual |
|
overridevirtual |
Set outside color This also sets myScribeColor for VRF, to have a different 'fill' color to scribe color, call setScribeColor after this.
Reimplemented from makVrv::DtEllipseVisualizer.
|
overridevirtual |
Update the colors.
Implements makVrv::DtEllipseVisualizer.
|
virtual |
Sets whether or not to scribe the line (and edges)
|
virtual |
|
virtual |
Sets the width of the scribe line in pixel space. This will set a flag such that when the line width is changed this width is not, so, once set, you will need to continue to set to keep pace with line width.
|
virtual |
|
virtual |
Sets whether or not to only scribe the outline (and not the line edges). Only valid if scribed is true. If set to true will scribe all point connections along the polygon. If false will only scribe the top and bottom of the polygon.
|
overridevirtual |
Sets the stipple pattern of the line.
Reimplemented from makVrv::DtEllipseVisualizer.
|
overridevirtual |
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 from makVrv::DtEllipseVisualizer.
|
overridevirtual |
Whether or not the ellipse can be pickable.
Reimplemented from makVrv::DtEllipseVisualizer.
Sets the dimensions of the ellipse.
Reimplemented from makVrv::DtEllipseVisualizer.
|
overridevirtual |
Set if the ellipse is filled.
Reimplemented from makVrv::DtEllipseVisualizer.
|
virtual |
Find the model - can return nullptr.
|
overrideprotectedvirtual |
Create the DtExtrudedEllipseModelAgent.
Reimplemented from makVrv::DtEllipseVisualizer.
|
overrideprotectedvirtual |
Destroyed model agents associated with ellipse.
Reimplemented from makVrv::DtEllipseVisualizer.
|
overrideprotectedvirtual |
Set the initial values on the model.
Reimplemented from makVrv::DtEllipseVisualizer.
|
overrideprotectedvirtual |
Connect the visualizer to the listeners signals Called by DtStateVisualizer::initialize()
Reimplemented from makVrv::DtEllipseVisualizer.
|
overrideprotectedvirtual |
Sets member variables from the visualizer definition if they exist Should not call this directly. Called by DtStateVisualizer::initialize.
Reimplemented from makVrv::DtEllipseVisualizer.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |