X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvToolProfile.h;h=d59e8035e0f3f1158d2fab1048f0a85e4e7e5411;hb=f960afb3b3a66c547815425995d6f7c63dc811cd;hp=baaf4a9e66f846f15dbb6df97a9980ec9f35c074;hpb=ebc1acee802a4dd54c3ff05662d3c7087c7aa882;p=clitk.git diff --git a/vv/vvToolProfile.h b/vv/vvToolProfile.h index baaf4a9..d59e803 100644 --- a/vv/vvToolProfile.h +++ b/vv/vvToolProfile.h @@ -18,14 +18,25 @@ #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 "ui_vvToolProfile.h" +#include "vvBinaryImageOverlayActor.h" #include "clitkProfileImage_ggo.h" +#include "clitkProfileImageGenericFilter.h" +#include +#include +#include //------------------------------------------------------------------------------ class vvToolProfile: @@ -43,30 +54,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 //------------------------------------------------------------------------------