Computer Assited Medical Intervention Tool Kit  version 4.0
EditFrame.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * $CAMITK_LICENCE_BEGIN$
3  *
4  * CamiTK - Computer Assisted Medical Intervention ToolKit
5  * (c) 2001-2016 Univ. Grenoble Alpes, 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 EDITFRAME_H
27 #define EDITFRAME_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 
43 class EditFrame : public camitk::Action {
44  Q_OBJECT
45 
46 public:
49 
51  virtual ~EditFrame();
52 
54  virtual QWidget * getWidget();
55 
56 public slots:
61  virtual ApplyStatus apply();
62 
66  virtual void save();
67 
71  virtual void load();
72 
76  virtual void changeParent();
77 
78 private slots:
79 
81  void reset();
82 
83 private:
85  void init();
86 
88  Ui::MoveFrame ui;
89 
91  QDialog *dialog;
92 
95 
96 };
97 
98 #endif // EDITFRAME_H
virtual ApplyStatus apply()
Update the component&#39;s frame with the translation and rotation parameters of the widget.
Definition: EditFrame.cpp:211
EditFrame(camitk::ActionExtension *)
the constructor
Definition: EditFrame.cpp:56
Action class is an abstract class that enables you to build a action (generally on a component)...
Definition: Action.h:208
virtual void changeParent()
Change the current frame&#39;s parent.
Definition: EditFrame.cpp:171
virtual void load()
Load a frame description from a file.
Definition: EditFrame.cpp:278
void init()
initialize the dialog
Definition: EditFrame.cpp:74
This action allows you to apply a linear transformation (translation,rotation around axes) on the top...
Definition: EditFrame.h:43
A Component represents something that could be included in the explorer view, the interactive 3D view...
Definition: sdk/libraries/core/component/Component.h:299
This class describes what is a generic Action extension.
Definition: ActionExtension.h:61
ApplyStatus
describes what happened during the application of an algorithm (i.e. results of the apply method) ...
Definition: Action.h:220
camitk::Component * inputFrame
the component&#39;s frame we work on
Definition: EditFrame.h:94
void reset()
slot called when reset is ckicked, reset the transformation to Identity
Definition: EditFrame.cpp:196
QDialog * dialog
the dialog
Definition: EditFrame.h:91
Ui::MoveFrame ui
the Qt Gui
Definition: EditFrame.h:88
virtual void save()
Save the current frame to a file.
Definition: EditFrame.cpp:224
virtual ~EditFrame()
Destructor.
Definition: EditFrame.cpp:116
virtual QWidget * getWidget()
this method creates and returns the widget containing the user interface for the action ...
Definition: EditFrame.cpp:122