Computer Assited Medical Intervention Tool Kit  version 3.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
MoveFrame.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * $CAMITK_LICENCE_BEGIN$
3  *
4  * CamiTK - Computer Assisted Medical Intervention ToolKit
5  * (c) 2001-2014 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 MOVEFRAME_H
27 #define MOVEFRAME_H
28 
29 #include "Action.h"
30 #include "Component.h"
31 
32 #include <QVector3D>
33 
34 #include <vtkTransform.h>
35 #include <vtkTransformFilter.h>
36 #include <vtkSmartPointer.h>
37 
38 #include "ui_MoveFrame.h"
39 
40 
44 class MoveFrame : public camitk::Action {
45  Q_OBJECT
46 
47 public:
50 
52  virtual ~MoveFrame();
53 
55  virtual QWidget * getWidget();
56 
57 public slots:
59  virtual ApplyStatus apply();
60 
61  virtual void translate();
62  virtual void setTranslation();
63  virtual void rotate();
64  virtual void setRotation();
65  virtual void save();
66  virtual void changeParent();
67 
68 private slots:
69 
71  void reset();
72 
73 private:
75  void init();
76 
78  vtkTransform * transformation;
79 
81  QVector3D initialPosition;
82  QVector3D initialOrientation;
83 
85 // QList< vtkSmartPointer<vtkTransformFilter> > filterList;
86 
88  Ui::MoveFrame ui;
89 
91  QDialog *dialog;
92 
94 
95 };
96 
97 #endif // MOVEFRAME_H
void reset()
slot called when reset is ckicked, reset the transformation to Identity
Definition: MoveFrame.cpp:150
virtual ~MoveFrame()
Destructor.
Definition: MoveFrame.cpp:102
Action class is an abstract class that enables you to build a action (generally on a component)...
Definition: Action.h:184
virtual void rotate()
Definition: MoveFrame.cpp:243
virtual void translate()
Definition: MoveFrame.cpp:225
virtual QWidget * getWidget()
this method creates and returns the widget containing the user interface for the action ...
Definition: MoveFrame.cpp:109
A Component represents something that could be included in the explorer view, the interactive 3D view...
Definition: sdk/libraries/core/component/Component.h:299
MoveFrame(camitk::ActionExtension *)
the constructor
Definition: MoveFrame.cpp:55
This class describes what is a generic Action extension.
Definition: ActionExtension.h:61
QVector3D initialOrientation
Definition: MoveFrame.h:82
virtual void save()
Definition: MoveFrame.cpp:262
QDialog * dialog
the dialog
Definition: MoveFrame.h:91
virtual void setTranslation()
Definition: MoveFrame.cpp:234
virtual void changeParent()
Definition: MoveFrame.cpp:130
virtual ApplyStatus apply()
method called when the action is applied
Definition: MoveFrame.cpp:203
QVector3D initialPosition
initial transformation
Definition: MoveFrame.h:81
virtual void setRotation()
Definition: MoveFrame.cpp:252
camitk::Component * inputFrame
Definition: MoveFrame.h:93
ApplyStatus
describes what happened during the application of an algorithm (i.e. results of the apply method) ...
Definition: Action.h:196
Ui::MoveFrame ui
current transform filters (one per selected object)
Definition: MoveFrame.h:88
void init()
initialize the dialog
Definition: MoveFrame.cpp:72
vtkTransform * transformation
current transformation
Definition: MoveFrame.h:78
This action allows you to apply a linear transformation (translation,rotation around axes) on the top...
Definition: MoveFrame.h:44