]> Creatis software - clitk.git/blobdiff - vv/vvToolProfile.h
Display a line between Profile points
[clitk.git] / vv / vvToolProfile.h
index 072dc3aafcc2175d91ada9bd72d8e86028eb8a14..7467cf4c49455e9c9216a66793ef0d883c9cdc95 100644 (file)
@@ -23,7 +23,9 @@
 #include "vvToolBase.h"
 #include "vvToolWidgetBase.h"
 #include "vvImageContour.h"
+#include "vvLandmarks.h"
 #include "ui_vvToolProfile.h"
+#include "vvBinaryImageOverlayActor.h"
 
 #include "clitkProfileImage_ggo.h"
 #include "clitkProfileImageGenericFilter.h"
@@ -44,10 +46,13 @@ class vvToolProfile:
 
   //-----------------------------------------------------
   static void Initialize();
+  void InitializeLine();
   void GetArgsInfoFromGUI();
   virtual void InputIsSelected(vvSlicerManager * m);
 
   bool isPointsSelected();
+  void computeProfile();
+  void SetPoints();
 
   //-----------------------------------------------------
   public slots:
@@ -58,7 +63,9 @@ class vvToolProfile:
   void selectPoint1();
   void selectPoint2();
   void cancelPoints();
-  void computeProfile();
+  void SaveAs();
+  void DisplayLine(int);
+  void DeleteLine(int);
 
  protected:
   void RemoveVTKObjects();
@@ -72,6 +79,9 @@ class vvToolProfile:
   bool mPoint2Selected;
   vtkSmartPointer<vtkContextView> mView;
   clitk::ProfileImageGenericFilter::Pointer mFilter;
+  std::string mTextFileName;
+  std::vector<vtkSmartPointer<vtkActor> > mLineActors;
+  vtkSmartPointer<vtkPolyData> mLinesPolyData;
 
 
 }; // end class vvToolProfile