OSG  3.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SingleScreen.h
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 
19 namespace osgViewer {
20 
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 
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
unsigned int getScreenNum() const
Definition: SingleScreen.h:34
#define OSGVIEWER_EXPORT
Definition: Export.h:40
unsigned int _screenNum
Definition: SingleScreen.h:38
#define META_Object(library, name)
Definition: Object.h:42
SingleScreen(const SingleScreen &rhs, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
Definition: SingleScreen.h:27
void setScreenNum(unsigned int sn)
Definition: SingleScreen.h:33
SingleScreen(unsigned int screenNum=0)
Definition: SingleScreen.h:26