VR-Forces 4.10 Class Documentation
 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) 2020 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  int screenNumber() const;
73 
76  void setScreenNumber(int number);
77 
79  int x() const;
80 
82  int y() const;
83 
85  void setPosition(int x, int y);
86 
88  unsigned int width() const;
89 
91  unsigned int height() const;
92 
94  void setSize(unsigned int width,unsigned int height);
95 
97  bool isFixedSize() const;
98 
100  void setFixedSize(bool fixed);
101 
108 
109  protected:
110 
111  template<class Archive>
112  void _serialize(Archive& ar, const unsigned int version)
113  {
116  ar & DT_SERIALIZE_MEMBER(myChannelConfigurations);
117  ar & DT_SERIALIZE_MEMBER(myWindowType);
118  ar & DT_SERIALIZE_MEMBER(myScreenNumber);
119  ar & DT_SERIALIZE_MEMBER(myX);
120  ar & DT_SERIALIZE_MEMBER(myY);
121  ar & DT_SERIALIZE_MEMBER(myWidth);
122  ar & DT_SERIALIZE_MEMBER(myHeight);
123  ar & DT_SERIALIZE_MEMBER(myFixedSizeFlag);
124  }
125 
127 
130 
133 
136 
138  int myX;
139 
141  int myY;
142 
144  unsigned int myWidth;
145 
147  unsigned int myHeight;
148 
151  };
152 }
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:144
#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:135
bool myFixedSizeFlag
Default is False.
Definition: DtWindowConfiguration.h:150
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:112
static const char * DefaultWindowString
Definition: DtWindowConfiguration.h:33
Contains DLL export macros.
DtConfigurationCollection< DtChannelConfiguration > DtChannelConfigurations
Definition: DtWindowConfiguration.h:22
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:132
int myX
Default is 100.
Definition: DtWindowConfiguration.h:138
int myY
Default is 100.
Definition: DtWindowConfiguration.h:141
DtChannelConfigurations myChannelConfigurations
All copy semantics members.
Definition: DtWindowConfiguration.h:129
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:147

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)