X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvToolProfile.h;h=0410637f396b79a1f08faad0502c97b0918aef7e;hb=5c7d0fb1118c51f5441a667af081b5703ad55442;hp=b17bd5cc819e3e89c9909b902ad28ee1e3078b32;hpb=6543794d0c4718aaa344b28acc77ca18d423f1f3;p=clitk.git diff --git a/vv/vvToolProfile.h b/vv/vvToolProfile.h index b17bd5c..0410637 100644 --- a/vv/vvToolProfile.h +++ b/vv/vvToolProfile.h @@ -18,10 +18,11 @@ #ifndef VVTOOLPROFILE_H #define VVTOOLPROFILE_H -#if QT_VERSION < 0x050000 -#include -#else +#include +#if QT_VERSION >= 0x050000 #include +#else +#include #endif #include "vvToolBase.h" @@ -36,6 +37,7 @@ #include #include #include +#include //------------------------------------------------------------------------------ class vvToolProfile: @@ -50,11 +52,13 @@ class vvToolProfile: //----------------------------------------------------- static void Initialize(); + void InitializeLine(); void GetArgsInfoFromGUI(); virtual void InputIsSelected(vvSlicerManager * m); bool isPointsSelected(); void computeProfile(); + void SetPoints(); //----------------------------------------------------- public slots: @@ -66,7 +70,8 @@ class vvToolProfile: void selectPoint2(); void cancelPoints(); void SaveAs(); - void DisplayLine(); + void DisplayLine(int); + void DeleteLine(int); protected: void RemoveVTKObjects(); @@ -74,15 +79,16 @@ class vvToolProfile: Ui::vvToolProfile ui; args_info_clitkProfileImage mArgsInfo; - int* mPoint1; - int* mPoint2; + double* mPoint1; + double* mPoint2; bool mPoint1Selected; bool mPoint2Selected; vtkSmartPointer mView; clitk::ProfileImageGenericFilter::Pointer mFilter; std::string mTextFileName; - vvImage::Pointer mImageLine; - std::vector< vvBinaryImageOverlayActor::Pointer > mOverlayActors; + std::vector > mLineActors; + vtkSmartPointer mLinesPolyData; + vtkSmartPointer mLineTransform; }; // end class vvToolProfile