1/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
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.
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.
15#ifndef OSGUTIL_TRANSFORMCALLBACK
16#define OSGUTIL_TRANSFORMCALLBACK 1
18#include <osg/Callback>
19#include <osgUtil/Export>
24/** TransformCallback is now deprecated, use osg::AnimationPathCallback instead.*/
25class OSGUTIL_EXPORT TransformCallback : public osg::NodeCallback
30 TransformCallback(const osg::Vec3& pivot,const osg::Vec3& axis,float angularVelocity);
32 void setPause(bool pause) { _pause = pause; }
34 /** implements the callback*/
35 virtual void operator()(osg::Node* node, osg::NodeVisitor* nv);
39 float _angular_velocity;
43 unsigned int _previousTraversalNumber;