X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvToolProfile.h;h=1f5d6c96ceb5ec077d68c5533f7990e4fb082df7;hb=b0f9ef265dbfc67374eaa989e606d2b00d634f76;hp=dd5efbdb61965d398689f2ae36a1a1ec2137ab8d;hpb=c3f5fb33ede3fc84e36a9f97d530f93f5fe49e44;p=clitk.git diff --git a/vv/vvToolProfile.h b/vv/vvToolProfile.h index dd5efbd..1f5d6c9 100644 --- a/vv/vvToolProfile.h +++ b/vv/vvToolProfile.h @@ -23,9 +23,15 @@ #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: @@ -44,40 +50,36 @@ class vvToolProfile: 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; - double* mPoint1; - double* mPoint2; - bool point1Selected; - bool point2Selected; - - 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 //------------------------------------------------------------------------------