EZC3D
Point.h
Go to the documentation of this file.
1 #ifndef POINT_H
2 #define POINT_H
3 
11 #include <ezc3d.h>
12 
17  //---- CONSTRUCTORS ----//
18 public:
22  Point();
23 
29 
30 
31  //---- STREAM ----//
32 public:
39  void print() const;
40 
47  void write(std::fstream &f) const;
48 
49 
50  //---- DATA ----//
51 protected:
52  std::vector<float> _data;
53 public:
58  const std::vector<float> data() const;
59 
67  std::vector<float> data_nonConst();
68 
73  float x() const;
74 
79  void x(float x);
80 
85  float y() const;
86 
91  void y(float y);
92 
97  float z() const;
98 
103  void z(float z);
104 
109  float residual() const;
110 
115  void residual(float residual);
116 
121  bool isempty() const;
122 };
123 
124 #endif
const std::vector< float > data() const
Get a reference to the STL vector where the 3D point is store.
Definition: Point.cpp:39
std::vector< float > _data
Value of the point.
Definition: Point.h:52
float y() const
Get the Y component of the 3D point.
Definition: Point.cpp:59
Namespace ezc3d.
Definition: ezc3d.h:68
void print() const
Print the point.
Definition: Point.cpp:26
float residual() const
Get the residual component of the 3D point.
Definition: Point.cpp:80
float z() const
Get the Z component of the 3D point.
Definition: Point.cpp:69
Point()
Create an empty 3D point with memory allocated but not filled.
Definition: Point.cpp:12
Declaration of ezc3d class.
std::vector< float > data_nonConst()
Get a reference to the STL vector where the 3D point is store in order to be modified by the caller...
Definition: Point.cpp:44
void write(std::fstream &f) const
Write the point to an opened file.
Definition: Point.cpp:31
float x() const
Get the X component of the 3D point.
Definition: Point.cpp:49
bool isempty() const
Return if the point is empty.
Definition: Point.cpp:89