VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtWindowConfiguration.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 <vrvUtil/vrvUtil.h>
15 
16 #include <string>
17 #include <list>
18 
19 namespace makVrv
20 {
21 
23 
29  {
30 
31  public:
32 
33  static const char* DefaultWindowString;
34 
36  {
40  EmbeddedWindow
41  };
42 
46  DtWindowConfiguration(const std::string& name = DefaultWindowString);
47 
51 
54  DtWindowConfiguration& operator=(const DtWindowConfiguration& copy);
55 
57  virtual ~DtWindowConfiguration();
58 
60  DtChannelConfigurations& channelConfigurations();
62  const DtChannelConfigurations& channelConfigurations() const;
64 
66  WindowType windowType() const;
67 
69  void setWindowType(WindowType wt);
70 
72  bool windowStaysOnTop() const;
73 
75  void setWindowStaysOnTop(bool stayOnTop);
76 
78  int screenNumber() const;
79 
82  void setScreenNumber(int number);
83 
85  int x() const;
86 
88  int y() const;
89 
91  void setPosition(int x, int y);
92 
94  unsigned int width() const;
95 
97  unsigned int height() const;
98 
100  void setSize(unsigned int width,unsigned int height);
101 
103  bool isFixedSize() const;
104 
106  void setFixedSize(bool fixed);
107 
114 
115  protected:
116 
117  template<class Archive>
118  void _serialize(Archive& ar, const unsigned int version)
119  {
122  ar & DT_SERIALIZE_MEMBER(myChannelConfigurations);
123  ar & DT_SERIALIZE_MEMBER(myWindowType);
124  if (version >= 2)
125  {
126  ar & DT_SERIALIZE_MEMBER(myStaysOnTop);
127  }
128  ar & DT_SERIALIZE_MEMBER(myScreenNumber);
129  ar & DT_SERIALIZE_MEMBER(myX);
130  ar & DT_SERIALIZE_MEMBER(myY);
131  ar & DT_SERIALIZE_MEMBER(myWidth);
132  ar & DT_SERIALIZE_MEMBER(myHeight);
133  ar & DT_SERIALIZE_MEMBER(myFixedSizeFlag);
134  }
135 
137 
140 
143 
146 
149 
151  int myX;
152 
154  int myY;
155 
157  unsigned int myWidth;
158 
160  unsigned int myHeight;
161 
164  };
165 }
166 
167 
BOOST_CLASS_VERSION(makArchives::DtDiGuySettingsRecord, 3)
Contains makVrv:DtConfigurationCollection class.
#define DT_SERIALIZE_BASE(BASE_CLASS)
Serialize the base class implementation.
Definition: DtSerialize.h:161
unsigned int myWidth
Default is 300.
Definition: DtWindowConfiguration.h:157
#define DT_DLL_VRVUTIL
Definition: vrvUtil.h:34
Contains makVrv::DtChannelConfiguration class.
This owns a list of channel configurations.
Definition: DtWindowConfiguration.h:28
int myScreenNumber
Default is 0.
Definition: DtWindowConfiguration.h:148
bool myFixedSizeFlag
Default is False.
Definition: DtWindowConfiguration.h:163
Definition: DtWindowConfiguration.h:38
void _serialize(Archive &ar, const unsigned int version)
Declare serialize functions Call via serialize(Archive ar, unsigned int version); Where Archive can b...
Definition: DtWindowConfiguration.h:118
static const char * DefaultWindowString
Definition: DtWindowConfiguration.h:33
Contains DLL export macros.
DtConfigurationCollection< DtChannelConfiguration > DtChannelConfigurations
Definition: DtWindowConfiguration.h:22
bool myStaysOnTop
Default is false.
Definition: DtWindowConfiguration.h:145
Definition: DtWindowConfiguration.h:37
#define DT_DECLARE_ALL_serialize_FUNCTIONS
Definition: DtSerialize.h:134
WindowType
Definition: DtWindowConfiguration.h:35
WindowType myWindowType
Default is Window.
Definition: DtWindowConfiguration.h:142
int myX
Default is 100.
Definition: DtWindowConfiguration.h:151
int myY
Default is 100.
Definition: DtWindowConfiguration.h:154
DtChannelConfigurations myChannelConfigurations
All copy semantics members.
Definition: DtWindowConfiguration.h:139
The base implementation of a configuration.
Definition: DtConfiguration.h:24
#define DT_SERIALIZE_MEMBER(NAME)
Serialize a Member whose name starts with &#39;my&#39; If your member does not have that name, use Dt_SERIALIZE.
Definition: DtSerialize.h:158
Definition: DtWindowConfiguration.h:39
unsigned int myHeight
Default is 300.
Definition: DtWindowConfiguration.h:160

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)