2 #ifndef __ModelShowNPoints_h_INCLUDED__
3 #define __ModelShowNPoints_h_INCLUDED__
8 #include <vtkImageData.h>
11 class ModelShowNPoints
16 std::vector<int> GetLstPointsX();
17 std::vector<int> GetLstPointsY();
18 std::vector<int> GetLstPointsZ();
19 void GetIdPoint(int id, int *x, int *y, int *z);
20 std::string GetIdLabel(int id);
21 std::vector<std::string> GetLstLabels();
22 void AddPoint(int x, int y, int z, std::string label);
23 double Distance(double dX0, double dY0, double dZ0, double dX1, double dY1, double dZ1);
24 int InsertPoint(int x, int y, int z, std::string label);
25 void SavePoints(std::string filename);
26 void SavePoints_(FILE* ff);
28 int ReadPoints(std::string filename);
29 int GetNearestPoint();
31 int GetLstPointsSize();
32 void SetPointId_mReferencePoint(int id);
35 void SetReferencePoint(std::vector<int> ppoint);
36 std::vector<int> GetReferencePoint();
37 void SetImage(vtkImageData *image);
38 std::string CleanSpaces(std::string ss);
39 vtkImageData* GetImage();
40 void SetRadio(double radio);
42 int RenamePoint(std::string label);
43 void ErasePoint(int id);
44 void SetFirstTime(bool value);
48 std::vector<int> lstPointsX;
49 std::vector<int> lstPointsY;
50 std::vector<int> lstPointsZ;
51 std::vector<std::string> lstLabels;
52 std::vector<int> mReferencePoint;
60 #endif // __ModelShowNPoints_h_INCLUDED__