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 "vvLandmarks.h"
27 #include "ui_vvToolProfile.h"
28 #include "vvBinaryImageOverlayActor.h"
30 #include "clitkProfileImage_ggo.h"
31 #include "clitkProfileImageGenericFilter.h"
33 #include <vtkContextView.h>
34 #include <vtkContextScene.h>
36 //------------------------------------------------------------------------------
38 public vvToolWidgetBase,
39 public vvToolBase<vvToolProfile>,
40 private Ui::vvToolProfile
44 vvToolProfile(vvMainWindowBase * parent=0, Qt::WindowFlags f=0);
47 //-----------------------------------------------------
48 static void Initialize();
49 void InitializeLine();
50 void GetArgsInfoFromGUI();
51 virtual void InputIsSelected(vvSlicerManager * m);
53 bool isPointsSelected();
54 void computeProfile();
57 //-----------------------------------------------------
61 virtual void reject();
67 void DisplayLine(int);
71 void RemoveVTKObjects();
72 virtual void closeEvent(QCloseEvent *event);
74 args_info_clitkProfileImage mArgsInfo;
80 vtkSmartPointer<vtkContextView> mView;
81 clitk::ProfileImageGenericFilter::Pointer mFilter;
82 std::string mTextFileName;
83 std::vector<vtkSmartPointer<vtkActor> > mLineActors;
84 vtkSmartPointer<vtkPolyData> mLinesPolyData;
87 }; // end class vvToolProfile
88 //------------------------------------------------------------------------------