#ifndef CUSTOMTRACKBALL_H #define CUSTOMTRACKBALL_H #include #include #include #include class CustomTrackballManipulator : public osgGA::TrackballManipulator { public: void moveToHome(); virtual bool handle( const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &us ); void disable(){ _disabled = true ;} void enable(){ _disabled = false ;} bool isEnabled(){ return !_disabled ;} protected: bool _disabled; }; #endif // CUSTOMTRACKBALL_H