Computer Assited Medical Intervention Tool Kit
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RigidTransform.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * $CAMITK_LICENCE_BEGIN$
3  *
4  * CamiTK - Computer Assisted Medical Intervention ToolKit
5  * (c) 2001-2013 UJF-Grenoble 1, CNRS, TIMC-IMAG UMR 5525 (GMCAO)
6  *
7  * Visit http://camitk.imag.fr for more information
8  *
9  * This file is part of CamiTK.
10  *
11  * CamiTK is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * CamiTK is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU Lesser General Public License version 3 for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public License
21  * version 3 along with CamiTK. If not, see <http://www.gnu.org/licenses/>.
22  *
23  * $CAMITK_LICENCE_END$
24  ****************************************************************************/
25 
26 #ifndef RIGID_TRANSFORM_H
27 #define RIGID_TRANSFORM_H
28 
29 #include "Action.h"
30 #include "Component.h"
31 
32 using namespace camitk;
33 
34 #include <vtkTransform.h>
35 #include <vtkTransformFilter.h>
36 #include <vtkSmartPointer.h>
37 
38 #include "ui_RigidTransformDialog.h"
39 
40 
41 typedef vtkSmartPointer<vtkTransformFilter> vtkSmartPointerTransformFilter;
42 
46 class RigidTransform : public Action {
47  Q_OBJECT
48 
49 public:
52 
54  virtual ~RigidTransform();
55 
57  virtual QWidget * getWidget();
58 
59 public slots:
61  virtual ApplyStatus apply();
62 
63 private slots:
65  void preview();
66 
68  void close();
69 
73  void update(bool forceUpdate=false);
74 
76  void load();
77 
79  void save();
80 
82  void reset();
83 
84 private:
86  void init();
87 
89  vtkSmartPointer<vtkTransform> transformation;
90 
92  QList< vtkSmartPointerTransformFilter > filterList;
93 
95  Ui::RigidTransformDialog myUI;
96 
98  QDialog *dialog;
99 
100 };
101 
102 #endif // RIGID_TRANSFORM_H