OpenSceneGraph 3.6.5
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
23{
24 public:
25
26 SingleScreen(unsigned int screenNum=0) : _screenNum(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
The osgViewer library provides high level viewer functionality designed to make it easier to write a ...
Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clo...
Definition CopyOp:41
@ SHALLOW_COPY
Definition CopyOp:47
SingleScreen(const SingleScreen &rhs, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
Definition SingleScreen:27
META_Object(osgViewer, SingleScreen)
unsigned int _screenNum
Definition SingleScreen:38
SingleScreen(unsigned int screenNum=0)
Definition SingleScreen:26
virtual void configure(osgViewer::View &view) const
configure method that is overridden by Config subclasses.
unsigned int getScreenNum() const
Definition SingleScreen:34
void setScreenNum(unsigned int sn)
Definition SingleScreen:33
ViewConfig()
Definition View:41
View holds a single view on a scene, this view may be composed of one or more slave cameras.
Definition View:76
#define OSGVIEWER_EXPORT
Definition Export:40

osg logo
Generated at Wed Jul 23 2025 00:00:00 for the OpenSceneGraph by doxygen 1.14.0.