VR-Forces 4.3.1 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/DtConfiguration.h
>
17
#include <
vrvUtil/DtChannelConfiguration.h
>
18
#include <
vrvUtil/DtConfigurationCollection.h
>
19
20
#include <string>
21
#include <list>
22
23
namespace
makVrv
24
{
25
26
typedef
DtConfigurationCollection<DtChannelConfiguration>
DtChannelConfigurations
;
27
32
class
DT_DLL_VRVUTIL
DtWindowConfiguration
:
public
DtConfiguration
33
{
34
35
public
:
36
37
static
const
char
*
DefaultWindowString
;
38
39
enum
WindowType
40
{
41
NoWindow
,
42
Window
,
43
FullscreenWindow
,
44
EmbeddedWindow
45
};
46
50
DtWindowConfiguration
(
const
std::string& name = DefaultWindowString);
51
54
DtWindowConfiguration
(
const
DtWindowConfiguration
& copy);
55
58
DtWindowConfiguration
& operator=(
const
DtWindowConfiguration
& copy);
59
61
~
DtWindowConfiguration
();
62
64
65
DtChannelConfigurations
& channelConfigurations();
66
const
DtChannelConfigurations
& channelConfigurations()
const
;
68
70
WindowType windowType()
const
;
71
73
void
setWindowType(WindowType wt);
74
76
int
screenNumber()
const
;
77
80
void
setScreenNumber(
int
number);
81
83
int
x()
const
;
84
86
int
y()
const
;
87
89
void
setPosition(
int
x,
int
y);
90
92
unsigned
int
width()
const
;
93
95
unsigned
int
height()
const
;
96
98
void
setSize(
unsigned
int
width,
unsigned
int
height);
99
101
bool
isFixedSize()
const
;
102
104
void
setFixedSize(
bool
fixed);
105
111
DT_DECLARE_ALL_serialize_FUNCTIONS
112
113
protected
:
114
115
template
<
class
Archive>
116
void
_serialize(Archive& ar,
const
unsigned
int
version)
117
{
119
ar &
DT_SERIALIZE_BASE
(
DtConfiguration
);
120
ar &
DT_SERIALIZE_MEMBER
(myChannelConfigurations);
121
ar &
DT_SERIALIZE_MEMBER
(myWindowType);
122
ar &
DT_SERIALIZE_MEMBER
(myScreenNumber);
123
ar &
DT_SERIALIZE_MEMBER
(myX);
124
ar &
DT_SERIALIZE_MEMBER
(myY);
125
ar &
DT_SERIALIZE_MEMBER
(myWidth);
126
ar &
DT_SERIALIZE_MEMBER
(myHeight);
127
ar &
DT_SERIALIZE_MEMBER
(myFixedSizeFlag);
128
}
129
131
133
DtChannelConfigurations
myChannelConfigurations
;
134
136
WindowType
myWindowType
;
137
139
int
myScreenNumber
;
140
142
int
myX
;
143
145
int
myY
;
146
148
unsigned
int
myWidth
;
149
151
unsigned
int
myHeight
;
152
154
bool
myFixedSizeFlag
;
155
};
156
}
Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)