![]() |
VR-Forces 4.6 Class Documentation
|
Model instance to draw a EllipsoidArc. More...

Classes | |
| struct | EllipsoidArcRange |
| Simple struct for storing an arc range (center/sweep) More... | |
| struct | SphericalQuad |
| Structure to hold a quad in spherical coordinates during geometry construction. More... | |
| struct | SphericalVertex |
| Structure to hold a vertex in spherical coordinates during geometry construction. More... | |
| struct | Triangle |
| Structure to hold triangles in spherical coordinates while building the geometry. More... | |
| struct | VertexCache |
| Caches the cartesian version of spherical vertices and their normals into the specified arrays. More... | |
Public Member Functions | |
| virtual void | updateGeometry () |
| Builds the geometry using the defined parameters in myParameters Updates the vertices and faces used to render the ellipsoid arc model then updates the geometry's colors. | |
Inherited Methods | |
| DtAttachableEllipsoidArcModelInstance (DtDe &de) | |
| CTOR Instantiates a new DtAttachableEllipsoidArcModelInstance. | |
| virtual | ~DtAttachableEllipsoidArcModelInstance () |
| Virtual DTOR (no-op) (OSG manages created scene objects) | |
| virtual void | addToConnector (DtOsgSceneConnector *connector) |
| Tell the model instance to add itself to the provided node. | |
| virtual bool | removeFromConnector (DtOsgSceneConnector *connector) |
| Tell the model instance to remove itself from the provided node. | |
| virtual bool | realize (DtModelDefinition &definition) |
| Attempt to realize a definition. | |
| virtual void | setVisible (bool isVisible) |
| no-op | |
Setters | |
| virtual void | setRelativePosition (double x, double y, double z) |
| Set the relative position of the ellipsoid Sets the position of the model instance relative to the parent node. | |
| virtual void | setOrientation (double yaw, double pitch, double roll) |
| Set the relative orientation of the ellipsoid Sets the orientation of the model instance relative to the parent node. | |
| virtual void | setDimensions (double x, double y, double z) |
| Set the lengths of the ellipsoid's axes Sets the length of the ellipsoid's axes. | |
| virtual void | setColor (float r, float g, float b, float a) |
| Sets both the inside and outside colors Sets the color of the entire ellipsoid arc. | |
| virtual void | setInsideColor (float r, float g, float b, float a) |
| Sets the color of the center point of the sphere Sets the inner color of the ellipsoid arc Note: This color is not visible if the ellipsoid is a full ellipse (as there is no center vertex) | |
| virtual void | setOutsideColor (float r, float g, float b, float a) |
| Sets the color of the outer points on the sphere Sets the outer color of the ellipsoid arc. | |
| virtual void | setAzimuthRange (float azimuthCenter, float azimuthSweep) |
| Set the azimuth range of the ellipsoid arc Sets the ellipsoid arc's azimuth range. | |
| virtual void | setElevationRange (float elevationCenter, float elevationSweep) |
| Set the elevation range of the ellipsoid arc Sets the ellipsoid arc's elevation range. | |
| virtual void | setMaxAngleSegment (float angleSegmentMax) |
| Set the max angle segment used when building the geometry Sets the max angle segment between sample points along the azimuth/elevation when generating the geometry. | |
| virtual void | setShowLines (bool showLines) |
| Set whether the wireframe outlines are visible on the geometry Sets whether the wireframe lines for the ellipsoid arc should be drawn If set, the wireframe lines are drawn in addition to the geometry faces. | |
| virtual void | setLinesHaveAlpha (bool lineAlpha) |
| Set whether the wireframe outlines should be rendered with alpha Sets whether the alpha component of the ellipsoid's colors should apply to the wireframe outlines as well as the faces, or just to the faces. | |
Public Member Functions inherited from makVrv::DtOsgModelInstance | |
| virtual | ~DtOsgModelInstance () |
| DTOR. | |
| virtual bool | saveModelToFile (const std::string &filename) const |
| Attempt to save the model to a file. | |
| virtual void | enableColorBlending (bool b) |
| Enable / disable coloring on all models in the scene object Note about enableColorBlending: If this particular model has instancing enabled then this flag is set to false and color blending is handled by the instance manager. | |
| virtual void | setBlendColor (float r, float g, float b, float a) |
| set the model's color | |
| virtual void | enableTexture (bool onOff) |
| virtual osg::Node * | rootNode () |
| Get the model instance's root node. | |
| virtual const osg::Node * | rootNode () const |
| virtual osg::Node * | sensorNode () |
| Get the model instance's sensor node, . | |
| virtual const osg::Node * | sensorNode () const |
| virtual void | addDynamicSensorRegion (const std::string ®ion) |
| Add an active region state. | |
| virtual void | setDynamicSensorRegion (const std::string ®ion, bool state) |
| Set the state of an active region. | |
| virtual bool | dynamicSensorRegion (const std::string ®ion) |
| Get the current state of the specified sensor region. | |
| SensorRegionStateMap const | dynamicSensorRegionMap () const |
| Get the map containing all regions and their current states. | |
| virtual void | slot_atcGlobalModelEnableChanged () |
| Slot to handle the global alpha to coverage signal for entities. | |
| virtual bool | alphaToCoverageEnabled () |
| Get the current setting for alpha to coverage for this model. | |
| virtual void | registerLightPoints (const std::string &groupName, bool daylightControlledLights) |
| loop over all this models light points and register them with the light point manager daylightControlled is only used if the light points do not already have a type specified | |
Public Member Functions inherited from makVrv::DtModelInstance | |
| DtModelInstance (DtDe &de) | |
| CTOR. | |
| virtual | ~DtModelInstance () |
| DTOR. | |
| const std::string & | realizedDefinitionName () const |
| Get the name of the definition that this model instance was realized with. | |
| const DtVector & | boundingBoxExtents () const |
| Get the bounding box extents of the model instance. | |
| void | getBoundingBoxExtents (double &x, double &y, double &z) const |
| Get the bounding box extents of the model instance. | |
| const DtVector & | boundingBoxCenter () const |
| Get the bounding box center of the model instance. | |
| void | getBoundingBoxCenter (double &x, double &y, double &z) const |
| Get the bounding box center of the model instance. | |
| void | getBoundingBoxComponents (DtVector &minimum, DtVector &maximum) |
| virtual void | setContributesToBound (bool trueOrFalse) |
| Set whether this model instance contributes to an object's overall bounding volume. | |
| bool | contributesToBound () const |
| Get whether this model instance contributes to an object's overall bounding volume. | |
Protected Member Functions | |
Updaters | |
| virtual void | updateGeometryColors () |
| Updates the color(s) of the sphere Updates the colors of the vertices on the ellipsoid arc model's geometry Called if any of the following methods are called: | |
| virtual void | updateGeometryWireframeState () |
| Updates the state of the geometry's wireframe Updates the visibility / alpha state of the geometry's wireframe Called if any of the following methods are called: | |
| virtual void | updateGeometryTransforms () |
| Updates the scaling and location applied to the sphere Updates the scaling applied to the model (the ellipsoid arc model's dimensions) Called if any of the following methods are called: | |
Vertex Utilities | |
| double | angularDistance (double from, double to) |
| Computes the distance between two angles Computes the angle between two reference angles Counts in the clockwise direction. | |
Protected Member Functions inherited from makVrv::DtOsgModelInstance | |
| virtual void | updateColorBlending () |
| calls update color blending with the model root. | |
| virtual void | updateColorBlending (osg::Node *node) |
| virtual void | enableTexture (osg::Node *root, bool onOff) |
| virtual void | updateBoundingBoxViaContents () |
| DtOsgModelInstance (DtDe &de) | |
| CTOR. | |
| virtual void | setRootNode (osg::Node *node) |
| Set the model instance's root node. | |
Protected Attributes | |
| osg::ref_ptr < osg::MatrixTransform > | myTransform |
| The offset and scale transform. | |
| osg::ref_ptr< osg::Group > | myBlendNode |
| The blending node for the geometry. | |
| osg::ref_ptr< osg::Group > | myWireNode |
| The wireframe node for the geometry. | |
| osg::ref_ptr< osg::Geometry > | myGeometry |
| The model instance's geometry. | |
| osg::ref_ptr< osg::Geode > | myFrontGeode |
| The front facing geometry geode. | |
| osg::ref_ptr< osg::Geode > | myBackGeode |
| The back facing geometry geode. | |
| int | myCenterVertexIndex |
| osg::Vec3d | myRelativePosition |
| Relative position offset. | |
| osg::Quat | myRelativeOrientation |
| Relative orientation. | |
| osg::Vec3d | myDimensions |
| Axis dimensions. | |
| EllipsoidArcRange | myAzimuthRange |
| Azimuth range (center/sweep) | |
| EllipsoidArcRange | myElevationRange |
| Elevation range (center/sweep) | |
| osg::Vec4 | myInsideColor |
| Color at the center of the sphere. | |
| osg::Vec4 | myOutsideColor |
| Color on the external points of the sphere. | |
| bool | myShowLines |
| Whether or not to display the emitter volume outline lines. | |
| bool | myLineAlphaFlag |
| Whether the outline lines have alpha or not. | |
| float | myAngleSegmentMax |
| The max angle used to sample the emitter volume (in degrees) | |
| bool | myFlashing |
| Like HTML blink. | |
Protected Attributes inherited from makVrv::DtOsgModelInstance | |
| osg::ref_ptr< osg::Node > | myModelRoot |
| osg::ref_ptr< osg::StateSet > | myCachedState |
| SensorRegionStateMap | mySensorRegionMap |
| AlphaToCoverageState | myAlphaToCoverageState |
| DtSignalConnectionManager | myConnections |
| bool | myModelInstanceShaderSet |
| Has this model instance had a shader generated for it? Used for classes (ex. | |
Protected Attributes inherited from makVrv::DtModelInstance | |
| DtDe & | myDe |
| std::string | myRealizedModelDefinitionName |
| DtVector | myBoundingBoxCenter |
| DtVector | myBoundingBoxExtents |
| DtVector | myBoundingBoxMinimum |
| DtVector | myBoundingBoxMaximum |
| bool | myContributesToBound |
| bool | myColorBlendingEnabled |
| float | myBlendRed |
| float | myBlendBlue |
| float | myBlendGreen |
| float | myBlendAlpha |
Additional Inherited Members | |
Public Types inherited from makVrv::DtOsgModelInstance | |
| enum | AlphaToCoverageState { USE_GLOBAL, FORCE_OFF, FORCE_ON } |
| The possible states of a control point. More... | |
| typedef boost::unordered_map < std::string, bool > | SensorRegionStateMap |
| Dynamic Sensor Region methods. | |
Static Public Member Functions inherited from makVrv::DtOsgModelInstance | |
| static osg::Vec4 | readVec4 (const std::string ¶mName, const DtModelDefinition &definition) |
| static osg::Vec3 | readVec3 (const std::string ¶mName, const DtModelDefinition &definition) |
Public Attributes inherited from makVrv::DtOsgModelInstance | |
| boost::signal< void(const std::string &) > | signal_dynamicSensorRegionAdded |
| Signal raised when a dynamic sensor region is added. | |
| boost::signal< void(const std::string &, bool) > | signal_dynamicSensorRegionChanged |
| Signal raised when a dynamic sensor region's state changes. | |
| boost::signal< void(bool)> | signal_atcModeEnableChanged |
| Signal raised when alpha to coverage for this model is changed. | |
Public Attributes inherited from makVrv::DtModelInstance | |
| boost::signal< void(DtModelInstance *)> | signal_modelInstanceChanged |
Model instance to draw a EllipsoidArc.
| makVrv::DtAttachableEllipsoidArcModelInstance::DtAttachableEllipsoidArcModelInstance | ( | DtDe & | de | ) |
CTOR Instantiates a new DtAttachableEllipsoidArcModelInstance.
|
virtual |
Virtual DTOR (no-op) (OSG manages created scene objects)
|
virtual |
Tell the model instance to add itself to the provided node.
Reimplemented from makVrv::DtOsgModelInstance.
|
virtual |
Tell the model instance to remove itself from the provided node.
Reimplemented from makVrv::DtOsgModelInstance.
|
virtual |
Attempt to realize a definition.
Reimplemented from makVrv::DtOsgModelInstance.
|
inlinevirtual |
|
virtual |
Set the relative position of the ellipsoid Sets the position of the model instance relative to the parent node.
| x | the relative x translation |
| y | the relative y translation |
| z | the relative z translation |
|
virtual |
Set the relative orientation of the ellipsoid Sets the orientation of the model instance relative to the parent node.
| yaw | the yaw, -DtTaitBryan::psi() |
| pitch | the pitch, DtTaitBryan::theta() |
| roll | the roll, DtTaitBryan::phi() |
|
virtual |
Set the lengths of the ellipsoid's axes Sets the length of the ellipsoid's axes.
| x | the length of the ellipsoid's x axis |
| y | the length of the ellipsoid's y axis |
| z | the length of the ellipsoid's z axis |
|
virtual |
Sets both the inside and outside colors Sets the color of the entire ellipsoid arc.
| r | the red component of the color |
| g | the green component of the color |
| b | the blue component of the color |
| a | the alpha component of the color |
|
virtual |
Sets the color of the center point of the sphere Sets the inner color of the ellipsoid arc Note: This color is not visible if the ellipsoid is a full ellipse (as there is no center vertex)
| r | the red component of the color |
| g | the green component of the color |
| b | the blue component of the color |
| a | the alpha component of the color |
|
virtual |
Sets the color of the outer points on the sphere Sets the outer color of the ellipsoid arc.
| r | the red component of the color |
| g | the green component of the color |
| b | the blue component of the color |
| a | the alpha component of the color |
|
virtual |
Set the azimuth range of the ellipsoid arc Sets the ellipsoid arc's azimuth range.
| azimuthCenter | the angle of the center of the azimuth's range |
| azimuthSweep | the angle from the center to the ends of the azimuth range |
|
virtual |
Set the elevation range of the ellipsoid arc Sets the ellipsoid arc's elevation range.
| elevationCenter | the angle of the center of the elevation's range |
| elevationSweep | the angle from the center to the ends of the elevation range |
|
virtual |
Set the max angle segment used when building the geometry Sets the max angle segment between sample points along the azimuth/elevation when generating the geometry.
| angleSegmentMax | the max angle segment between sample points |
|
virtual |
Set whether the wireframe outlines are visible on the geometry Sets whether the wireframe lines for the ellipsoid arc should be drawn If set, the wireframe lines are drawn in addition to the geometry faces.
| showLines | whether the lines should be visible or hidden |
|
virtual |
Set whether the wireframe outlines should be rendered with alpha Sets whether the alpha component of the ellipsoid's colors should apply to the wireframe outlines as well as the faces, or just to the faces.
| whether | the lines should be affected by the color's alpha values. |
|
virtual |
Builds the geometry using the defined parameters in myParameters Updates the vertices and faces used to render the ellipsoid arc model then updates the geometry's colors.
Called if any of the following methods are called:
|
protectedvirtual |
Updates the color(s) of the sphere Updates the colors of the vertices on the ellipsoid arc model's geometry Called if any of the following methods are called:
|
protectedvirtual |
Updates the state of the geometry's wireframe Updates the visibility / alpha state of the geometry's wireframe Called if any of the following methods are called:
|
protectedvirtual |
Updates the scaling and location applied to the sphere Updates the scaling applied to the model (the ellipsoid arc model's dimensions) Called if any of the following methods are called:
|
protected |
Computes the distance between two angles Computes the angle between two reference angles Counts in the clockwise direction.
| from | the first reference angle |
| to | the second reference angle |
|
protected |
The offset and scale transform.
|
protected |
The blending node for the geometry.
|
protected |
The wireframe node for the geometry.
|
protected |
The model instance's geometry.
|
protected |
The front facing geometry geode.
|
protected |
The back facing geometry geode.
|
protected |
|
protected |
Relative position offset.
|
protected |
Relative orientation.
|
protected |
Axis dimensions.
|
protected |
Azimuth range (center/sweep)
|
protected |
Elevation range (center/sweep)
|
protected |
Color at the center of the sphere.
|
protected |
Color on the external points of the sphere.
|
protected |
Whether or not to display the emitter volume outline lines.
|
protected |
Whether the outline lines have alpha or not.
|
protected |
The max angle used to sample the emitter volume (in degrees)
|
protected |
Like HTML blink.