VR-Forces 4.5 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
vrvUtil
DtWindowConfiguration.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2007 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: DtWindowConfiguration.h,v $ $Revision: 1.20 $ $State: Exp $
7
******************************************************************************/
8
12
13
#pragma once
14
15
#include <
vrvUtil/vrvUtil.h
>
16
#include <
vrvUtil/DtChannelConfiguration.h
>
17
#include <
vrvUtil/DtConfigurationCollection.h
>
18
19
#include <string>
20
#include <list>
21
22
namespace
makVrv
23
{
24
25
typedef
DtConfigurationCollection<DtChannelConfiguration>
DtChannelConfigurations
;
26
31
class
DT_DLL_VRVUTIL
DtWindowConfiguration
:
public
DtConfiguration
32
{
33
34
public
:
35
36
static
const
char
*
DefaultWindowString
;
37
38
enum
WindowType
39
{
40
NoWindow
,
41
Window
,
42
FullscreenWindow
,
43
EmbeddedWindow
44
};
45
49
DtWindowConfiguration
(
const
std::string& name = DefaultWindowString);
50
53
DtWindowConfiguration
(
const
DtWindowConfiguration
& copy);
54
57
DtWindowConfiguration
& operator=(
const
DtWindowConfiguration
& copy);
58
60
~
DtWindowConfiguration
();
61
63
64
DtChannelConfigurations
& channelConfigurations();
65
const
DtChannelConfigurations
& channelConfigurations()
const
;
67
69
WindowType windowType()
const
;
70
72
void
setWindowType(WindowType wt);
73
75
int
screenNumber()
const
;
76
79
void
setScreenNumber(
int
number);
80
82
int
x()
const
;
83
85
int
y()
const
;
86
88
void
setPosition(
int
x,
int
y);
89
91
unsigned
int
width()
const
;
92
94
unsigned
int
height()
const
;
95
97
void
setSize(
unsigned
int
width,
unsigned
int
height);
98
100
bool
isFixedSize()
const
;
101
103
void
setFixedSize(
bool
fixed);
104
110
DT_DECLARE_ALL_serialize_FUNCTIONS
111
112
protected
:
113
114
template
<
class
Archive>
115
void
_serialize(Archive& ar,
const
unsigned
int
version)
116
{
118
ar &
DT_SERIALIZE_BASE
(
DtConfiguration
);
119
ar &
DT_SERIALIZE_MEMBER
(myChannelConfigurations);
120
ar &
DT_SERIALIZE_MEMBER
(myWindowType);
121
ar &
DT_SERIALIZE_MEMBER
(myScreenNumber);
122
ar &
DT_SERIALIZE_MEMBER
(myX);
123
ar &
DT_SERIALIZE_MEMBER
(myY);
124
ar &
DT_SERIALIZE_MEMBER
(myWidth);
125
ar &
DT_SERIALIZE_MEMBER
(myHeight);
126
ar &
DT_SERIALIZE_MEMBER
(myFixedSizeFlag);
127
}
128
130
132
DtChannelConfigurations
myChannelConfigurations
;
133
135
WindowType
myWindowType
;
136
138
int
myScreenNumber
;
139
141
int
myX
;
142
144
int
myY
;
145
147
unsigned
int
myWidth
;
148
150
unsigned
int
myHeight
;
151
153
bool
myFixedSizeFlag
;
154
};
155
}
Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (
www.mak.com
)