]> Creatis software - clitk.git/blob - vv/vvToolPlastimatch.h
cosmetic
[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 #include <QtDesigner/QDesignerExportWidget>
22
23 #include "vvToolBase.h"
24 #include "vvToolWidgetBase.h"
25 #include "vvImageContour.h"
26 #include "ui_vvToolPlastimatch.h"
27
28 #include "clitkBinarizeImage_ggo.h"
29
30 //------------------------------------------------------------------------------
31 class vvToolPlastimatch:
32   public vvToolWidgetBase,
33   public vvToolBase<vvToolPlastimatch>, 
34   private Ui::vvToolPlastimatch 
35 {
36   Q_OBJECT
37     public:
38   vvToolPlastimatch(vvMainWindowBase * parent=0, Qt::WindowFlags f=0);
39   ~vvToolPlastimatch();
40
41   //-----------------------------------------------------
42   static void Initialize();
43   void GetOptionsFromGUI();
44   virtual void InputIsSelected(std::vector<vvSlicerManager *> & m);
45
46   //-----------------------------------------------------
47   public slots:
48   virtual void apply();
49   virtual bool close();
50   virtual void reject();
51
52  protected:
53   virtual void closeEvent(QCloseEvent *event);
54   Ui::vvToolPlastimatch ui;
55   std::vector<vvSlicerManager *> m_InputSlicerManagers;
56
57   typedef itk::Image<float, 3>           FloatImageType;
58   typedef itk::Vector<float, 3>          FloatVectorType;
59   typedef itk::Image<FloatVectorType, 3> DeformationFieldType;  
60   vvImage::Pointer              m_Fixed;
61   vvImage::Pointer              m_Moving;
62   vtkImageData *                m_FixedVTK;
63   vtkImageData *                m_MovingVTK;
64   FloatImageType::ConstPointer  m_FixedITK;
65   FloatImageType::ConstPointer  m_MovingITK;  
66   DeformationFieldType::Pointer m_DeformationField;
67   FloatImageType::Pointer       m_WarpedImageITK;
68   vvImage::Pointer              m_WarpedImage;
69
70 }; // end class vvToolPlastimatch
71 //------------------------------------------------------------------------------
72
73 #endif
74