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>
45 typedef CameraManipulator MatrixManipulator;
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"
62 #include "WGEViewerEffectHorizon.h"
63 #include "WGEViewerEffectVignette.h"
64 #include "WGEViewerEffectImageOverlay.h"
72 public boost::enable_shared_from_this< WGEViewer >
78 typedef boost::shared_ptr< WGEViewer >
SPtr;
83 typedef boost::shared_ptr< const WGEViewer >
ConstSPtr;
97 WGEViewer( std::string name, osg::ref_ptr<osg::Referenced> wdata,
int x,
int y,
int width,
int height,
108 virtual void paint();
116 virtual void resize(
int width,
int height );
121 virtual void close();
128 #ifdef WGEMODE_SINGLETHREADED
129 osg::ref_ptr<osgViewer::Viewer>
getView();
131 osg::ref_ptr<osgViewer::View>
getView();
158 void setCamera( osg::ref_ptr< WGECamera > camera );
172 void setScene( osg::ref_ptr< WGEGroupNode > node );
179 osg::ref_ptr< WGEGroupNode >
getScene();
314 #ifdef WGEMODE_SINGLETHREADED
315 osg::ref_ptr< osgViewer::Viewer >
m_View;
369 virtual void operator()( osg::RenderInfo& renderInfo )
const;
457 #endif // WGEVIEWER_H