Files
OpenSceneGraph/src/osgPlugins/Inventor/ShuttleCallback.h
Robert Osfield 218c6e8d13 Added Inventor plugin, submitted by Sean Spicer, Written by Vivek (c) Magic-Earth.
To compile in do a setenv/export USE_COIN or USE_INVENTOR.
2003-09-02 21:53:41 +00:00

29 lines
626 B
C++

#ifndef _SHUTTLECALLBACK_H_
#define _SHUTTLECALLBACK_H_
#include <osg/Node>
#include <osgUtil/Export>
// Callback for handling the SoShuttle node
class ShuttleCallback : public osg::NodeCallback
{
public:
ShuttleCallback(const osg::Vec3& startPos, const osg::Vec3& endPos,
float frequency);
virtual void operator() (osg::Node* node, osg::NodeVisitor* nv);
protected:
osg::Vec3 _startPos;
osg::Vec3 _endPos;
float _frequency;
int _previousTraversalNumber;
double _previousTime;
float _angle;
};
#endif