VR-Forces 4.7 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrvOsgQt
DtOsgWindowQt.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2008 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: DtOsgWindowQt.h,v $ $Revision: 1.11 $ $State: Exp $
7
******************************************************************************/
8
12
13
#ifndef DtOsgWindowQt_H_
14
#define DtOsgWindowQt_H_
15
16
#include <
vrvOsgQt/vrvOsgQt.h
>
17
#include <
vrvOsg/DtOsgWindow.h
>
18
19
#include <
vrvUtil/DtSignalConnectionManager.h
>
20
21
namespace
makVrv
22
{
23
class
DtWindowConfiguration;
24
class
DtOsgAdapterQtWidget;
25
28
class
DT_DLL_VRVOSGQT
DtOsgWindowQt
:
public
DtOsgWindow
29
{
30
public
:
31
34
DtOsgWindowQt
(
DtDe
& de,
DtWindowConfiguration
& wc,
bool
fullscreen =
false
);
35
37
virtual
~
DtOsgWindowQt
();
38
40
virtual
int
width()
const
;
41
43
virtual
int
height()
const
;
44
46
virtual
bool
isValid()
const
;
47
49
virtual
void
setPosition(
int
x,
int
y);
50
52
virtual
void
resize(
int
width,
int
height);
53
54
void
changeResolution(
int
width,
int
height );
55
57
virtual
void
toggleFullScreen();
58
60
virtual
bool
isFullScreen()
const
;
61
63
virtual
int
screenNumber()
const
;
64
66
DtOsgAdapterQtWidget
* adapterWidget();
67
68
protected
:
69
70
virtual
void
slot_windowResizeabilityChanged(
DtWindow
* window );
71
72
protected
:
73
74
DtOsgAdapterQtWidget
*
myAdapter
;
75
unsigned
int
myScreenWidth
;
76
unsigned
int
myScreenHeight
;
77
bool
myFullScreen
;
78
DtSignalConnectionManager
mySignals
;
79
80
//this are used for cache the window state before go to fullscreen for restore purpose
81
int
myWindowStateBeforeFullscreen
;
82
int
myWindowXBeforeFullscreen
;
83
int
myWindowYBeforeFullscreen
;
84
int
myWindowWidthBeforeFullscreen
;
85
int
myWindowHeightBeforeFullscreen
;
86
};
87
90
class
DT_DLL_VRVOSGQT
DtOsgWindowQtCreator
:
public
DtWindowCreator
91
{
92
public
:
94
virtual
DtWindow
* create(
DtDe
&,
DtWindowConfiguration
&);
95
};
96
99
class
DT_DLL_VRVOSGQT
DtFullscreenOsgWindowQtCreator
:
public
DtWindowCreator
100
{
101
public
:
103
virtual
DtWindow
* create(
DtDe
&,
DtWindowConfiguration
&);
104
};
105
}
106
107
#endif
108
Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (
www.mak.com
)