X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvToolProfile.h;h=2f64bb3a656e28f10b93cf0107f35abe430714fb;hb=ac3b981712ff4d47eb17132d3eed06ce29db71a6;hp=d59e8035e0f3f1158d2fab1048f0a85e4e7e5411;hpb=f960afb3b3a66c547815425995d6f7c63dc811cd;p=clitk.git diff --git a/vv/vvToolProfile.h b/vv/vvToolProfile.h index d59e803..2f64bb3 100644 --- a/vv/vvToolProfile.h +++ b/vv/vvToolProfile.h @@ -19,11 +19,7 @@ #define VVTOOLPROFILE_H #include -#if QT_VERSION < 0x050000 #include -#else -#include -#endif #include "vvToolBase.h" #include "vvToolWidgetBase.h" @@ -37,6 +33,7 @@ #include #include #include +#include //------------------------------------------------------------------------------ class vvToolProfile: @@ -51,11 +48,13 @@ class vvToolProfile: //----------------------------------------------------- static void Initialize(); + void InitializeLine(); void GetArgsInfoFromGUI(); virtual void InputIsSelected(vvSlicerManager * m); bool isPointsSelected(); void computeProfile(); + void SetPoints(); //----------------------------------------------------- public slots: @@ -67,7 +66,8 @@ class vvToolProfile: void selectPoint2(); void cancelPoints(); void SaveAs(); - void DisplayLine(); + void DisplayLine(int); + void DeleteLine(int); protected: void RemoveVTKObjects(); @@ -75,15 +75,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