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
22 #include <QtDesigner/QDesignerExportWidget>
24 #include "vvToolBase.h"
25 #include "vvToolWidgetBase.h"
26 #include "vvImageContour.h"
27 #include "vvLandmarks.h"
28 #include "ui_vvToolProfile.h"
29 #include "vvBinaryImageOverlayActor.h"
31 #include "clitkProfileImage_ggo.h"
32 #include "clitkProfileImageGenericFilter.h"
34 #include <vtkContextView.h>
35 #include <vtkContextScene.h>
36 #include <vtkTransformPolyDataFilter.h>
38 //------------------------------------------------------------------------------
40 public vvToolWidgetBase,
41 public vvToolBase<vvToolProfile>,
42 private Ui::vvToolProfile
46 vvToolProfile(vvMainWindowBase * parent=0, Qt::WindowFlags f=0);
49 //-----------------------------------------------------
50 static void Initialize();
51 void InitializeLine();
52 void GetArgsInfoFromGUI();
53 virtual void InputIsSelected(vvSlicerManager * m);
55 bool isPointsSelected();
56 void computeProfile();
59 //-----------------------------------------------------
63 virtual void reject();
69 void DisplayLine(int);
73 void RemoveVTKObjects();
74 virtual void closeEvent(QCloseEvent *event);
76 args_info_clitkProfileImage mArgsInfo;
82 vtkSmartPointer<vtkContextView> mView;
83 clitk::ProfileImageGenericFilter::Pointer mFilter;
84 std::string mTextFileName;
85 std::vector<vtkSmartPointer<vtkActor> > mLineActors;
86 vtkSmartPointer<vtkPolyData> mLinesPolyData;
87 vtkSmartPointer<vtkTransformPolyDataFilter> mLineTransform;
90 }; // end class vvToolProfile
91 //------------------------------------------------------------------------------