OpenMining  0.01
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
Point3D.h
Go to the documentation of this file.
1 #ifndef Point3D_h
2 #define Point3D_h
3 
4 // my includes
5 #include "mytypes.h"
6 #include "Cube.h"
7 
8 class Point3D
9 {
10 public:
11  Point3D() : m_x(0), m_y(0), m_z(0) {}
12  Point3D(const y_t y, const x_t x, const z_t z) : m_x(x), m_y(y), m_z(z) {}
16  bool inside(const Cube& cube) const;
18 
19 private:
20  // When the class Archive corresponds to an output archive, the
21  // & operator is defined similar to <<. Likewise, when the class Archive
22  // is a type of input archive the & operator is defined similar to >>.
23  template<class Archive>
24  void serialize(Archive& ar, const unsigned int version)
25  {
26  ar & m_x;
27  ar & m_y;
28  ar & m_z;
29  Q_UNUSED(version);
30  }};
31 
32 
33 #endif
bool inside(const Cube &cube) const
Definition: Point3D.cpp:11
void serialize(Archive &ar, const unsigned int version)
Definition: Point3D.h:24
int32_t x_t
Definition: mytypes.h:13
z_t m_z
Definition: Point3D.h:15
Definition: Point3D.h:8
x_t m_x
Definition: Point3D.h:13
Definition: Cube.h:38
y_t m_y
Definition: Point3D.h:14
int32_t z_t
Definition: mytypes.h:15
Point3D(const y_t y, const x_t x, const z_t z)
Definition: Point3D.h:12
Point3D()
Definition: Point3D.h:11
friend class boost::serialization::access
Definition: Point3D.h:17
int32_t y_t
Definition: mytypes.h:14