![]() |
VR-Forces Developer's Guide
|
Interface for an Arc Model instance.
An arc with the following geometric parameters:
An arc with the following geometric parameters:
Special Considerations:

Public Member Functions | |
| DtArcModelInstance (DtDe &de) | |
| virtual | ~DtArcModelInstance () |
| virtual void | setOverlay (unsigned int overlayId) |
| virtual void | setPosition (int vtx, const DtVector &position) |
| virtual bool | realize (const DtModelDefinition &definition) |
| virtual void | update () |
| virtual void | setOrigin (const DtVector &position) |
| virtual DtVector | origin () const |
| virtual void | setOrientation (DtTaitBryan orientation) |
| virtual DtTaitBryan | orientation () const |
| virtual void | setDimensions (double x, double y) |
| virtual bool | getDimensions (double &x, double &y) const |
| virtual void | setScale (float scale) |
| virtual float | scale () const |
| virtual void | setVisible (bool isVisible) |
| virtual bool | isVisible () const |
| virtual void | setMaxAngleSegment (double angleSegmentMax) |
| virtual double | maxAngleSegment () const |
| virtual void | setStartAngle (double startAngle) |
| virtual double | startAngle () const |
| virtual void | setEndAngle (double endAngle) |
| virtual double | endAngle () const |
| virtual void | setStipplePattern (unsigned int stipplePattern) |
| virtual unsigned int | stipplePattern () const |
| virtual void | setLineWidth (float width) |
| virtual float | lineWidth () const |
| virtual void | setColor (float r, float g, float b, float a) |
| virtual bool | getColor (float &r, float &g, float &b, float &a) const |
| virtual void | setEventsEnabled (bool, unsigned long long userData) |
| virtual bool | eventsEnabled () const |
| virtual void | setGroup (int groupNum) |
| virtual int | group () const |
Public Member Functions inherited from makVrv::DtOsgModelInstance | |
| virtual | ~DtOsgModelInstance () |
| virtual bool | cloneInstance (const DtModelDefinition &definition) |
| virtual void | addToConnector (DtOsgSceneConnector *connector) |
| virtual bool | removeFromConnector (DtOsgSceneConnector *connector) |
| virtual bool | saveModelToFile (const std::string &filename) const |
| virtual void | enableColorBlending (bool b) |
| virtual void | setBlendColor (float r, float g, float b, float a) |
| virtual void | enableTexture (bool onOff) |
| virtual osg::Node * | rootNode () |
| virtual const osg::Node * | rootNode () const |
| virtual osg::Node * | sensorNode () |
| virtual const osg::Node * | sensorNode () const |
| virtual void | setDynamicSensorRegion (const std::string ®ion, bool state) |
| virtual bool | dynamicSensorRegion (const std::string ®ion) |
| virtual const SensorRegionStateMap & | dynamicSensorRegionMap () const |
| virtual void | slot_atcGlobalModelEnableChanged () |
| virtual bool | alphaToCoverageEnabled () |
Public Member Functions inherited from makVrv::DtModelInstance | |
| DtModelInstance (DtDe &de) | |
| virtual | ~DtModelInstance () |
| const std::string & | realizedDefinitionName () const |
| const DtVector & | boundingBoxExtents () const |
| void | getBoundingBoxExtents (double &x, double &y, double &z) const |
| const DtVector & | boundingBoxCenter () const |
| void | getBoundingBoxCenter (double &x, double &y, double &z) const |
| void | getBoundingBoxComponents (DtVector &minimum, DtVector &maximum) |
| const DtVector & | allGeometryboundingBoxExtents () const |
| void | getAllGeometryBoundingBoxExtents (double &x, double &y, double &z) const |
| const DtVector & | allGeometryboundingBoxCenter () const |
| void | getAllGeometryBoundingBoxCenter (double &x, double &y, double &z) const |
| void | getAllGeometryBoundingBoxComponents (DtVector &minimum, DtVector &maximum) |
| virtual void | setContributesToBound (bool trueOrFalse) |
| bool | contributesToBound () const |
Protected Member Functions | |
| virtual void | setArcVertex (unsigned int index, double x, double y, double z)=0 |
| virtual double | calculateHeight (const DtVector &heightVertex) const =0 |
| virtual void | createArcIfNecessary () |
| virtual void | deleteArc () |
| virtual void | updateColors () |
Protected Member Functions inherited from makVrv::DtOsgModelInstance | |
| DtOsgModelInstance (DtDe &de) | |
| virtual void | updateColorBlending () |
| virtual void | updateColorBlending (osg::Node *node) |
| virtual void | enableTexture (osg::Node *root, bool onOff) |
| virtual void | updateBoundingBoxViaContents () |
| virtual void | setRootNode (osg::Node *node) |
| virtual void | setUpDepthTest (osg::StateSet *stateSet) |
Private Member Functions | |
| DtArcModelInstance () | |
| DtArcModelInstance (const DtArcModelInstance &) | |
| DtArcModelInstance & | operator= (const DtArcModelInstance &) |
Additional Inherited Members | |
Public Types inherited from makVrv::DtOsgModelInstance | |
| enum | AlphaToCoverageState { USE_GLOBAL, FORCE_OFF, FORCE_ON } |
| typedef std::unordered_map < std::string, bool > | SensorRegionStateMap |
Static Public Member Functions inherited from makVrv::DtModelInstance | |
| static float | readFloat (const std::string ¶mName, const DtModelDefinition &definition) |
| static DtVector | readVector (const std::string ¶mName, const DtModelDefinition &definition) |
| static DtVector4< float > | readVector4 (const std::string ¶mName, const DtModelDefinition &definition) |
Public Attributes inherited from makVrv::DtOsgModelInstance | |
| boost::signalslib::signal < void(const std::string &) > | signal_dynamicSensorRegionAdded |
| boost::signalslib::signal < void(const std::string &, bool) > | signal_dynamicSensorRegionChanged |
| boost::signalslib::signal < void(bool)> | signal_atcModeEnableChanged |
Public Attributes inherited from makVrv::DtModelInstance | |
| boost::signalslib::signal < void(DtModelInstance *)> | signal_modelInstanceChanged |
| makVrv::DtArcModelInstance::DtArcModelInstance | ( | DtDe & | de | ) |
CTOR.
|
virtual |
DTOR.
|
private |
Default Constructor not implemented.
|
private |
Copy Constructor not implemented - Copy not allowed.
|
private |
Assignment Operator not implemented - Copy not allowed.
Set the overlay the model will be rendered on.
Set the position of a vertex in the arc When vtx is 0,.
When vtx is 1,
When vtx is 2,
|
virtual |
Set/Get the position of the arc's origin Akin to calling setPosition(0, position)
|
virtual |
Set/Get the position of the arc's origin Akin to calling setPosition(0, position)
|
virtual |
Set/Get the global orientation of the arc.
|
virtual |
Set/Get the global orientation of the arc.
Set/Get the axis lengths of the ellipse used to draw the arc The default values are (0, 0)
Set/Get the axis lengths of the ellipse used to draw the arc The default values are (0, 0)
|
virtual |
Set/Get the scale factor of the arc The default value is 1.
|
virtual |
Set/Get the scale factor of the arc The default value is 1.
|
virtual |
Set/Get whether the arc is visible The default is value is True (visible)
Implements makVrv::DtModelInstance.
|
virtual |
Set/Get whether the arc is visible The default is value is True (visible)
|
virtual |
Set/Get the max angle segment used when building the geometry The default value is (PI / 2) / 9.0.
|
virtual |
Set/Get the max angle segment used when building the geometry The default value is (PI / 2) / 9.0.
|
virtual |
Set/Get the start angle of the arc, in radians The default value is 0.
|
virtual |
Set/Get the start angle of the arc, in radians The default value is 0.
|
virtual |
Set/Get the end angle of the arc, in radians The default value is PI.
|
virtual |
Set/Get the end angle of the arc, in radians The default value is PI.
Set/Get the stipple line pattern of the arc The default value is 0xFFFF (solid line).
Set/Get the stipple line pattern of the arc The default value is 0xFFFF (solid line).
|
virtual |
Set/Get the line width of the arc Uses DtLineSegmentInterface::setWidth The default value is 1.0.
|
virtual |
Set/Get the line width of the arc Uses DtLineSegmentInterface::setWidth The default value is 1.0.
|
virtual |
Set/Get the color of the arc Valid range for argument values are 0.0 - 1.0. The default values are (0, 0, 0, 1)
|
virtual |
Set/Get the color of the arc Valid range for argument values are 0.0 - 1.0. The default values are (0, 0, 0, 1)
|
virtual |
Set/Get to handle or not handle mouse events The default value is False.
|
virtual |
Set/Get to handle or not handle mouse events The default value is False.
|
virtual |
Set/Get the group this overlay will be drawn in The higher the group number, the "closer" to the eyepoint this overlay will be drawn. Use this function to stack overlay objects in the particular order you want them displayed The default value is 1.
|
virtual |
Set/Get the group this overlay will be drawn in The higher the group number, the "closer" to the eyepoint this overlay will be drawn. Use this function to stack overlay objects in the particular order you want them displayed The default value is 1.
|
virtual |
Attempt to realize a definition. If the model instance can't realize the definition it should return false. This instance requires the definition be of schema "Line". This instance does not make use of the "DefaultStippleRepeat" parameter.
Reimplemented from makVrv::DtOsgModelInstance.
|
virtual |
|
protectedpure virtual |
Set a vertex in myArc.
|
protectedpure virtual |
Calculate the height of the arc given a height vertex This function requires at least 1 call to setPosition(1, SomeVector) and returns 0.0 otherwise.
|
protectedvirtual |
Create myArc according to current state.
|
protectedvirtual |
Delete myArc.
|
protectedvirtual |
Update the vertex colors.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |