X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvLandmarks.h;h=285b24a741033d30cd8be685d5a88c38d1397bc8;hb=73f0ab806cbb168db4d09908a714f8b7a662ee21;hp=cd564dc1c8aced4cab057d5f148931b75612451b;hpb=8410a88a08678a4b2e026b5bc2c61adaef763c05;p=clitk.git diff --git a/vv/vvLandmarks.h b/vv/vvLandmarks.h index cd564dc..285b24a 100644 --- a/vv/vvLandmarks.h +++ b/vv/vvLandmarks.h @@ -25,6 +25,7 @@ #include "vtkPoints.h" #include "vvLandmarksGlyph.h" #include "vtkStringArray.h" +#include //typedef struct vvLandmark { @@ -43,12 +44,17 @@ public : void SaveFile(std::string filename); void AddLandmark(float x,float y,float z,float t,double value); + void TransformUpdate(vtkAbstractTransform* transform); void RemoveLastLandmark(); + void RemoveLandmarkWithLabel(vtkStdString, int); void RemoveLandmark(int index); + void RemoveAll(); + void ChangeComments(int index, std::string comments); float* GetCoordinates(int index); double GetPixelValue(int index); std::string GetComments(int index); + vtkStringArray* GetLabels() { return mLabels[mTime]; } unsigned int GetNumberOfPoints() { return (unsigned int) mLandmarks[mTime].size(); } //int GetNumberOfSources(){return mText.size();} @@ -67,6 +73,7 @@ private: typedef std::vector LandmarkContainerType; std::vector mLandmarks; + std::vector mLandmarksInitial; vtkPolyData *mPolyData; std::vector mPoints;