17 #include <osg/MatrixTransform>
18 #include <osg/Drawable>
19 #include <osg/Material>
36 virtual void setDimensions(
float length,
float width,
float height);
39 virtual void dimensions(
float& length,
float& width,
float& height);
42 virtual void setColor(
float r,
float g,
float b,
float a);
45 virtual void setColor(
const osg::Vec4& color);
48 const osg::Vec4& color()
const;
51 virtual void setLightingEnabled(
bool enabled );
63 virtual void updateColors();
66 virtual void updateTransform();
69 void createBlendedGeodes();
72 void createOpaqueGeode();
75 void createSingleSidedBlendedGeode();
112 static void registerInstance(
DtDe& de,
Virtual base class.
Definition: DtVirtualBaseClass.h:22
osg::Vec4 myColor
Definition: DtCylinderModelInstance.h:81
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
osg::ref_ptr< osg::Geode > myBlendedGeode
Geode to draw the geometry when single-sided blending is required.
Definition: DtCylinderModelInstance.h:87
bool mySingleSided
Definition: DtCylinderModelInstance.h:98
A model definition Interaction any number of named parameters, and also can be used to store cached d...
Definition: DtModelDefinition.h:33
virtual void setVisible(bool isVisible)
no-op
Definition: DtCylinderModelInstance.h:58
Contains makVrv::DtOsgModelInstance class.
osg::Vec3 myDimensions
The current parameter set.
Definition: DtCylinderModelInstance.h:80
The base class for simple OSG based model instances.
Definition: DtOsgModelInstance.h:72
osg::ref_ptr< osg::MatrixTransform > myTransform
My tranform.
Definition: DtCylinderModelInstance.h:94
osg::ref_ptr< osg::Geode > myFrontGeode
Geode to draw the geometry with backface culling.
Definition: DtCylinderModelInstance.h:90
The model instance to draw a cylinder.
Definition: DtCylinderModelInstance.h:25
Contains DLL export macros.
osg::ref_ptr< osg::Drawable > myCylinderDrawable
Definition: DtCylinderModelInstance.h:83
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: DtCylinderModelInstance.h:92
osg::ref_ptr< osg::Material > myMaterial
My Material.
Definition: DtCylinderModelInstance.h:96
A Creator for the makVrv::DtCylinderModelInstance class.
Definition: DtCylinderModelInstance.h:103
osg::ref_ptr< osg::Geode > myGeode
Geode to draw the geometry when no blending is required.
Definition: DtCylinderModelInstance.h:85