Last change
on this file since 668 was
116,
checked in by darran, 20 years ago
|
- distro20050627
- functioning record/playback/save. Can't yet replay from movie.swm
- image capture not yet implemented.
|
File size:
698 bytes
|
Rev | Line | |
---|
[116] | 1 | /* |
---|
| 2 | Customized event handler |
---|
| 3 | |
---|
| 4 | An OpenSceneGraph viewer for pyVolution SWW files. |
---|
| 5 | copyright (C) 2004-2005 Geoscience Australia |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include <project.h> |
---|
| 9 | #include <osgProducer/ViewerEventHandler> |
---|
| 10 | #include <osgProducer/OsgCameraGroup> |
---|
| 11 | #include <osgGA/GUIEventHandler> |
---|
| 12 | |
---|
| 13 | |
---|
| 14 | class CustomViewerEventHandler : public osgProducer::ViewerEventHandler |
---|
| 15 | { |
---|
| 16 | public: |
---|
| 17 | |
---|
| 18 | CustomViewerEventHandler(osgProducer::OsgCameraGroup* cg); |
---|
| 19 | |
---|
| 20 | // Get the keyboard and mouse usage of this viewer |
---|
| 21 | virtual void getUsage(osg::ApplicationUsage& usage) const; |
---|
| 22 | |
---|
| 23 | // core code handling key events |
---|
| 24 | virtual bool handle(const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& aa); |
---|
| 25 | |
---|
| 26 | |
---|
| 27 | protected: |
---|
| 28 | |
---|
| 29 | }; |
---|
| 30 | |
---|
| 31 | |
---|
| 32 | |
---|
Note: See
TracBrowser
for help on using the repository browser.