VR-Vantage 3.0 API Documentation
Home
Modules
Namespaces
Classes
Files
Libraries
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
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
int
pixelRatio()
const
;
69
71
virtual
float
pixelRatioF()
const
;
72
74
virtual
int
physicalDpiX()
const
;
75
77
virtual
int
physicalDpiY()
const
;
78
80
virtual
const
DtWindowConfiguration
& configuration()
const
;
81
83
virtual
bool
tick();
84
86
virtual
DtChannelManager
& channelManager();
87
89
virtual
const
DtChannelManager
& channelManager()
const
;
90
92
virtual
DtChannel
* findChannel(
const
std::string
&
name
);
93
95
inline
DtDe
&
de
() {
return
myDe;}
96
98
virtual
void
clearEmptyWindow(
const
std::string
& messageLine1,
99
const
std::string
& messageLine2,
100
const
std::string
& messageLine3);
101
104
virtual
void
toggleFullScreen
() {}
105
106
virtual
bool
isFullScreen
()
const
{
return
false
; }
107
109
virtual
int
screenNumber
()
const
{
return
0; }
110
112
boost::signalslib::signal<void(bool)>
signal_fullScreenModeChanged
;
113
115
boost::signalslib::signal<void(float)>
signal_pixelRatioChanged
;
116
117
protected
:
118
119
DtDe
&
myDe
;
120
DtChannelManager
*
myChannelManager
;
121
DtWindowConfiguration
&
myWindowConfiguration
;
122
bool
myIsChildWindow
;
123
124
};
125
130
class
DT_DLL_VRVCORE
DtWindowCreator
131
{
132
public
:
133
135
DtWindowCreator
();
136
138
virtual
~
DtWindowCreator
();
139
141
virtual
DtWindow
* create(
DtDe
&,
DtWindowConfiguration
&) = 0;
142
};
143
}
144
145
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (
www.mak.com
)