#ifndef CUSTOMTERRAINMANIPULATOR_H #define CUSTOMTERRAINMANIPULATOR_H #include #include #include #include class CustomTerrainManipulator : public osgGA::TerrainManipulator { public: void moveToHome(); virtual bool handle( const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &us ); void disable(){ _disabled = true ;} void enable(){ _disabled = false ;} protected: bool _disabled; }; #endif // CUSTOMTERRAINMANIPULATOR_H