OpenCOVER
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
OSGVruiTransformNode.h
Go to the documentation of this file.
1 /* This file is part of COVISE.
2 
3  You can use it under the terms of the GNU Lesser General Public License
4  version 2.1 or later, see lgpl-2.1.txt.
5 
6  * License: LGPL 2+ */
7 
8 #ifndef OSGVRUI_TRANSFORMNODE_H
9 #define OSGVRUI_TRANSFORMNODE_H
10 
13 
15 
16 #include <osg/MatrixTransform>
17 
18 #ifdef _WIN32
19 #pragma warning(disable : 4250)
20 #endif
21 
22 namespace vrui
23 {
24 
25 class OSGVRUIEXPORT OSGVruiTransformNode : public virtual OSGVruiNode, public virtual vruiTransformNode
26 {
27 
28 public:
29  OSGVruiTransformNode(osg::MatrixTransform *node);
30  virtual ~OSGVruiTransformNode();
31 
32  virtual void setScale(float scale);
33  virtual void setScale(float scaleX, float scaleY, float scaleZ);
34 
35  virtual void setTranslation(float x, float y, float z);
36 
37  virtual void setRotation(float x, float y, float z, float angle);
38 
39  virtual vruiMatrix *getMatrix();
40  virtual void setMatrix(vruiMatrix *matrix);
41 
42 protected:
43  osg::ref_ptr<osg::MatrixTransform> transform;
44 
46 };
47 }
48 #endif
osg::ref_ptr< osg::MatrixTransform > transform
Definition: OSGVruiTransformNode.h:43
Definition: vruiTransformNode.h:17
Definition: vruiMatrix.h:19
Definition: OSGVruiTransformNode.h:25
Definition: OSGVruiNode.h:20
Definition: OSGVruiMatrix.h:18
OSGVruiMatrix matrix
Definition: OSGVruiTransformNode.h:45