X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvToolProfile.h;h=2f64bb3a656e28f10b93cf0107f35abe430714fb;hb=140bf134a2e40ba737bdb85f040d2a052c9a8e2a;hp=072dc3aafcc2175d91ada9bd72d8e86028eb8a14;hpb=e502d745ac4c73037ef615931db2dcbf36a94341;p=clitk.git diff --git a/vv/vvToolProfile.h b/vv/vvToolProfile.h index 072dc3a..2f64bb3 100644 --- a/vv/vvToolProfile.h +++ b/vv/vvToolProfile.h @@ -18,18 +18,22 @@ #ifndef VVTOOLPROFILE_H #define VVTOOLPROFILE_H -#include +#include +#include #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" #include #include #include +#include //------------------------------------------------------------------------------ class vvToolProfile: @@ -44,10 +48,13 @@ class vvToolProfile: //----------------------------------------------------- static void Initialize(); + void InitializeLine(); void GetArgsInfoFromGUI(); virtual void InputIsSelected(vvSlicerManager * m); bool isPointsSelected(); + void computeProfile(); + void SetPoints(); //----------------------------------------------------- public slots: @@ -58,7 +65,9 @@ class vvToolProfile: void selectPoint1(); void selectPoint2(); void cancelPoints(); - void computeProfile(); + void SaveAs(); + void DisplayLine(int); + void DeleteLine(int); protected: void RemoveVTKObjects(); @@ -66,12 +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; + std::vector > mLineActors; + vtkSmartPointer mLinesPolyData; + vtkSmartPointer mLineTransform; }; // end class vvToolProfile