X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvToolProfile.h;h=2f64bb3a656e28f10b93cf0107f35abe430714fb;hb=140bf134a2e40ba737bdb85f040d2a052c9a8e2a;hp=ecccf06f5abe4737c8a280af93f666762b9f9377;hpb=e01ff4c52156fd3827d8aed581a21cc236d9ac43;p=clitk.git diff --git a/vv/vvToolProfile.h b/vv/vvToolProfile.h index ecccf06..2f64bb3 100644 --- a/vv/vvToolProfile.h +++ b/vv/vvToolProfile.h @@ -18,14 +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: @@ -40,45 +48,44 @@ class vvToolProfile: //----------------------------------------------------- static void Initialize(); + void InitializeLine(); void GetArgsInfoFromGUI(); virtual void InputIsSelected(vvSlicerManager * m); bool isPointsSelected(); + void computeProfile(); + void SetPoints(); //----------------------------------------------------- public slots: virtual void apply(); virtual bool close(); virtual void reject(); - void valueChangedT1(double v); - void valueChangedT2(double v); - void UpdateOrientation(int slicer, int orientation); - void UpdateSlice(int slicer,int slices); - void enableLowerThan(bool b); - void useFGBGtoggled(bool); - void InteractiveDisplayToggled(bool b); - // void LeftButtonReleaseEvent(int slicer); void selectPoint1(); void selectPoint2(); void cancelPoints(); - void computeProfile(); + void SaveAs(); + void DisplayLine(int); + void DeleteLine(int); protected: void RemoveVTKObjects(); virtual void closeEvent(QCloseEvent *event); Ui::vvToolProfile ui; args_info_clitkProfileImage mArgsInfo; - std::vector mImageContour; - std::vector mImageContourLower; - bool mInteractiveDisplayIsEnabled; - int* mPoint1; - int* mPoint2; - bool point1Selected; - bool point2Selected; - - void Update(int slicer); + 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 //------------------------------------------------------------------------------