VR-Forces 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) 2024 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 
27  {
28 
29  public:
30 
31  static const char* DefaultWindowString;
32 
34  {
38  EmbeddedWindow
39  };
40 
44  DtWindowConfiguration(const std::string& name = DefaultWindowString);
45 
49 
52  DtWindowConfiguration& operator=(const DtWindowConfiguration& copy);
53 
55  virtual ~DtWindowConfiguration();
56 
58  DtChannelConfigurations& channelConfigurations();
60  const DtChannelConfigurations& channelConfigurations() const;
62 
64  WindowType windowType() const;
65 
67  void setWindowType(WindowType wt);
68 
70  bool windowStaysOnTop() const;
71 
73  void setWindowStaysOnTop(bool stayOnTop);
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 
112 
113  protected:
114 
115  template<class Archive>
116  void _serialize(Archive& ar, const unsigned int version)
117  {
120  ar & DT_SERIALIZE_MEMBER(myChannelConfigurations);
121  ar & DT_SERIALIZE_MEMBER(myWindowType);
122  if (version >= 2)
123  {
124  ar & DT_SERIALIZE_MEMBER(myStaysOnTop);
125  }
126  ar & DT_SERIALIZE_MEMBER(myScreenNumber);
127  ar & DT_SERIALIZE_MEMBER(myX);
128  ar & DT_SERIALIZE_MEMBER(myY);
129  ar & DT_SERIALIZE_MEMBER(myWidth);
130  ar & DT_SERIALIZE_MEMBER(myHeight);
131  ar & DT_SERIALIZE_MEMBER(myFixedSizeFlag);
132  }
133 
135 
138 
141 
144 
147 
149  int myX;
150 
152  int myY;
153 
155  unsigned int myWidth;
156 
158  unsigned int myHeight;
159 
162  };
163 }
164 
165 
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:155
#define DT_DLL_VRVUTIL
Definition: vrvUtil.h:34
Contains makVrv::DtChannelConfiguration class.
This owns a list of channel configurations.
Definition: DtWindowConfiguration.h:26
int myScreenNumber
Default is 0.
Definition: DtWindowConfiguration.h:146
bool myFixedSizeFlag
Default is False.
Definition: DtWindowConfiguration.h:161
Definition: DtWindowConfiguration.h:36
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:116
static const char * DefaultWindowString
Definition: DtWindowConfiguration.h:31
Contains DLL export macros.
DtConfigurationCollection< DtChannelConfiguration > DtChannelConfigurations
Definition: DtWindowConfiguration.h:22
bool myStaysOnTop
Default is false.
Definition: DtWindowConfiguration.h:143
Definition: DtWindowConfiguration.h:35
#define DT_DECLARE_ALL_serialize_FUNCTIONS
Definition: DtSerialize.h:134
WindowType
Definition: DtWindowConfiguration.h:33
WindowType myWindowType
Default is Window.
Definition: DtWindowConfiguration.h:140
int myX
Default is 100.
Definition: DtWindowConfiguration.h:149
int myY
Default is 100.
Definition: DtWindowConfiguration.h:152
DtChannelConfigurations myChannelConfigurations
All copy semantics members.
Definition: DtWindowConfiguration.h:137
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:37
unsigned int myHeight
Default is 300.
Definition: DtWindowConfiguration.h:158

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)