VR-Vantage 2.4 API Documentation
Home
Modules
Namespaces
Classes
Files
Libraries
Examples
Tutorials
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) 2018 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
9
10
#pragma once
11
12
#include <
vrvCore/vrvCore.h
>
13
#include <
vrvUtil/DtWindowConfiguration.h
>
14
#include <
vrvUtil/DtVirtualBaseClass.h
>
15
#include <boost/signals.hpp>
16
17
namespace
makVrv
18
{
19
class
DtChannel;
20
class
DtChannelManager;
21
class
DtDe;
22
25
class
DT_DLL_VRVCORE
DtWindow
26
{
27
28
public
:
29
31
DtWindow
(
DtDe
&,
DtWindowConfiguration
& wc);
32
34
virtual
void
realize();
35
37
virtual
~
DtWindow
();
38
41
virtual
bool
isValid()
const
= 0;
42
44
virtual
bool
canResize()
const
;
45
47
virtual
void
setPosition(
int
x
,
int
y
) = 0;
48
50
virtual
void
resize(
int
width
,
int
height
) = 0;
51
55
virtual
void
sizeChanged(
int
width,
int
height) = 0;
56
58
virtual
int
width
()
const
;
59
61
virtual
int
height
()
const
;
62
64
virtual
const
DtWindowConfiguration
& configuration()
const
;
65
67
virtual
bool
tick();
68
70
virtual
DtChannelManager
& channelManager();
71
73
virtual
const
DtChannelManager
& channelManager()
const
;
74
76
virtual
DtChannel
* findChannel(
const
std::string
&
name
);
77
79
inline
DtDe
&
de
() {
return
myDe;}
80
82
virtual
void
clearEmptyWindow(
std::string
messageLine1,
83
std::string
messageLine2,
84
std::string
messageLine3);
85
88
virtual
void
toggleFullScreen
() {}
89
90
virtual
bool
isFullScreen
()
const
{
return
false
; }
91
93
virtual
int
screenNumber
()
const
{
return
0; }
94
96
boost::signal<void(bool)>
signal_fullScreenModeChanged
;
97
98
protected
:
99
100
DtDe
&
myDe
;
101
DtChannelManager
*
myChannelManager
;
102
DtWindowConfiguration
&
myWindowConfiguration
;
103
104
};
105
110
class
DT_DLL_VRVCORE
DtWindowCreator
111
{
112
public
:
113
115
DtWindowCreator
();
116
118
virtual
~
DtWindowCreator
();
119
121
virtual
DtWindow
* create(
DtDe
&,
DtWindowConfiguration
&) = 0;
122
};
123
}
124
125
Copyright © 2005-2018 VT MAK. All Rights Reserved (
www.mak.com
)