public:
ModelShowNPoints();
~ModelShowNPoints();
- std::vector<int> GetLstPointsX();
- std::vector<int> GetLstPointsY();
- std::vector<int> GetLstPointsZ();
- void GetIdPoint(int id, int *x, int *y, int *z);
- std::string GetIdLabel(int id);
- std::vector<std::string> GetLstLabels();
- void AddPoint(int x, int y, int z, std::string label);
- double DistanceSQ(double dX0, double dY0, double dZ0, double dX1, double dY1, double dZ1);
- int InsertPoint(int x, int y, int z, std::string label);
- void SavePoints(std::string filename);
- void SavePoints_(FILE* ff);
+ std::vector<double> GetLstPointsX();
+ std::vector<double> GetLstPointsY();
+ std::vector<double> GetLstPointsZ();
+ void GetIdPoint(int id, double *x, double *y, double *z);
+ std::string GetIdLabel(int id);
+ std::vector<std::string> GetLstLabels();
+ void AddPoint(double x, double y, double z, std::string label);
+ double DistanceSQ(double dX0, double dY0, double dZ0, double dX1, double dY1, double dZ1);
+ int InsertPoint(double x, double y, double z, std::string label);
+ void SavePoints(std::string filename);
+ void SavePoints_(FILE* ff);
- int ReadPoints(std::string filename);
- int ReadPoints_(FILE* ff);
- int GetNearestPoint();
+ int ReadPoints(std::string filename);
+ int ReadPoints_(FILE* ff);
+ int GetNearestPoint();
- int GetLstPointsSize();
- void SetPointId_mReferencePoint(int id);
- int IdInsidePoint();
+ int GetLstPointsSize();
+ void SetPointId_mReferencePoint(int id);
+ int IdInsidePoint();
- void SetPointById(int id, std::vector<double> point);
+ void SetPointById(int id, std::vector<double> point);
- void SetReferencePoint(std::vector<int> ppoint);
- std::vector<int> GetReferencePoint();
- void SetImage(vtkImageData *image);
- std::string CleanSpaces(std::string ss);
- vtkImageData* GetImage();
- void SetRadio(double radio);
- double GetRadio();
- int RenamePoint(std::string label);
- void ErasePoint(int id);
- void SetFirstTime(bool value);
- bool GetFirstTime();
- void InversLstPoints();
+ void SetReferencePoint(std::vector<double> ppoint);
+ std::vector<double> GetReferencePoint();
+ void SetImage(vtkImageData *image);
+ std::string CleanSpaces(std::string ss);
+ vtkImageData* GetImage();
+ void SetRadio(double radio);
+ double GetRadio();
+ int RenamePoint(std::string label);
+ void ErasePoint(int id);
+ void SetFirstTime(bool value);
+ bool GetFirstTime();
+ void InversLstPoints();
private:
- std::vector<int> lstPointsX;
- std::vector<int> lstPointsY;
- std::vector<int> lstPointsZ;
+ std::vector<double> lstPointsX;
+ std::vector<double> lstPointsY;
+ std::vector<double> lstPointsZ;
std::vector<std::string> lstLabels;
- std::vector<int> mReferencePoint;
+ std::vector<double> mReferencePoint;
double mradio;
vtkImageData *mimage;
bool firsttime;