source: Swollen/swollen/customterrainmanipulator.h @ 126

Last change on this file since 126 was 66, checked in by darran, 20 years ago
File size: 548 bytes
Line 
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
13class CustomTerrainManipulator : public osgGA::TerrainManipulator
14{
15
16public:
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
24protected:
25
26    bool _disabled;
27
28};
29
30#endif  // CUSTOMTERRAINMANIPULATOR_H
Note: See TracBrowser for help on using the repository browser.