VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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>
19 
20 #include <string>
21 #include <list>
22 
23 namespace makVrv
24 {
25 
27 
33  {
34 
35  public:
36 
37  static const char* DefaultWindowString;
38 
40  {
44  EmbeddedWindow
45  };
46 
50  DtWindowConfiguration(const std::string& name = DefaultWindowString);
51 
55 
58  DtWindowConfiguration& operator=(const DtWindowConfiguration& copy);
59 
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 
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  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 
134 
137 
140 
142  int myX;
143 
145  int myY;
146 
148  unsigned int myWidth;
149 
151  unsigned int myHeight;
152 
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)