1 /*=========================================================================
2 Program: vv http://www.creatis.insa-lyon.fr/rio/vv
5 - University of LYON http://www.universite-lyon.fr/
6 - Léon Bérard cancer center http://www.centreleonberard.fr
7 - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr
9 This software is distributed WITHOUT ANY WARRANTY; without even
10 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE. See the copyright notices for more information.
13 It is distributed under dual licence
15 - BSD See included LICENSE.txt file
16 - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
17 ===========================================================================**/
18 #ifndef VVTOOLPROFILE_H
19 #define VVTOOLPROFILE_H
21 #include <QtUiPlugin/QDesignerExportWidget>
23 #include "vvToolBase.h"
24 #include "vvToolWidgetBase.h"
25 #include "vvImageContour.h"
26 #include "ui_vvToolProfile.h"
28 #include "clitkProfileImage_ggo.h"
29 #include "clitkProfileImageGenericFilter.h"
31 #include <vtkContextView.h>
32 #include <vtkContextScene.h>
34 //------------------------------------------------------------------------------
36 public vvToolWidgetBase,
37 public vvToolBase<vvToolProfile>,
38 private Ui::vvToolProfile
42 vvToolProfile(vvMainWindowBase * parent=0, Qt::WindowFlags f=0);
45 //-----------------------------------------------------
46 static void Initialize();
47 void GetArgsInfoFromGUI();
48 virtual void InputIsSelected(vvSlicerManager * m);
50 bool isPointsSelected();
52 //-----------------------------------------------------
56 virtual void reject();
61 void computeProfile();
64 void RemoveVTKObjects();
65 virtual void closeEvent(QCloseEvent *event);
67 args_info_clitkProfileImage mArgsInfo;
73 vtkSmartPointer<vtkContextView> mView;
74 clitk::ProfileImageGenericFilter::Pointer mFilter;
77 }; // end class vvToolProfile
78 //------------------------------------------------------------------------------