fw4spl
Size.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2017.
3  * Distributed under the terms of the GNU Lesser General Public License (LGPL) as
4  * published by the Free Software Foundation.
5  * ****** END LICENSE BLOCK ****** */
6 
7 #ifndef __FWRENDERQT_DATA_SIZE_HPP__
8 #define __FWRENDERQT_DATA_SIZE_HPP__
9 
10 #include "fwRenderQt/config.hpp"
11 
12 #include <fwData/Object.hpp>
13 
14 namespace fwRenderQt
15 {
16 namespace data
17 {
18 
19 class FWRENDERQT_CLASS_API Size
20 {
21 public:
22 
23  Size() :
24  m_w(0.),
25  m_h(0.)
26  {
27  }
28 
29  Size( double w, double h )
30  {
31  m_w = w; m_h = h;
32  }
33 
34  //------------------------------------------------------------------------------
35 
36  double getWidth() const
37  {
38  return m_w;
39  }
40 
41  //------------------------------------------------------------------------------
42 
43  void setWidth ( double w )
44  {
45  m_w = w;
46  }
47 
48  //------------------------------------------------------------------------------
49 
50  double getHeight() const
51  {
52  return m_h;
53  }
54 
55  //------------------------------------------------------------------------------
56 
57  void setHeight ( double h )
58  {
59  m_h = h;
60  }
61 
62 private:
63 
64  double m_w;
65  double m_h;
66 };
67 
68 } // namespace data
69 } // namespace fwRenderQt
70 
71 #endif // __FWRENDERQT_DATA_SIZE_HPP__
72 
The namespace fwRenderQt contains classes for rendering with Qt.
Definition: Axis.hpp:12