Line | |
---|
1 | /* |
---|
2 | CustomViewer Class |
---|
3 | |
---|
4 | An OpenSceneGraph viewer for pyVolution .sww files. |
---|
5 | copyright (C) 2004-2005 Geoscience Australia |
---|
6 | */ |
---|
7 | |
---|
8 | |
---|
9 | #ifndef CUSTOMVIEWER_H |
---|
10 | #define CUSTOMVIEWER_H |
---|
11 | |
---|
12 | |
---|
13 | #include <project.h> |
---|
14 | #include <osgProducer/Viewer> |
---|
15 | #include "customtrackball.h" |
---|
16 | #include "customterrainmanipulator.h" |
---|
17 | |
---|
18 | |
---|
19 | class CustomViewer : public osgProducer::Viewer |
---|
20 | { |
---|
21 | |
---|
22 | public: |
---|
23 | CustomViewer(osg::ArgumentParser& arguments); |
---|
24 | void setUpViewer(unsigned int options=STANDARD_SETTINGS); |
---|
25 | virtual CustomTrackballManipulator* getTrackball(){return _trackball;} |
---|
26 | virtual CustomTerrainManipulator* getTerrainManipulator(){return _terrainmanipulator;} |
---|
27 | osg::Vec3d getPosition(){return osg::Vec3d(_position[0],_position[1],_position[2]);} |
---|
28 | osg::Quat getOrientation(){return _orientation;} |
---|
29 | //virtual void setPosition( osg::Vec3 position ); |
---|
30 | //virtual void setOrientation( osg::Quat orientation ); |
---|
31 | |
---|
32 | protected: |
---|
33 | CustomTrackballManipulator* _trackball; |
---|
34 | CustomTerrainManipulator* _terrainmanipulator; |
---|
35 | |
---|
36 | }; |
---|
37 | |
---|
38 | #endif // CUSTOMVIEWER_H |
---|
Note: See
TracBrowser
for help on using the repository browser.