15 #include <osg/MatrixTransform>
16 #include <osg/Drawable>
17 #include <osg/Material>
47 virtual void setDimensions(
float x,
float y,
float z);
50 void dimensions(
float& length,
float& width,
float& height );
53 virtual void setColor(
float r,
float g,
float b,
float a);
56 const osg::Vec4& color()
const;
59 virtual void setLightingEnabled(
bool enabled );
70 virtual void setContributesToBound(
bool trueOrFalse);
75 virtual void updateColors();
78 virtual void updateTransform();
81 void createBlendedGeodes();
84 void createOpaqueGeode();
87 void createSingleSidedBlendedGeode();
121 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:97
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
osg::ref_ptr< osg::MatrixTransform > myTransform
My tranform.
Definition: DtCubeModelInstance.h:107
osg::ref_ptr< osg::Material > myMaterial
My Material.
Definition: DtCubeModelInstance.h:109
bool mySingleSided
Definition: DtCubeModelInstance.h:111
float myHeight
Definition: DtCubeModelInstance.h:94
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.
Model instance to draw a cuboid.
Definition: DtCubeModelInstance.h:23
The base class for simple OSG based model instances. This call can't be instantiated itself...
Definition: DtOsgModelInstance.h:77
virtual void setVisible(bool isVisible)
no-op
Definition: DtCubeModelInstance.h:67
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:101
osg::Vec4 myColor
Definition: DtCubeModelInstance.h:95
float myLength
The current parameter set.
Definition: DtCubeModelInstance.h:92
osg::ref_ptr< osg::Geode > myGeode
Geode to draw the geometry when no blending is required.
Definition: DtCubeModelInstance.h:99
float myWidth
Definition: DtCubeModelInstance.h:93
A Creator for the makVrv::DtAttachableCuboidModelInstance class.
Definition: DtCubeModelInstance.h:116
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:70
osg::ref_ptr< osg::Geode > myFrontGeode
Geode to draw the geometry with backface culling.
Definition: DtCubeModelInstance.h:103
osg::ref_ptr< osg::Geode > myBackGeode
Geode to draw the geometry with frontface culling.
Definition: DtCubeModelInstance.h:105