VR-Forces 4.6 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 
64  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 }

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)