]> Creatis software - clitk.git/blob - vv/vvToolPlastimatch.h
Debug RTStruct conversion with empty struc
[clitk.git] / vv / vvToolPlastimatch.h
1 /*=========================================================================
2   Program:   vv                     http://www.creatis.insa-lyon.fr/rio/vv
3
4   Authors belong to: 
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
8
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.
12
13   It is distributed under dual licence
14
15   - BSD        See included LICENSE.txt file
16   - CeCILL-B   http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
17 ===========================================================================**/
18 #ifndef VVTOOLPLASTIMATCH_H
19 #define VVTOOLPLASTIMATCH_H
20
21 #if QT_VERSION >= 0x050000
22 #include <QtUiPlugin/QDesignerExportWidget>
23 #else
24 #include <QtDesigner/QDesignerExportWidget>
25 #endif
26
27 #include "vvToolBase.h"
28 #include "vvToolWidgetBase.h"
29 #include "vvImageContour.h"
30 #include "ui_vvToolPlastimatch.h"
31
32 #include "clitkBinarizeImage_ggo.h"
33
34 //------------------------------------------------------------------------------
35 class vvToolPlastimatch:
36   public vvToolWidgetBase,
37   public vvToolBase<vvToolPlastimatch>, 
38   private Ui::vvToolPlastimatch 
39 {
40   Q_OBJECT
41     public:
42   vvToolPlastimatch(vvMainWindowBase * parent=0, Qt::WindowFlags f=0);
43   ~vvToolPlastimatch();
44
45   //-----------------------------------------------------
46   static void Initialize();
47   void GetOptionsFromGUI();
48   virtual void InputIsSelected(std::vector<vvSlicerManager *> & m);
49
50   //-----------------------------------------------------
51   public slots:
52   virtual void apply();
53   virtual bool close();
54   virtual void reject();
55
56  protected:
57   virtual void closeEvent(QCloseEvent *event);
58   Ui::vvToolPlastimatch ui;
59   std::vector<vvSlicerManager *> m_InputSlicerManagers;
60
61   typedef itk::Image<float, 3>           FloatImageType;
62   typedef itk::Vector<float, 3>          FloatVectorType;
63   typedef itk::Image<FloatVectorType, 3> DeformationFieldType;  
64   vvImage::Pointer              m_Fixed;
65   vvImage::Pointer              m_Moving;
66   vtkImageData *                m_FixedVTK;
67   vtkImageData *                m_MovingVTK;
68   FloatImageType::ConstPointer  m_FixedITK;
69   FloatImageType::ConstPointer  m_MovingITK;  
70   DeformationFieldType::Pointer m_DeformationField;
71   FloatImageType::Pointer       m_WarpedImageITK;
72   vvImage::Pointer              m_WarpedImage;
73
74 }; // end class vvToolPlastimatch
75 //------------------------------------------------------------------------------
76
77 #endif
78