OpenSceneGraph 3.6.5
SingleWindow
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_SingleWindow
15#define OSGVIEWER_SingleWindow 1
16
17#include <osgViewer/View>
18
19namespace osgViewer {
20
23{
24 public:
25
27 SingleWindow(int x, int y, int width, int height, unsigned int screenNum=0):_x(x),_y(y),_width(width),_height(height),_screenNum(screenNum),_windowDecoration(true),_overrideRedirect(false) {}
29
31
32 virtual void configure(osgViewer::View& view) const;
33
34 void setX(int x) { _x = x; }
35 int getX() const { return _x; }
36
37 void setY(int y) { _y = y; }
38 int getY() const { return _y; }
39
40 void setWidth(int w) { _width = w; }
41 int getWidth() const { return _width; }
42
43 void setHeight(int h) { _height = h; }
44 int getHeight() const { return _height; }
45
46 void setScreenNum(unsigned int sn) { _screenNum = sn; }
47 unsigned int getScreenNum() const { return _screenNum; }
48
49 void setWindowDecoration(bool wd) { _windowDecoration = wd; }
50 bool getWindowDecoration() const { return _windowDecoration; }
51
52 void setOverrideRedirect(bool override) { _overrideRedirect = override; }
53 bool getOverrideRedirect() const { return _overrideRedirect; }
54
55 protected:
56
58 unsigned int _screenNum;
61};
62
63}
64
65#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
SingleWindow(int x, int y, int width, int height, unsigned int screenNum=0)
Definition SingleWindow:27
int _x
Definition SingleWindow:57
bool _windowDecoration
Definition SingleWindow:59
bool getWindowDecoration() const
Definition SingleWindow:50
int getWidth() const
Definition SingleWindow:41
void setY(int y)
Definition SingleWindow:37
virtual void configure(osgViewer::View &view) const
configure method that is overridden by Config subclasses.
int _y
Definition SingleWindow:57
int _width
Definition SingleWindow:57
int getX() const
Definition SingleWindow:35
void setHeight(int h)
Definition SingleWindow:43
int getY() const
Definition SingleWindow:38
unsigned int _screenNum
Definition SingleWindow:58
void setScreenNum(unsigned int sn)
Definition SingleWindow:46
SingleWindow()
Definition SingleWindow:26
bool getOverrideRedirect() const
Definition SingleWindow:53
int _height
Definition SingleWindow:57
int getHeight() const
Definition SingleWindow:44
bool _overrideRedirect
Definition SingleWindow:60
SingleWindow(const SingleWindow &rhs, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
Definition SingleWindow:28
unsigned int getScreenNum() const
Definition SingleWindow:47
void setOverrideRedirect(bool override)
Definition SingleWindow:52
void setWidth(int w)
Definition SingleWindow:40
void setX(int x)
Definition SingleWindow:34
META_Object(osgViewer, SingleWindow)
void setWindowDecoration(bool wd)
Definition SingleWindow:49
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 Sun Jul 20 2025 00:00:00 for the OpenSceneGraph by doxygen 1.14.0.