]> Creatis software - clitk.git/blobdiff - vv/vvToolProfile.h
Selection of the 2 points
[clitk.git] / vv / vvToolProfile.h
index baaf4a9e66f846f15dbb6df97a9980ec9f35c074..dd5efbdb61965d398689f2ae36a1a1ec2137ab8d 100644 (file)
@@ -43,6 +43,8 @@ class vvToolProfile:
   void GetArgsInfoFromGUI();
   virtual void InputIsSelected(vvSlicerManager * m);
 
+  bool isPointsSelected();
+
   //-----------------------------------------------------
   public slots:
   virtual void apply();
@@ -56,6 +58,10 @@ class vvToolProfile:
   void useFGBGtoggled(bool);
   void InteractiveDisplayToggled(bool b);
   //  void LeftButtonReleaseEvent(int slicer);
+  
+  void selectPoint1();
+  void selectPoint2();
+  void cancelPoints();
 
  protected:
   void RemoveVTKObjects();
@@ -66,6 +72,11 @@ class vvToolProfile:
   std::vector<vvImageContour::Pointer> mImageContourLower;
   bool mInteractiveDisplayIsEnabled;
   
+  double* mPoint1;
+  double* mPoint2;
+  bool point1Selected;
+  bool point2Selected;
+  
   void Update(int slicer);
 
 }; // end class vvToolProfile