fw4spl
Coord.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_COORD_HPP__
8 #define __FWRENDERQT_DATA_COORD_HPP__
9 
10 #include "fwRenderQt/config.hpp"
11 
12 namespace fwRenderQt
13 {
14 namespace data
15 {
16 
17 class FWRENDERQT_CLASS_API Coord
18 {
19 public:
20 
21  Coord()
22  {
23  m_x = 0; m_y = 0;
24  }
25  Coord( double x, double y )
26  {
27  m_x = x; m_y = y;
28  }
29  //------------------------------------------------------------------------------
30 
31  double getX() const
32  {
33  return m_x;
34  }
35  //------------------------------------------------------------------------------
36 
37  void setX ( double x )
38  {
39  m_x = x;
40  }
41  //------------------------------------------------------------------------------
42 
43  double getY() const
44  {
45  return m_y;
46  }
47  //------------------------------------------------------------------------------
48 
49  void setY ( double y )
50  {
51  m_y = y;
52  }
53 
54 private:
55 
56  double m_x;
57  double m_y;
58 };
59 
60 } // namespace data
61 } // namespace fwRenderQt
62 
63 #endif // __FWRENDERQT_DATA_COORD_HPP__
64 
The namespace fwRenderQt contains classes for rendering with Qt.
Definition: Axis.hpp:12