]> Creatis software - clitk.git/blob - vv/vvWipeImage.h
138866d0283246fcee54bdb93462bdc21d370aac
[clitk.git] / vv / vvWipeImage.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 VVWIPEIMAGE_H
19 #define VVWIPEIMAGE_H
20
21 //qt
22 #include <QtGlobal>
23 #include <QtDesigner/QDesignerExportWidget>
24 #include <QDialog>
25 #include <QSlider>
26 #include <QMessageBox>
27 #include "QTreePushButton.h"
28 // vv
29 #include "vvMainWindowBase.h"
30 #include "vvImage.h"
31 #include "vvImageReader.h"
32 #include "vvProgressDialog.h"
33 #include "vvSlicerManager.h"
34 #include "ui_vvWipeImage.h"
35 //vtk
36 #include <vtkTransform.h>
37 #include <vtkImageRectilinearWipe.h>
38 //itk
39 #include <itkLightObject.h>
40
41 //------------------------------------------------------------------------------
42 class vvWipeImage:
43   public QObject,
44   public itk::LightObject,
45   private Ui::vvWipeImage
46 {
47   Q_OBJECT
48     public:
49         
50   typedef vvWipeImage Self;
51   typedef itk::SmartPointer<Self> Pointer;
52   typedef itk::ProcessObject::Pointer ConverterPointer;
53   
54   itkNewMacro(Self);
55   vvWipeImage();
56   ~vvWipeImage();
57
58   void Initialize(QString inputPathName, std::vector<vvSlicerManager*> slicerManagers);
59   void selectWipeImage(int index);
60   void setInputImage(int number, vvImage::Pointer image);
61   void AddWipeImage(int index, std::vector<std::string> fileNames, vvImageReader::LoadedImageType type);
62
63 public slots:
64   void crossPointerChanged();
65
66  protected:
67   vtkSmartPointer<vtkImageRectilinearWipe> mWipe;
68   void UpdateWipe();
69   vtkSmartPointer<vtkMatrix4x4> mConcatenedTransform;
70   vvImage::Pointer mImage;
71   QString mInputPathName;
72   std::vector<vvSlicerManager*> mSlicerManagers;
73
74 }; // end class vvWipeImage
75 //------------------------------------------------------------------------------
76
77 #endif
78