VR-Vantage 2.7 API Documentation
Home
Modules
Namespaces
Classes
Files
Libraries
Examples
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) 2021 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 <
vrvUtil/signalslib.h
>
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
62
virtual
bool
isChildWindow()
const
;
63
65
virtual
int
height
()
const
;
66
68
virtual
float
pixelRatio()
const
;
69
71
virtual
const
DtWindowConfiguration
& configuration()
const
;
72
74
virtual
bool
tick();
75
77
virtual
DtChannelManager
& channelManager();
78
80
virtual
const
DtChannelManager
& channelManager()
const
;
81
83
virtual
DtChannel
* findChannel(
const
std::string
&
name
);
84
86
inline
DtDe
&
de
() {
return
myDe;}
87
89
virtual
void
clearEmptyWindow(
const
std::string
& messageLine1,
90
const
std::string
& messageLine2,
91
const
std::string
& messageLine3);
92
95
virtual
void
toggleFullScreen
() {}
96
97
virtual
bool
isFullScreen
()
const
{
return
false
; }
98
100
virtual
int
screenNumber
()
const
{
return
0; }
101
103
boost::signalslib::signal<void(bool)>
signal_fullScreenModeChanged
;
104
106
boost::signalslib::signal<void(float)>
signal_pixelRatioChanged
;
107
108
protected
:
109
110
DtDe
&
myDe
;
111
DtChannelManager
*
myChannelManager
;
112
DtWindowConfiguration
&
myWindowConfiguration
;
113
bool
myIsChildWindow
;
114
115
};
116
121
class
DT_DLL_VRVCORE
DtWindowCreator
122
{
123
public
:
124
126
DtWindowCreator
();
127
129
virtual
~
DtWindowCreator
();
130
132
virtual
DtWindow
* create(
DtDe
&,
DtWindowConfiguration
&) = 0;
133
};
134
}
135
136
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (
www.mak.com
)