VR-Forces 4.8 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) 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>
18 
19 #include <string>
20 #include <list>
21 
22 namespace makVrv
23 {
24 
26 
32  {
33 
34  public:
35 
36  static const char* DefaultWindowString;
37 
39  {
43  EmbeddedWindow
44  };
45 
49  DtWindowConfiguration(const std::string& name = DefaultWindowString);
50 
54 
57  DtWindowConfiguration& operator=(const DtWindowConfiguration& copy);
58 
60  virtual ~DtWindowConfiguration();
61 
63  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 
111 
112  protected:
113 
114  template<class Archive>
115  void _serialize(Archive& ar, const unsigned int version)
116  {
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 
133 
136 
139 
141  int myX;
142 
144  int myY;
145 
147  unsigned int myWidth;
148 
150  unsigned int myHeight;
151 
154  };
155 }
Contains makVrv:DtConfigurationCollection class.
#define DT_SERIALIZE_BASE(BASE_CLASS)
Serialize the base class implementation.
Definition: DtSerialize.h:164
unsigned int myWidth
Default is 300.
Definition: DtWindowConfiguration.h:147
#define DT_DLL_VRVUTIL
Definition: vrvUtil.h:34
Contains makVrv::DtChannelConfiguration class.
This owns a list of channel configurations.
Definition: DtWindowConfiguration.h:31
int myScreenNumber
Default is 0.
Definition: DtWindowConfiguration.h:138
bool myFixedSizeFlag
Default is False.
Definition: DtWindowConfiguration.h:153
Definition: DtWindowConfiguration.h:41
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:115
static const char * DefaultWindowString
Definition: DtWindowConfiguration.h:36
Contains DLL export macros.
DtConfigurationCollection< DtChannelConfiguration > DtChannelConfigurations
Definition: DtWindowConfiguration.h:25
Definition: DtWindowConfiguration.h:40
#define DT_DECLARE_ALL_serialize_FUNCTIONS
Definition: DtSerialize.h:137
WindowType
Definition: DtWindowConfiguration.h:38
WindowType myWindowType
Default is Window.
Definition: DtWindowConfiguration.h:135
int myX
Default is 100.
Definition: DtWindowConfiguration.h:141
int myY
Default is 100.
Definition: DtWindowConfiguration.h:144
DtChannelConfigurations myChannelConfigurations
All copy semantics members.
Definition: DtWindowConfiguration.h:132
The base implementation of a configuration.
Definition: DtConfiguration.h:27
#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:161
Definition: DtWindowConfiguration.h:42
unsigned int myHeight
Default is 300.
Definition: DtWindowConfiguration.h:150

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)