16 #include <osg/MatrixTransform>
17 #include <osg/Drawable>
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();
125 static void registerInstance(
DtDe& de,
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
osg::Vec4 myColor
Definition: DtCylinderModelInstance.h:94
#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:100
bool mySingleSided
Definition: DtCylinderModelInstance.h:111
A model definition Interaction any number of named parameters, and also can be used to store cached d...
Definition: DtModelDefinition.h:42
virtual void setVisible(bool isVisible)
no-op
Definition: DtCylinderModelInstance.h:71
Contains makVrv::DtOsgModelInstance class.
osg::Vec3 myDimensions
The current parameter set.
Definition: DtCylinderModelInstance.h:93
The base class for simple OSG based model instances. This call can't be instantiated itself...
Definition: DtOsgModelInstance.h:77
osg::ref_ptr< osg::MatrixTransform > myTransform
My tranform.
Definition: DtCylinderModelInstance.h:107
osg::ref_ptr< osg::Geode > myFrontGeode
Geode to draw the geometry with backface culling.
Definition: DtCylinderModelInstance.h:103
The model instance to draw a cylinder.
Definition: DtCylinderModelInstance.h:24
DT_DLL_VRVCORE double length(const makVrv::DtCoordinateSystem &, const std::vector< DtVector > &vertices)
Returns the total distance of a segmented line defined by the provided vector of vertices. Coordinates are in local database coordinates. The coordinate system is used to convert between the local database coordinates and geocentric. All distance is in 2D – the Z value is ignored.
Contains DLL export macros.
osg::ref_ptr< osg::Drawable > myCylinderDrawable
Definition: DtCylinderModelInstance.h:96
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:76
osg::ref_ptr< osg::Geode > myBackGeode
Geode to draw the geometry with frontface culling.
Definition: DtCylinderModelInstance.h:105
osg::ref_ptr< osg::Material > myMaterial
My Material.
Definition: DtCylinderModelInstance.h:109
A Creator for the makVrv::DtCylinderModelInstance class.
Definition: DtCylinderModelInstance.h:116
osg::ref_ptr< osg::Geode > myGeode
Geode to draw the geometry when no blending is required.
Definition: DtCylinderModelInstance.h:98