VR-Forces Development_Version Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrvCore
DtWindow.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2010 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: DtWindow.h,v $ $Revision: 1.31 $ $State: Exp $
7
******************************************************************************/
8
12
13
#ifndef DtWindow_H_
14
#define DtWindow_H_
15
16
#include <
vrvCore/vrvCore.h
>
17
#include <
vrvUtil/DtWindowConfiguration.h
>
18
#include <
vrvUtil/DtVirtualBaseClass.h
>
19
20
namespace
makVrv
21
{
22
class
DtChannel;
23
class
DtChannelManager;
24
class
DtDe;
25
28
class
DT_DLL_VRVCORE
DtWindow
29
{
30
31
public
:
32
34
DtWindow
(
DtDe
&,
DtWindowConfiguration
& wc);
35
37
virtual
void
realize();
38
40
virtual
~
DtWindow
();
41
44
virtual
bool
isValid()
const
= 0;
45
47
virtual
bool
canResize()
const
;
48
50
virtual
void
setPosition(
int
x,
int
y) = 0;
51
53
virtual
void
resize(
int
width,
int
height) = 0;
54
58
virtual
void
sizeChanged(
int
width,
int
height) = 0;
59
61
virtual
int
width()
const
;
62
64
virtual
int
height()
const
;
65
67
virtual
const
DtWindowConfiguration
& configuration()
const
;
68
70
virtual
bool
tick();
71
73
virtual
DtChannelManager
& channelManager();
74
76
virtual
const
DtChannelManager
& channelManager()
const
;
77
79
virtual
DtChannel
* findChannel(
const
std::string& name);
80
82
inline
DtDe
&
de
() {
return
myDe;}
83
85
virtual
void
clearEmptyWindow();
86
89
virtual
void
toggleFullScreen
() {}
90
91
virtual
bool
isFullScreen
() {
return
false
; }
92
94
virtual
int
screenNumber
()
const
{
return
0; }
95
96
97
protected
:
98
99
DtDe
&
myDe
;
100
DtChannelManager
*
myChannelManager
;
101
DtWindowConfiguration
&
myWindowConfiguration
;
102
103
};
104
109
class
DT_DLL_VRVCORE
DtWindowCreator
110
{
111
public
:
112
114
DtWindowCreator
();
115
117
virtual
~
DtWindowCreator
();
118
120
virtual
DtWindow
* create(
DtDe
&,
DtWindowConfiguration
&) = 0;
121
};
122
}
123
124
#endif
125
Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)