14 #include <osg/MatrixTransform>
15 #include <osg/Geometry>
64 virtual void setRelativePosition(
double x,
double y,
double z );
71 virtual void setOrientation(
double yaw,
double pitch,
double roll );
78 virtual void setDimensions(
double x,
double y,
double z );
86 virtual void setColor(
float r,
float g,
float b,
float a );
96 virtual void setInsideColor(
float r,
float g,
float b,
float a );
104 virtual void setOutsideColor(
float r,
float g,
float b,
float a );
110 virtual void setAzimuthRange(
float azimuthCenter,
float azimuthSweep );
116 virtual void setElevationRange(
float elevationCenter,
float elevationSweep );
122 virtual void setMaxAngleSegment(
float angleSegmentMax );
128 virtual void setShowLines(
bool showLines );
134 virtual void setLinesHaveAlpha(
bool lineAlpha );
143 virtual void updateGeometry();
154 virtual void updateGeometryColors();
159 virtual void updateGeometryWireframeState();
165 virtual void updateGeometryTransforms();
183 SphericalVertex(
double _inclination,
double _azimuth,
double _radius );
200 osg::Vec3 toCartesian()
const;
224 VertexCache( osg::Vec3Array* vertices, osg::Vec3Array* normals );
295 double angularDistance(
double from,
double to );
309 set( _center, _sweep );
313 inline void set(
float _center,
float _sweep )
397 static void registerCreator(
DtDe& de );
The base class for all model instances.
Definition: DtModelInstance.h:39
osg::ref_ptr< osg::Geode > myFrontGeode
The front facing geometry geode.
Definition: DtAttachableEllipsoidArcModelInstance.h:341
osg::ref_ptr< osg::Group > myWireNode
The wireframe node for the geometry.
Definition: DtAttachableEllipsoidArcModelInstance.h:335
Caches the cartesian version of spherical vertices and their normals into the specified arrays...
Definition: DtAttachableEllipsoidArcModelInstance.h:215
virtual void setVisible(bool isVisible)
no-op
Definition: DtAttachableEllipsoidArcModelInstance.h:52
A Creator for the DtAttachableEllipsoidArcModelInstance class.
Definition: DtAttachableEllipsoidArcModelInstance.h:386
osg::Vec3Array * myVertices
The osg vertex array to update.
Definition: DtAttachableEllipsoidArcModelInstance.h:242
float myAngleSegmentMax
The max angle used to sample the emitter volume (in degrees)
Definition: DtAttachableEllipsoidArcModelInstance.h:376
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
Structure to hold triangles in spherical coordinates while building the geometry. ...
Definition: DtAttachableEllipsoidArcModelInstance.h:275
EllipsoidArcRange(float _center, float _sweep)
Setter CTOR.
Definition: DtAttachableEllipsoidArcModelInstance.h:307
float center
Definition: DtAttachableEllipsoidArcModelInstance.h:319
osg::ref_ptr< osg::MatrixTransform > myTransform
The offset and scale transform.
Definition: DtAttachableEllipsoidArcModelInstance.h:329
osg::Vec4 myInsideColor
Color at the center of the sphere.
Definition: DtAttachableEllipsoidArcModelInstance.h:364
bool myLineAlphaFlag
Whether the outline lines have alpha or not.
Definition: DtAttachableEllipsoidArcModelInstance.h:373
SphericalVertex bottomRight
Definition: DtAttachableEllipsoidArcModelInstance.h:269
SphericalVertex v2
Definition: DtAttachableEllipsoidArcModelInstance.h:285
SphericalVertex topLeft
Definition: DtAttachableEllipsoidArcModelInstance.h:266
osg::Vec3Array * myNormals
The osg normal array to update.
Definition: DtAttachableEllipsoidArcModelInstance.h:245
double myRadius
The vertex's representative radius.
Definition: DtAttachableEllipsoidArcModelInstance.h:209
osg::Vec3d myDimensions
Axis dimensions.
Definition: DtAttachableEllipsoidArcModelInstance.h:355
Simple struct for storing an arc range (center/sweep)
Definition: DtAttachableEllipsoidArcModelInstance.h:298
A model definition Interaction any number of named parameters, and also can be used to store cached d...
Definition: DtModelDefinition.h:33
EllipsoidArcRange myElevationRange
Elevation range (center/sweep)
Definition: DtAttachableEllipsoidArcModelInstance.h:361
Contains makVrv::DtOsgModelInstance class.
DtOsgSceneConnector is used by models to create an OSG position/orientation transform so that it can ...
Definition: DtOsgSceneConnector.h:76
double myAzimuth
The vertex's representative azimuth.
Definition: DtAttachableEllipsoidArcModelInstance.h:206
osg::Quat myRelativeOrientation
Relative orientation.
Definition: DtAttachableEllipsoidArcModelInstance.h:352
SphericalVertex v1
Definition: DtAttachableEllipsoidArcModelInstance.h:284
bool myShowLines
Whether or not to display the emitter volume outline lines.
Definition: DtAttachableEllipsoidArcModelInstance.h:370
SphericalVertex bottomLeft
Definition: DtAttachableEllipsoidArcModelInstance.h:268
The base class for simple OSG based model instances.
Definition: DtOsgModelInstance.h:72
Structure to hold a quad in spherical coordinates during geometry construction.
Definition: DtAttachableEllipsoidArcModelInstance.h:254
void set(float _center, float _sweep)
Sets the center and sweep on this range.
Definition: DtAttachableEllipsoidArcModelInstance.h:313
std::map< SphericalVertex, int > SphericalToIndexMap
Map type for mapping SphericalVertex's to their indices.
Definition: DtAttachableEllipsoidArcModelInstance.h:236
The polymorphic creator for the DtModelInstance.
Definition: DtModelInstance.h:148
double myInclination
The vertex's representative inclination.
Definition: DtAttachableEllipsoidArcModelInstance.h:203
osg::Vec4 myOutsideColor
Color on the external points of the sphere.
Definition: DtAttachableEllipsoidArcModelInstance.h:367
float sweep
Definition: DtAttachableEllipsoidArcModelInstance.h:320
EllipsoidArcRange()
Default CTOR.
Definition: DtAttachableEllipsoidArcModelInstance.h:301
Model instance to draw a EllipsoidArc.
Definition: DtAttachableEllipsoidArcModelInstance.h:22
EllipsoidArcRange myAzimuthRange
Azimuth range (center/sweep)
Definition: DtAttachableEllipsoidArcModelInstance.h:358
osg::ref_ptr< osg::Group > myBlendNode
The blending node for the geometry.
Definition: DtAttachableEllipsoidArcModelInstance.h:332
int myCenterVertexIndex
Definition: DtAttachableEllipsoidArcModelInstance.h:346
int myNextIndex
The index of the next inserted vertex.
Definition: DtAttachableEllipsoidArcModelInstance.h:248
osg::ref_ptr< osg::Geometry > myGeometry
The model instance's geometry.
Definition: DtAttachableEllipsoidArcModelInstance.h:338
bool myFlashing
Like HTML blink.
Definition: DtAttachableEllipsoidArcModelInstance.h:379
SphericalVertex topRight
Definition: DtAttachableEllipsoidArcModelInstance.h:267
Structure to hold a vertex in spherical coordinates during geometry construction. ...
Definition: DtAttachableEllipsoidArcModelInstance.h:176
osg::ref_ptr< osg::Geode > myBackGeode
The back facing geometry geode.
Definition: DtAttachableEllipsoidArcModelInstance.h:344
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
SphericalToIndexMap mySphericalToIndexMap
Stores the indices of the vertices in the vertex array.
Definition: DtAttachableEllipsoidArcModelInstance.h:239
osg::Vec3d myRelativePosition
Relative position offset.
Definition: DtAttachableEllipsoidArcModelInstance.h:349
SphericalVertex v3
Definition: DtAttachableEllipsoidArcModelInstance.h:286