root/OpenSceneGraph/trunk/src/osgPlugins/Inventor/PendulumCallback.h @ 13041

Revision 13041, 0.6 kB (checked in by robert, 3 years ago)

Ran script to remove trailing spaces and tabs

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1#ifndef _PENDULUMCALLBACK_H_
2#define _PENDULUMCALLBACK_H_
3
4#include <osg/Node>
5#include <osgUtil/Export>
6
7// Callback for handling the SoPendulum node
8class PendulumCallback : public osg::NodeCallback
9{
10    public:
11
12        PendulumCallback(const osg::Vec3& axis, float startAngle,
13                         float endAngle, float frequency);
14
15        virtual void operator() (osg::Node* node, osg::NodeVisitor* nv);
16
17    protected:
18
19        float _startAngle;
20        float _endAngle;
21        float _frequency;
22        osg::Vec3 _axis;
23
24        unsigned int _previousTraversalNumber;
25        double _previousTime;
26        float _angle;
27};
28
29#endif
Note: See TracBrowser for help on using the browser.