/*========================================================================= Program: vv http://www.creatis.insa-lyon.fr/rio/vv Authors belong to: - University of LYON http://www.universite-lyon.fr/ - Léon Bérard cancer center http://www.centreleonberard.fr - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the copyright notices for more information. It is distributed under dual licence - BSD See included LICENSE.txt file - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html ===========================================================================**/ #ifndef VVTOOLPROFILE_H #define VVTOOLPROFILE_H #include #include "vvToolBase.h" #include "vvToolWidgetBase.h" #include "vvImageContour.h" #include "ui_vvToolProfile.h" #include "clitkProfileImage_ggo.h" //------------------------------------------------------------------------------ class vvToolProfile: public vvToolWidgetBase, public vvToolBase, private Ui::vvToolProfile { Q_OBJECT public: vvToolProfile(vvMainWindowBase * parent=0, Qt::WindowFlags f=0); ~vvToolProfile(); //----------------------------------------------------- static void Initialize(); void GetArgsInfoFromGUI(); virtual void InputIsSelected(vvSlicerManager * m); //----------------------------------------------------- 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); 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); }; // end class vvToolProfile //------------------------------------------------------------------------------ #endif