openscenegraph
SingleScreen
Go to the documentation of this file.
1/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
2 *
3 * This library is open source and may be redistributed and/or modified under
4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
5 * (at your option) any later version. The full license is in LICENSE file
6 * included with this distribution, and on the openscenegraph.org website.
7 *
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * OpenSceneGraph Public License for more details.
12*/
13
14#ifndef OSGVIEWER_SingleScreen
15#define OSGVIEWER_SingleScreen 1
16
17#include <osgViewer/View>
18
19namespace osgViewer {
20
21/** single camera associated with a single full screen GraphicsWindow.*/
22class OSGVIEWER_EXPORT SingleScreen : public ViewConfig
23{
24 public:
25
26 SingleScreen(unsigned int screenNum=0) : _screenNum(screenNum) {}
27 SingleScreen(const SingleScreen& rhs, const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY) : ViewConfig(rhs,copyop), _screenNum(rhs._screenNum) {}
28
29 META_Object(osgViewer, SingleScreen);
30
31 virtual void configure(osgViewer::View& view) const;
32
33 void setScreenNum(unsigned int sn) { _screenNum = sn; }
34 unsigned int getScreenNum() const { return _screenNum; }
35
36 protected:
37
38 unsigned int _screenNum;
39};
40
41}
42
43#endif