00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef COIN_SOVRMLPLANESENSOR_H
00025 #define COIN_SOVRMLPLANESENSOR_H
00026
00027 #include <Inventor/nodes/SoSubNode.h>
00028 #include <Inventor/VRMLnodes/SoVRMLDragSensor.h>
00029 #include <Inventor/fields/SoSFVec2f.h>
00030 #include <Inventor/fields/SoSFVec3f.h>
00031
00032 class COIN_DLL_API SoVRMLPlaneSensor : public SoVRMLDragSensor
00033 {
00034 typedef SoNode inherited;
00035 SO_NODE_HEADER(SoVRMLPlaneSensor);
00036
00037 public:
00038 static void initClass(void);
00039 SoVRMLPlaneSensor(void);
00040
00041 SoSFVec2f minPosition;
00042 SoSFVec2f maxPosition;
00043 SoSFVec3f offset;
00044 SoSFVec3f translation_changed;
00045
00046 protected:
00047
00048 virtual SbBool dragStart(void);
00049 virtual void drag(void);
00050 virtual void dragFinish(void);
00051
00052 virtual ~SoVRMLPlaneSensor();
00053
00054 private:
00055 class SbPlaneProjector * planeproj;
00056 };
00057
00058 #endif // ! COIN_SOVRMLPLANESENSOR_H