14 #include <osg/MatrixTransform>
15 #include <osg/Geometry>
55 osg::Vec3 toCartesian()
const;
79 VertexCache(osg::Vec3Array* vertices, osg::Vec3Array* normals);
157 set(_center, _sweep);
161 inline void set(
float _center,
float _sweep)
228 virtual void setRelativePosition(
double x,
double y,
double z );
235 virtual void setOrientation(
double yaw,
double pitch,
double roll );
242 virtual void setDimensions(
double x,
double y,
double z );
250 virtual void setColor(
float r,
float g,
float b,
float a );
260 virtual void setInsideColor(
float r,
float g,
float b,
float a );
268 virtual void setOutsideColor(
float r,
float g,
float b,
float a );
274 virtual void setAzimuthRange(
float azimuthCenter,
float azimuthSweep );
280 virtual void setElevationRange(
float elevationCenter,
float elevationSweep );
286 virtual void setMaxAngleSegment(
float angleSegmentMax );
292 virtual void setShowLines(
bool showLines );
298 virtual void setLinesHaveAlpha(
bool lineAlpha );
307 virtual void updateGeometry();
318 virtual void updateGeometryColors();
323 virtual void updateGeometryWireframeState();
329 virtual void updateGeometryTransforms();
341 double angularDistance(
double from,
double to );
416 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:360
osg::ref_ptr< osg::Group > myWireNode
The wireframe node for the geometry.
Definition: DtAttachableEllipsoidArcModelInstance.h:354
Caches the cartesian version of spherical vertices and their normals into the specified arrays...
Definition: DtAttachableEllipsoidArcModelInstance.h:70
virtual void setVisible(bool isVisible)
no-op
Definition: DtAttachableEllipsoidArcModelInstance.h:216
A Creator for the DtAttachableEllipsoidArcModelInstance class.
Definition: DtAttachableEllipsoidArcModelInstance.h:405
osg::Vec3Array * myVertices
The osg vertex array to update.
Definition: DtAttachableEllipsoidArcModelInstance.h:97
float myAngleSegmentMax
The max angle used to sample the emitter volume (in degrees)
Definition: DtAttachableEllipsoidArcModelInstance.h:395
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
Structure to hold triangles in spherical coordinates while building the geometry. ...
Definition: DtAttachableEllipsoidArcModelInstance.h:130
EllipsoidArcRange(float _center, float _sweep)
Setter CTOR.
Definition: DtAttachableEllipsoidArcModelInstance.h:155
float center
Definition: DtAttachableEllipsoidArcModelInstance.h:167
osg::ref_ptr< osg::MatrixTransform > myTransform
The offset and scale transform.
Definition: DtAttachableEllipsoidArcModelInstance.h:348
osg::Vec4 myInsideColor
Color at the center of the sphere.
Definition: DtAttachableEllipsoidArcModelInstance.h:383
bool myLineAlphaFlag
Whether the outline lines have alpha or not.
Definition: DtAttachableEllipsoidArcModelInstance.h:392
SphericalVertex bottomRight
Definition: DtAttachableEllipsoidArcModelInstance.h:124
SphericalVertex v2
Definition: DtAttachableEllipsoidArcModelInstance.h:140
SphericalVertex topLeft
Definition: DtAttachableEllipsoidArcModelInstance.h:121
osg::Vec3Array * myNormals
The osg normal array to update.
Definition: DtAttachableEllipsoidArcModelInstance.h:100
double myRadius
The vertex's representative radius.
Definition: DtAttachableEllipsoidArcModelInstance.h:64
osg::Vec3d myDimensions
Axis dimensions.
Definition: DtAttachableEllipsoidArcModelInstance.h:374
Simple struct for storing an arc range (center/sweep)
Definition: DtAttachableEllipsoidArcModelInstance.h:146
A model definition Interaction any number of named parameters, and also can be used to store cached d...
Definition: DtModelDefinition.h:38
EllipsoidArcRange myElevationRange
Elevation range (center/sweep)
Definition: DtAttachableEllipsoidArcModelInstance.h:380
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:61
osg::Quat myRelativeOrientation
Relative orientation.
Definition: DtAttachableEllipsoidArcModelInstance.h:371
SphericalVertex v1
Definition: DtAttachableEllipsoidArcModelInstance.h:139
bool myShowLines
Whether or not to display the emitter volume outline lines.
Definition: DtAttachableEllipsoidArcModelInstance.h:389
SphericalVertex bottomLeft
Definition: DtAttachableEllipsoidArcModelInstance.h:123
The base class for simple OSG based model instances.
Definition: DtOsgModelInstance.h:76
Structure to hold a quad in spherical coordinates during geometry construction.
Definition: DtAttachableEllipsoidArcModelInstance.h:109
void set(float _center, float _sweep)
Sets the center and sweep on this range.
Definition: DtAttachableEllipsoidArcModelInstance.h:161
std::map< SphericalVertex, int > SphericalToIndexMap
Map type for mapping SphericalVertex's to their indices.
Definition: DtAttachableEllipsoidArcModelInstance.h:91
The polymorphic creator for the DtModelInstance.
Definition: DtModelInstance.h:148
double myInclination
The vertex's representative inclination.
Definition: DtAttachableEllipsoidArcModelInstance.h:58
osg::Vec4 myOutsideColor
Color on the external points of the sphere.
Definition: DtAttachableEllipsoidArcModelInstance.h:386
float sweep
Definition: DtAttachableEllipsoidArcModelInstance.h:168
EllipsoidArcRange()
Default CTOR.
Definition: DtAttachableEllipsoidArcModelInstance.h:149
Model instance to draw a EllipsoidArc.
Definition: DtAttachableEllipsoidArcModelInstance.h:22
EllipsoidArcRange myAzimuthRange
Azimuth range (center/sweep)
Definition: DtAttachableEllipsoidArcModelInstance.h:377
osg::ref_ptr< osg::Group > myBlendNode
The blending node for the geometry.
Definition: DtAttachableEllipsoidArcModelInstance.h:351
int myCenterVertexIndex
Definition: DtAttachableEllipsoidArcModelInstance.h:365
int myNextIndex
The index of the next inserted vertex.
Definition: DtAttachableEllipsoidArcModelInstance.h:103
osg::ref_ptr< osg::Geometry > myGeometry
The model instance's geometry.
Definition: DtAttachableEllipsoidArcModelInstance.h:357
bool myFlashing
Like HTML blink.
Definition: DtAttachableEllipsoidArcModelInstance.h:398
SphericalVertex topRight
Definition: DtAttachableEllipsoidArcModelInstance.h:122
Structure to hold a vertex in spherical coordinates during geometry construction. ...
Definition: DtAttachableEllipsoidArcModelInstance.h:31
osg::ref_ptr< osg::Geode > myBackGeode
The back facing geometry geode.
Definition: DtAttachableEllipsoidArcModelInstance.h:363
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:94
osg::Vec3d myRelativePosition
Relative position offset.
Definition: DtAttachableEllipsoidArcModelInstance.h:368
SphericalVertex v3
Definition: DtAttachableEllipsoidArcModelInstance.h:141