openscenegraph
TransformCallback
Go to the documentation of this file.
1/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
2 *
3 * This library is open source and may be redistributed and/or modified under
4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
5 * (at your option) any later version. The full license is in LICENSE file
6 * included with this distribution, and on the openscenegraph.org website.
7 *
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * OpenSceneGraph Public License for more details.
12*/
13//C++ header
14
15#ifndef OSGUTIL_TRANSFORMCALLBACK
16#define OSGUTIL_TRANSFORMCALLBACK 1
17
18#include <osg/Callback>
19#include <osgUtil/Export>
20
21namespace osgUtil
22{
23
26{
27
28 public:
29
30 TransformCallback(const osg::Vec3& pivot,const osg::Vec3& axis,float angularVelocity);
31
32 void setPause(bool pause) { _pause = pause; }
33
35 virtual void operator()(osg::Node* node, osg::NodeVisitor* nv);
36
37 protected:
38
42
45 bool _pause;
46
47};
48
49}
50
51#endif
Definition TransformCallback:26
osg::Vec3 _pivot
Definition TransformCallback:40
virtual void operator()(osg::Node *node, osg::NodeVisitor *nv)
bool _pause
Definition TransformCallback:45
void setPause(bool pause)
Definition TransformCallback:32
osg::Vec3 _axis
Definition TransformCallback:41
double _previousTime
Definition TransformCallback:44
float _angular_velocity
Definition TransformCallback:39
TransformCallback(const osg::Vec3 &pivot, const osg::Vec3 &axis, float angularVelocity)
unsigned int _previousTraversalNumber
Definition TransformCallback:43
Definition Callback:215
Definition NodeVisitor:82
Definition Node:72
Definition Vec3f:29
Shader generator framework.
Definition NodeVisitor:25
#define OSGUTIL_EXPORT
Definition osgUtil/Export:40