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