X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvToolProfile.h;h=0f94ff3a9177c52b81afa0e25eaedfc865d2ea3c;hb=769d159c09a35005afb6934fae83843f0b116d36;hp=1f5d6c96ceb5ec077d68c5533f7990e4fb082df7;hpb=378fda2b10be14df3525850e682bec4a333b6956;p=clitk.git diff --git a/vv/vvToolProfile.h b/vv/vvToolProfile.h index 1f5d6c9..0f94ff3 100644 --- a/vv/vvToolProfile.h +++ b/vv/vvToolProfile.h @@ -18,13 +18,23 @@ #ifndef VVTOOLPROFILE_H #define VVTOOLPROFILE_H +#include +#if QT_VERSION >= 0x050000 #include +#else +#include +#endif #include "vvToolBase.h" #include "vvToolWidgetBase.h" #include "vvImageContour.h" #include "vvLandmarks.h" +#include +#if (VTK_MAJOR_VERSION == 8 && VTK_MINOR_VERSION >= 1) || VTK_MAJOR_VERSION >= 9 #include "ui_vvToolProfile.h" +#else +#include "ui_vvToolProfileVTK7.h" +#endif #include "vvBinaryImageOverlayActor.h" #include "clitkProfileImage_ggo.h" @@ -32,6 +42,7 @@ #include #include #include +#include //------------------------------------------------------------------------------ class vvToolProfile: @@ -46,11 +57,13 @@ class vvToolProfile: //----------------------------------------------------- static void Initialize(); + void InitializeLine(); void GetArgsInfoFromGUI(); virtual void InputIsSelected(vvSlicerManager * m); bool isPointsSelected(); void computeProfile(); + void SetPoints(); //----------------------------------------------------- public slots: @@ -62,7 +75,8 @@ class vvToolProfile: void selectPoint2(); void cancelPoints(); void SaveAs(); - void DisplayLine(); + void DisplayLine(int); + void DeleteLine(int); protected: void RemoveVTKObjects(); @@ -70,15 +84,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