00001 #ifndef COIN_SOROTOR_H
00002 #define COIN_SOROTOR_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #include <Inventor/nodes/SoSubNode.h>
00028 #include <Inventor/nodes/SoRotation.h>
00029 #include <Inventor/fields/SoSFFloat.h>
00030 #include <Inventor/fields/SoSFBool.h>
00031 #include <Inventor/SbVec3f.h>
00032 #include <Inventor/SbTime.h>
00033
00034 class SoSensor;
00035 class SoRotorP;
00036
00037 class COIN_DLL_API SoRotor : public SoRotation {
00038 typedef SoRotation inherited;
00039
00040 SO_NODE_HEADER(SoRotor);
00041
00042 public:
00043 static void initClass(void);
00044 SoRotor(void);
00045
00046 SoSFFloat speed;
00047 SoSFBool on;
00048
00049 protected:
00050 virtual ~SoRotor();
00051
00052 private:
00053 SoRotorP * pimpl;
00054 static void oneshotSensorCB(void * d, SoSensor * s);
00055 static void fieldSensorCB(void * d, SoSensor * s);
00056 void setRotation(void);
00057 };
00058
00059 #endif // !COIN_SOROTOR_H