source: swollen_viewer/swollen/customviewer.h @ 2869

Last change on this file since 2869 was 125, checked in by darran, 19 years ago
  • adding -movie ability ...
File size: 1.0 KB
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
19class CustomViewer : public osgProducer::Viewer
20{
21
22public:
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
32protected:
33    CustomTrackballManipulator* _trackball;
34    CustomTerrainManipulator* _terrainmanipulator;
35
36};
37
38#endif  // CUSTOMVIEWER_H
Note: See TracBrowser for help on using the repository browser.