Updated to slideshow3D to support animation + pausing of animation.

Updated associated osg/osgUtil classes that provide animation pausing.
This commit is contained in:
Robert Osfield
2003-11-03 23:13:31 +00:00
parent de77cede2b
commit bc7622149d
13 changed files with 679 additions and 116 deletions

View File

@@ -28,8 +28,11 @@ class OSGUTIL_EXPORT TransformCallback : public osg::NodeCallback
TransformCallback(const osg::Vec3& pivot,const osg::Vec3& axis,float angularVelocity);
virtual void operator() (osg::Node* node, osg::NodeVisitor* nv);
void setPause(bool pause) { _pause = pause; }
/** implements the callback*/
virtual void operator()(osg::Node* node, osg::NodeVisitor* nv);
protected:
float _angular_velocity;
@@ -38,6 +41,7 @@ class OSGUTIL_EXPORT TransformCallback : public osg::NodeCallback
int _previousTraversalNumber;
double _previousTime;
bool _pause;
};