![]() |
VR-Forces 5.0.1 Developer's Guide
|
vrvGraphics implementation of the Spider Web Model
A spider web is defined by: 1) An origin vertex, 2) a radius, 3) the number of spokes, and 4) the number of rings OR ring interval distance
A spider web has the following geometric parameters:
A spider web has the following style properties:
Special Considerations:

Public Member Functions | |
| DtSpiderWebModelInstance (DtDe &de) | |
| virtual | ~DtSpiderWebModelInstance () |
| virtual void | setOverlay (unsigned int overlayId) |
| virtual bool | realize (DtModelDefinition &definition) |
| virtual void | update () |
| virtual void | recreateSpiderWeb () |
| virtual void | setPosition (const DtVector &position) |
| virtual DtVector | position () const |
| virtual void | setOrientation (const DtTaitBryan &orientation) |
| virtual DtTaitBryan | orientation () const |
| virtual void | setMaxAngleSegment (double angleSegmentMax) |
| virtual double | maxAngleSegment () const |
| virtual void | setRadius (double x) |
| virtual double | radius () const |
| virtual void | setScale (float scale) |
| virtual float | scale () const |
| virtual void | setVisible (bool isVisible) |
| virtual bool | isVisible () const |
| virtual void | setNumberOfSpokes (unsigned int numSpokes) |
| virtual unsigned int | numberOfSpokes () const |
| virtual void | setNumberOfRings (unsigned int numRings) |
| virtual unsigned int | numberOfRings () const |
| virtual void | setIsInnerRingFilled (bool filled) |
| virtual bool | isInnerRingFilled () const |
| virtual void | setRingIntervalDistance (double interval) |
| virtual double | ringIntervalDistance () const |
| virtual void | setLineStipplePattern (unsigned int stipplePattern) |
| virtual unsigned int | lineStipplePattern () 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 | setOpacity (float opacity) |
| virtual float | opacity () const |
| virtual void | setEventsEnabled (bool enabled, unsigned long long userData) |
| virtual bool | eventsEnabled () const |
| virtual void | setGroup (int groupNum) |
| virtual int | group () const |
| virtual void | setIsDecorated (bool isDecorated) |
| virtual bool | isDecorated () const |
| virtual void | setFontFile (const std::string &fontFile) |
| virtual std::string | fontFile () const |
| virtual void | setFontPointSize (float pointSize) |
| virtual float | fontPointSize () const |
| virtual void | setFontColor (float r, float g, float b, float a) |
| virtual bool | getFontColor (float &r, float &g, float &b, float &a) const |
| virtual void | setDistanceUnit (DtSharedDisplayUnitsSettings::DistanceUnits unit) |
| virtual DtSharedDisplayUnitsSettings::DistanceUnits | distanceUnit () const |
| virtual void | setDistanceDecimals (unsigned int decimals) |
| virtual unsigned int | distanceDecimals () const |
| virtual void | setOrientationUnit (DtSharedDisplayUnitsSettings::OrientationUnits unit) |
| virtual DtSharedDisplayUnitsSettings::OrientationUnits | orientationUnit () const |
| virtual void | setOrientationDecimals (unsigned int decimals) |
| virtual unsigned int | orientationDecimals () const |
Public Member Functions inherited from makVrv::DtModelInstance | |
| DtModelInstance (DtDe &de) | |
| virtual | ~DtModelInstance () |
| virtual bool | cloneInstance (DtModelDefinition &definition) |
| const std::string & | realizedDefinitionName () const |
| virtual bool | saveModelToFile (const std::string &filename) 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 |
| virtual void | setBlendColor (float r, float g, float b, float a) |
| virtual void | enableColorBlending (bool b) |
Protected Member Functions | |
| virtual void | createSpiderWebIfNecessary () |
| virtual void | deleteSpiderWeb () |
| virtual void | updateColors () |
| virtual void | setSpokeVertexPosition (unsigned int spokeIndex, unsigned int vertexIndex, double x, double y, double z)=0 |
| virtual void | setRingVertexPosition (unsigned int ringIndex, unsigned int vertexIndex, double x, double y, double z)=0 |
| virtual void | setLabelPosition (unsigned int labelIndex, double x, double y, double z)=0 |
Additional Inherited Members | |
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) |
Public Attributes inherited from makVrv::DtModelInstance | |
| boost::signalslib::signal < void(DtModelInstance *)> | signal_modelInstanceChanged |
| makVrv::DtSpiderWebModelInstance::DtSpiderWebModelInstance | ( | DtDe & | de | ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Set/Get the global position of the spider web.
|
virtual |
Set/Get the global position of the spider web.
|
virtual |
Set the global orientation of the spider web.
|
virtual |
Set the global orientation of the spider web.
|
virtual |
Set/Get the max angle segment used when building the spider web Default value is PI / 18.
|
virtual |
Set/Get the max angle segment used when building the spider web Default value is PI / 18.
|
virtual |
Set/Get the radius (in meters) of the spider web Default value is 0.
|
virtual |
Set/Get the radius (in meters) of the spider web Default value is 0.
|
virtual |
Set/Get the spider web's scale factor Default value is 1.
|
virtual |
Set/Get the spider web's scale factor Default value is 1.
|
virtual |
Set/Get whether the spider web is visible Default value is true (visible)
Implements makVrv::DtModelInstance.
|
virtual |
Set/Get whether the spider web is visible Default value is true (visible)
Set/Get the number of spokes the spider web has Default value is 0.
Set/Get the number of spokes the spider web has Default value is 0.
Set/Get the number of rings the spider web has Default value is 0. Any prior call to setRingIntervalDistance(...) is ignored, the ring interval distance will be (radius / number_of_rings).
Set/Get the number of rings the spider web has Default value is 0. Any prior call to setRingIntervalDistance(...) is ignored, the ring interval distance will be (radius / number_of_rings).
|
virtual |
Set/Get whether the inner most ring of the spider web is filled Default is true.
|
virtual |
Set/Get whether the inner most ring of the spider web is filled Default is true.
|
virtual |
Set/Get the ring interval distance for the spider web (in meters) Default value is 0. Any prior call to setNumberOfRings(...) is ignored, the number of rings drawn will be (radius / ring_interval_distance).
|
virtual |
Set/Get the ring interval distance for the spider web (in meters) Default value is 0. Any prior call to setNumberOfRings(...) is ignored, the number of rings drawn will be (radius / ring_interval_distance).
|
virtual |
Set/Get the line stipple pattern of the spider web Default value is 0xFFFF.
Set/Get the line stipple pattern of the spider web Default value is 0xFFFF.
|
virtual |
Set/Get the line width of the spider web Default value is 1.
|
virtual |
Set/Get the line width of the spider web Default value is 1.
|
virtual |
Set/Get the color of the spider web Valid range for argument values are 0.0 - 1.0. Default value is (1, 1, 1, 1)
|
virtual |
Set/Get the color of the spider web Valid range for argument values are 0.0 - 1.0. Default value is (1, 1, 1, 1)
|
virtual |
Set/Get the opacity of the spider web Valid range for argument values are 0.0 - 1.0. Default value is 1.
|
virtual |
Set/Get the opacity of the spider web Valid range for argument values are 0.0 - 1.0. Default value is 1.
|
virtual |
Set/Get to handle or not handle mouse events Default value is false (events not enabled)
|
virtual |
Set/Get to handle or not handle mouse events Default value is false (events not enabled)
|
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. 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. Default value is 1.
|
virtual |
Set/Get whether or not this spider web is decorated. When a spider web is decorated, informative labels appear at each ring and spoke indicating the distance of the ring from the center and the angle of each spoke from North (True/Magnetic are supported). Default value is false.
|
virtual |
Set/Get whether or not this spider web is decorated. When a spider web is decorated, informative labels appear at each ring and spoke indicating the distance of the ring from the center and the angle of each spoke from North (True/Magnetic are supported). Default value is false.
|
virtual |
Set/Get the font file to use for the spider web. Default value is "FreeSans.otf".
|
virtual |
Set/Get the font file to use for the spider web. Default value is "FreeSans.otf".
|
virtual |
Set/Get the font point size for the spider web. Default value is 20.
|
virtual |
Set/Get the font point size for the spider web. Default value is 20.
|
virtual |
Set/Get the font color for the spider web. Default value is (1., 1., 1., 0.7).
|
virtual |
Set/Get the font color for the spider web. Default value is (1., 1., 1., 0.7).
|
virtual |
Set/Get the distance unit to use for the spider web. Default value is Nautical Miles.
|
virtual |
Set/Get the distance unit to use for the spider web. Default value is Nautical Miles.
Set/Get the number of decimals to use for distance for the spider web. Default value is 0.
Set/Get the number of decimals to use for distance for the spider web. Default value is 0.
|
virtual |
Set/Get the orientation unit to use for the spider web. Default value is Degrees.
|
virtual |
Set/Get the orientation unit to use for the spider web. Default value is Degrees.
|
virtual |
Set/Get the number of decimals to use for orientation values. Default value is 0.
Set/Get the number of decimals to use for orientation values. Default value is 0.
Set the overlay the model will be rendered on.
|
virtual |
Apply model definition defaults.
Reimplemented from makVrv::DtModelInstance.
|
virtual |
|
virtual |
Force the recreation of the spider web Akin to calling deleteSpiderWeb() and createSpiderWebIfNecessary()
|
protectedvirtual |
Create my spider web according to current state.
|
protectedvirtual |
Delete spider web.
|
protectedvirtual |
Update the vertex colors.
|
protectedpure virtual |
Set a vertex position of a spider web spoke.
Implemented in makVrv::DtOverlaySpiderWebModelInstance.
|
protectedpure virtual |
Set a vertex position of a spider web ring.
Implemented in makVrv::DtOverlaySpiderWebModelInstance.
|
protectedpure virtual |
Set the position of a spider web label.
Implemented in makVrv::DtOverlaySpiderWebModelInstance.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |