00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef SimpleViewer_H
00020 #define SimpleViewer_H
00021
00022 #include <osgViewer/Viewer>
00023 #include "uvsim/visualization/Frame.h"
00024 #include <osg/Fog>
00025 #include "uvsim/utilities/RealtimeThread.h"
00026
00027 namespace uvsim
00028 {
00029
00030 class SimpleViewer : public RealtimeThread
00031 {
00032 public:
00033 osg::Group *scene;
00034 osgGA::TrackballManipulator *manip;
00035 osg::ref_ptr<osgViewer::Viewer> viewer;
00036 osg::ref_ptr<Frame> frame;
00037 SimpleViewer(int priority, float freq, osg::Group *scene, double manipDepth, osg::Vec3d &manipCenter,
00038 float frameSize, double fogStart, double fogEnd);
00039 virtual ~SimpleViewer();
00040 void loop();
00041 };
00042
00043
00044 }
00045
00046 #endif
00047
00048