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 VV_DEFORMATION_DIALOG
19 #define VV_DEFORMATION_DIALOG
23 class vvSlicerManager;
25 #include "ui_vvDeformationDialog.h"
27 class vvDeformationDialog : public QDialog, private Ui::vvDeformationDialog
32 vvDeformationDialog(int initialSlicer,const std::vector<vvSlicerManager*>& slicerManagers);
33 int GetInputFileIndex() const {
34 return inputSequenceBox->currentIndex();
36 QString getFieldFile() const {
37 return outputLineEdit->text();
39 vvImage::Pointer GetOutput() {
42 vvSlicerManager * GetSelectedSlicer() const;
43 int GetReferenceFrameIndex() const;
46 void computeDeformationField();
47 void updateSliderLabel(int refimage);
48 void resetSlider(int slicer_index);
49 void selectOutputFile();
51 template<unsigned int Dim> void Update_WithDim();
52 template<unsigned int Dim,class PixelType> void Update_WithDimAndPixelType();
53 std::vector<vvSlicerManager*> mSlicerManagers;
54 vvImage::Pointer mOutput;