]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/ModelShowNPoints.h
#3096 creaMaracasVisu Feature New Normal - Box ShowNPoints_Reset
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / ModelShowNPoints.h
1
2 #ifndef __ModelShowNPoints_h_INCLUDED__
3 #define __ModelShowNPoints_h_INCLUDED__
4
5
6 #include <vector>
7 #include <string>
8 #include <vtkImageData.h>
9
10
11 class ModelShowNPoints
12   {
13         public:
14           ModelShowNPoints();
15           ~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           int                                           ReadPoints(std::string filename);
27           int                                           GetNearestPoint();
28
29           int                                           GetLstPointsSize();
30           void                                          SetPointId_mReferencePoint(int id);
31           int                                           IdInsidePoint();
32
33           void                                          SetReferencePoint(std::vector<int> ppoint);
34           std::vector<int>                      GetReferencePoint();
35           void                                          SetImage(vtkImageData *image);
36           std::string                           CleanSpaces(std::string ss);
37           vtkImageData*                         GetImage();
38           void                                          SetRadio(double radio);
39           double                                        GetRadio();
40           int                                           RenamePoint(std::string label);
41           void                                          ErasePoint(int id);
42           void                                          SetFirstTime(bool value);
43           bool                                          GetFirstTime();
44
45         private:
46           std::vector<int>              lstPointsX;
47           std::vector<int>              lstPointsY;
48           std::vector<int>              lstPointsZ;
49           std::vector<std::string>      lstLabels;
50           std::vector<int>                      mReferencePoint;
51           double                                mradio;
52           vtkImageData                          *mimage;
53           bool                                                  firsttime;
54
55   };
56
57
58 #endif // __ModelShowNPoints_h_INCLUDED__
59
60