30 #include <boost/shared_ptr.hpp>
31 #include <boost/enable_shared_from_this.hpp>
34 #include <osg/Version>
35 #include <osgViewer/View>
36 #include <osgViewer/Viewer>
40 #if ( ( OPENSCENEGRAPH_MAJOR_VERSION > 2 ) || ( OPENSCENEGRAPH_MAJOR_VERSION == 2 && ( OPENSCENEGRAPH_MINOR_VERSION > 9 || \
41 ( OPENSCENEGRAPH_MINOR_VERSION == 9 && OPENSCENEGRAPH_PATCH_VERSION >= 8 ) ) ) )
42 #include <osgGA/CameraManipulator>
48 #include <osgGA/MatrixManipulator>
51 #include "../common/WColor.h"
52 #include "../common/WFlag.h"
54 #include "WGECamera.h"
55 #include "WGEGraphicsWindow.h"
56 #include "WGraphicsEngineMode.h"
58 #include "WGEScreenCapture.h"
60 #include "animation/WGEAnimationManipulator.h"
68 public boost::enable_shared_from_this< WGEViewer >
74 typedef boost::shared_ptr< WGEViewer >
SPtr;
79 typedef boost::shared_ptr< const WGEViewer >
ConstSPtr;
93 WGEViewer( std::string name, osg::ref_ptr<osg::Referenced> wdata,
int x,
int y,
int width,
int height,
104 virtual void paint();
112 virtual void resize(
int width,
int height );
117 virtual void close();
124 #ifdef WGEMODE_SINGLETHREADED
125 osg::ref_ptr<osgViewer::Viewer>
getView();
127 osg::ref_ptr<osgViewer::View>
getView();
154 void setCamera( osg::ref_ptr<osg::Camera> camera );
168 void setScene( osg::ref_ptr< WGEGroupNode > node );
175 osg::ref_ptr< WGEGroupNode >
getScene();
244 #ifdef WGEMODE_SINGLETHREADED
245 osg::ref_ptr< osgViewer::Viewer >
m_View;
294 virtual void operator()( osg::RenderInfo& renderInfo )
const;
344 #endif // WGEVIEWER_H