16 #include <osg/MatrixTransform>
17 #include <osg/ShapeDrawable>
18 #include <osg/Material>
48 virtual void setDimensions(
float length,
float width,
float height);
51 virtual void dimensions(
float& length,
float& width,
float& height);
54 virtual void setColor(
float r,
float g,
float b,
float a);
57 virtual void setColor(
const osg::Vec4& color);
60 const osg::Vec4& color()
const;
63 virtual void setLightingEnabled(
bool enabled );
76 virtual void updateColors();
79 virtual void updateTransform();
82 void createBlendedGeodes();
85 void createOpaqueGeode();
88 void createSingleSidedBlendedGeode();
120 static void registerCreator(
DtDe& de);
The base class for all model instances.
Definition: DtModelInstance.h:39
virtual void setVisible(bool isVisible)
no-op
Definition: DtEllipsoidModelInstance.h:71
osg::ref_ptr< osg::ShapeDrawable > myEllipsoidDrawable
Definition: DtEllipsoidModelInstance.h:96
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
osg::ref_ptr< osg::Geode > myGeode
Geode to draw the geometry when no blending is required.
Definition: DtEllipsoidModelInstance.h:98
A model definition Interaction any number of named parameters, and also can be used to store cached d...
Definition: DtModelDefinition.h:38
Contains makVrv::DtOsgModelInstance class.
osg::Vec4 myColor
Definition: DtEllipsoidModelInstance.h:94
The model instance to draw an ellipsoid.
Definition: DtEllipsoidModelInstance.h:24
The base class for simple OSG based model instances.
Definition: DtOsgModelInstance.h:76
The polymorphic creator for the DtModelInstance.
Definition: DtModelInstance.h:148
A Creator for the makVrv::DtEllipsoidModelInstance class.
Definition: DtEllipsoidModelInstance.h:115
osg::ref_ptr< osg::MatrixTransform > myTransform
My tranform.
Definition: DtEllipsoidModelInstance.h:106
osg::Vec3 myDimensions
The current parameter set.
Definition: DtEllipsoidModelInstance.h:93
osg::ref_ptr< osg::Geode > myBlendedGeode
Geode to draw the geometry when single-sided blending is required.
Definition: DtEllipsoidModelInstance.h:100
bool mySingleSided
Definition: DtEllipsoidModelInstance.h:110
osg::ref_ptr< osg::Material > myMaterial
My Material.
Definition: DtEllipsoidModelInstance.h:108
Contains DLL export macros.
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
osg::ref_ptr< osg::Geode > myBackGeode
Geode to draw the geometry with frontface culling.
Definition: DtEllipsoidModelInstance.h:104
osg::ref_ptr< osg::Geode > myFrontGeode
Geode to draw the geometry with backface culling.
Definition: DtEllipsoidModelInstance.h:102