]> Creatis software - clitk.git/blobdiff - vv/vvToolProfile.h
Avoid Warnings with QtDesigner include and Qt5
[clitk.git] / vv / vvToolProfile.h
index 072dc3aafcc2175d91ada9bd72d8e86028eb8a14..d59e8035e0f3f1158d2fab1048f0a85e4e7e5411 100644 (file)
 #ifndef VVTOOLPROFILE_H
 #define VVTOOLPROFILE_H
 
+#include <QtGlobal>
+#if QT_VERSION < 0x050000
+#include <QtDesigner/QDesignerExportWidget>
+#else
 #include <QtUiPlugin/QDesignerExportWidget>
+#endif
 
 #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"
@@ -48,6 +55,7 @@ class vvToolProfile:
   virtual void InputIsSelected(vvSlicerManager * m);
 
   bool isPointsSelected();
+  void computeProfile();
 
   //-----------------------------------------------------
   public slots:
@@ -58,7 +66,8 @@ class vvToolProfile:
   void selectPoint1();
   void selectPoint2();
   void cancelPoints();
-  void computeProfile();
+  void SaveAs();
+  void DisplayLine();
 
  protected:
   void RemoveVTKObjects();
@@ -72,6 +81,9 @@ class vvToolProfile:
   bool mPoint2Selected;
   vtkSmartPointer<vtkContextView> mView;
   clitk::ProfileImageGenericFilter::Pointer mFilter;
+  std::string mTextFileName;
+  vvImage::Pointer mImageLine;
+  std::vector< vvBinaryImageOverlayActor::Pointer > mOverlayActors;
 
 
 }; // end class vvToolProfile