OpenCOVER
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
22namespace vrui
23{
24
25class OSGVRUIEXPORT OSGVruiTransformNode : public virtual OSGVruiNode, public virtual vruiTransformNode
26{
27
28public:
29 OSGVruiTransformNode(osg::MatrixTransform *node);
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
40 virtual void setMatrix(vruiMatrix *matrix);
41
42protected:
43 osg::ref_ptr<osg::MatrixTransform> transform;
44
46};
47}
48#endif
collaborative interface manager
Definition: coVRCommunication.h:41
Definition: vruiMatrix.h:20
Definition: vruiTransformNode.h:18
Definition: OSGVruiMatrix.h:19
Definition: OSGVruiNode.h:21
Definition: OSGVruiTransformNode.h:26
OSGVruiMatrix matrix
Definition: OSGVruiTransformNode.h:45
osg::ref_ptr< osg::MatrixTransform > transform
Definition: OSGVruiTransformNode.h:43
virtual void setScale(float scaleX, float scaleY, float scaleZ)
virtual void setTranslation(float x, float y, float z)
virtual void setScale(float scale)
OSGVruiTransformNode(osg::MatrixTransform *node)
virtual void setRotation(float x, float y, float z, float angle)
virtual vruiMatrix * getMatrix()
virtual void setMatrix(vruiMatrix *matrix)