Rev | Line | |
---|
[66] | 1 | |
---|
| 2 | #ifndef CUSTOMTERRAINMANIPULATOR_H |
---|
| 3 | #define CUSTOMTERRAINMANIPULATOR_H |
---|
| 4 | |
---|
| 5 | |
---|
| 6 | #include <project.h> |
---|
| 7 | |
---|
| 8 | #include <osgGA/GUIEventAdapter> |
---|
| 9 | #include <osgGA/GUIActionAdapter> |
---|
| 10 | #include <osgGA/TerrainManipulator> |
---|
| 11 | |
---|
| 12 | |
---|
| 13 | class CustomTerrainManipulator : public osgGA::TerrainManipulator |
---|
| 14 | { |
---|
| 15 | |
---|
| 16 | public: |
---|
| 17 | |
---|
| 18 | void moveToHome(); |
---|
| 19 | virtual bool handle( const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &us ); |
---|
| 20 | void disable(){ _disabled = true ;} |
---|
| 21 | void enable(){ _disabled = false ;} |
---|
| 22 | |
---|
| 23 | |
---|
| 24 | protected: |
---|
| 25 | |
---|
| 26 | bool _disabled; |
---|
| 27 | |
---|
| 28 | }; |
---|
| 29 | |
---|
| 30 | #endif // CUSTOMTERRAINMANIPULATOR_H |
---|
Note: See
TracBrowser
for help on using the repository browser.