VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtArticulatingCylinderModelInstance.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2009 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtArticulatingCylinderModelInstance.h,v $ $Revision: 1.0 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #ifndef DtArticulatingCylinderModelInstance_H_
14 #define DtArticulatingCylinderModelInstance_H_
15 
16 #include <vrvOsg/vrvOsg.h>
18 
19 #include <osg/Geode>
20 #include <osg/MatrixTransform>
21 #include <osg/ShapeDrawable>
22 
23 namespace makVrv
24 {
28  : public DtOsgModelInstance
29  {
30  public:
31 
33  {
34  float xLength; // x dimension
35  float yLength; // y dimension
36  float zLength; // z dimension
37  float rColor; // RGBA red value
38  float gColor; // RGBA green value
39  float bColor; // RGBA blue value
40  float aColor; // RGBA alpha value
41  bool flashing; // Like HTML blink
42  };
43 
46 
49 
52 
54  virtual void setDimensions(double x, double y, double z);
55 
57  virtual void setColor(float r,float g,float b,float a);
58 
60  virtual void setLightingEnabled( bool enabled );
61 
64  virtual bool realize(DtModelDefinition& definition);
65 
67  virtual void addToConnector( DtOsgSceneConnector* connector );
68 
70  virtual bool removeFromConnector( DtOsgSceneConnector* connector );
71 
73  virtual void setVisible(bool isVisible) {}
74 
75  protected:
76 
78  virtual void buildGeometry(const AttachedCylinderParameters& parameters);
79 
81  virtual void buildState(const AttachedCylinderParameters& parameters);
82 
85 
87 
90 
93 
95  };
96 }
97 
98 #endif
99 
float yLength
Definition: DtArticulatingCylinderModelInstance.h:35
osg::ref_ptr< osg::ShapeDrawable > myCylinderDrawable
Definition: DtArticulatingCylinderModelInstance.h:86
osg::ref_ptr< osg::MatrixTransform > myTransform
Definition: DtArticulatingCylinderModelInstance.h:94
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
Definition: DtArticulatingCylinderModelInstance.h:32
float xLength
Definition: DtArticulatingCylinderModelInstance.h:34
float zLength
Definition: DtArticulatingCylinderModelInstance.h:36
A model definition Interaction any number of named parameters, and also can be used to store cached d...
Definition: DtModelDefinition.h:33
Model instance to draw a cuboid.
Definition: DtArticulatingCylinderModelInstance.h:27
Contains makVrv::DtOsgModelInstance class.
DtOsgSceneConnector is used by models to create an OSG position/orientation transform so that it can ...
Definition: DtOsgSceneConnector.h:76
bool flashing
Definition: DtArticulatingCylinderModelInstance.h:41
float aColor
Definition: DtArticulatingCylinderModelInstance.h:40
The base class for simple OSG based model instances.
Definition: DtOsgModelInstance.h:72
float bColor
Definition: DtArticulatingCylinderModelInstance.h:39
float rColor
Definition: DtArticulatingCylinderModelInstance.h:37
osg::ref_ptr< osg::Geode > myBackGeode
Geode to draw the geometry with frontface culling.
Definition: DtArticulatingCylinderModelInstance.h:92
AttachedCylinderParameters myParameters
The current parameter set.
Definition: DtArticulatingCylinderModelInstance.h:84
Contains DLL export macros.
osg::ref_ptr< osg::Geode > myFrontGeode
Geode to draw the geometry with backface culling.
Definition: DtArticulatingCylinderModelInstance.h:89
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
float gColor
Definition: DtArticulatingCylinderModelInstance.h:38
virtual void setVisible(bool isVisible)
no-op
Definition: DtArticulatingCylinderModelInstance.h:73
static const AttachedCylinderParameters defaultParameters
Default values for the cuboid parameters.
Definition: DtArticulatingCylinderModelInstance.h:45

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)