#ifndef __ModelShowNPoints_h_INCLUDED__ #define __ModelShowNPoints_h_INCLUDED__ #include #include #include class ModelShowNPoints { public: ModelShowNPoints(); ~ModelShowNPoints(); std::vector GetLstPointsX(); std::vector GetLstPointsY(); std::vector GetLstPointsZ(); void GetIdPoint(int id, int *x, int *y, int *z); std::string GetIdLabel(int id); std::vector GetLstLabels(); void AddPoint(int x, int y, int z, std::string label); double Distance(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); int ReadPoints(std::string filename); int GetNearestPoint(); int GetLstPointsSize(); void SetPointId_mReferencePoint(int id); int IdInsidePoint(); void SetReferencePoint(std::vector ppoint); std::vector 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(); private: std::vector lstPointsX; std::vector lstPointsY; std::vector lstPointsZ; std::vector lstLabels; std::vector mReferencePoint; double mradio; vtkImageData *mimage; bool firsttime; }; #endif // __ModelShowNPoints_h_INCLUDED__