X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvToolProfile.h;h=b17bd5cc819e3e89c9909b902ad28ee1e3078b32;hb=6543794d0c4718aaa344b28acc77ca18d423f1f3;hp=baaf4a9e66f846f15dbb6df97a9980ec9f35c074;hpb=ebc1acee802a4dd54c3ff05662d3c7087c7aa882;p=clitk.git diff --git a/vv/vvToolProfile.h b/vv/vvToolProfile.h index baaf4a9..b17bd5c 100644 --- a/vv/vvToolProfile.h +++ b/vv/vvToolProfile.h @@ -18,14 +18,24 @@ #ifndef VVTOOLPROFILE_H #define VVTOOLPROFILE_H +#if QT_VERSION < 0x050000 +#include +#else #include +#endif #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 //------------------------------------------------------------------------------ class vvToolProfile: @@ -43,30 +53,37 @@ class vvToolProfile: void GetArgsInfoFromGUI(); virtual void InputIsSelected(vvSlicerManager * m); + bool isPointsSelected(); + void computeProfile(); + //----------------------------------------------------- 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 SaveAs(); + void DisplayLine(); protected: void RemoveVTKObjects(); virtual void closeEvent(QCloseEvent *event); Ui::vvToolProfile ui; args_info_clitkProfileImage mArgsInfo; - std::vector mImageContour; - std::vector mImageContourLower; - bool mInteractiveDisplayIsEnabled; - void Update(int slicer); + int* mPoint1; + int* mPoint2; + bool mPoint1Selected; + bool mPoint2Selected; + vtkSmartPointer mView; + clitk::ProfileImageGenericFilter::Pointer mFilter; + std::string mTextFileName; + vvImage::Pointer mImageLine; + std::vector< vvBinaryImageOverlayActor::Pointer > mOverlayActors; + }; // end class vvToolProfile //------------------------------------------------------------------------------