16 #include <osg/MatrixTransform>
17 #include <osg/Drawable>
18 #include <osg/Material>
35 virtual void setDimensions(
float x,
float y,
float z);
38 void dimensions(
float& length,
float& width,
float& height );
41 virtual void setColor(
float r,
float g,
float b,
float a);
44 const osg::Vec4& color()
const;
47 virtual void setLightingEnabled(
bool enabled );
57 virtual void setContributesToBound(
bool trueOrFalse);
62 virtual void updateColors();
65 virtual void updateTransform();
68 void createBlendedGeodes();
71 void createOpaqueGeode();
74 void createSingleSidedBlendedGeode();
108 static void registerCreator(
DtDe& de);
The base class for all model instances.
Definition: DtModelInstance.h:39
osg::ref_ptr< osg::Drawable > myCubeDrawable
Definition: DtCubeModelInstance.h:84
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
osg::ref_ptr< osg::MatrixTransform > myTransform
My tranform.
Definition: DtCubeModelInstance.h:94
osg::ref_ptr< osg::Material > myMaterial
My Material.
Definition: DtCubeModelInstance.h:96
bool mySingleSided
Definition: DtCubeModelInstance.h:98
float myHeight
Definition: DtCubeModelInstance.h:81
A model definition Interaction any number of named parameters, and also can be used to store cached d...
Definition: DtModelDefinition.h:33
Contains makVrv::DtOsgModelInstance class.
Model instance to draw a cuboid.
Definition: DtCubeModelInstance.h:24
The base class for simple OSG based model instances.
Definition: DtOsgModelInstance.h:72
virtual void setVisible(bool isVisible)
no-op
Definition: DtCubeModelInstance.h:54
The polymorphic creator for the DtModelInstance.
Definition: DtModelInstance.h:148
osg::ref_ptr< osg::Geode > myBlendedGeode
Geode to draw the geometry when single-sided blending is required.
Definition: DtCubeModelInstance.h:88
osg::Vec4 myColor
Definition: DtCubeModelInstance.h:82
float myLength
The current parameter set.
Definition: DtCubeModelInstance.h:79
osg::ref_ptr< osg::Geode > myGeode
Geode to draw the geometry when no blending is required.
Definition: DtCubeModelInstance.h:86
float myWidth
Definition: DtCubeModelInstance.h:80
A Creator for the makVrv::DtAttachableCuboidModelInstance class.
Definition: DtCubeModelInstance.h:103
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
osg::ref_ptr< osg::Geode > myFrontGeode
Geode to draw the geometry with backface culling.
Definition: DtCubeModelInstance.h:90
osg::ref_ptr< osg::Geode > myBackGeode
Geode to draw the geometry with frontface culling.
Definition: DtCubeModelInstance.h:92