Computer Assited Medical Intervention Tool Kit  version 4.1
FrameEditor.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * $CAMITK_LICENCE_BEGIN$
3  *
4  * CamiTK - Computer Assisted Medical Intervention ToolKit
5  * (c) 2001-2018 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 FRAMEEDITOR_H
27 #define FRAMEEDITOR_H
28 
29 #include "Action.h"
30 #include "Component.h"
31 
32 #include <QVector>
33 #include <QLineEdit>
34 
35 #include "ui_FrameEditor.h"
36 
40 class FrameEditor : public camitk::Action {
41  Q_OBJECT
42 
43 public:
46 
48  virtual ~FrameEditor();
49 
51  virtual QWidget* getWidget();
52 
53 public slots:
58  virtual ApplyStatus apply();
59 
60 
61  virtual void displayFrameToggled(bool);
62  virtual void frameSizeChanged(int val);
63 
64  virtual void setParentFrame();
65 
66  virtual void transformationChanged();
67  virtual void setTransformation();
68 
69  virtual void translationChanged();
70  virtual void translate();
71  virtual void setTranslation();
72 
73  virtual void rotationChanged();
74  virtual void rotate();
75  virtual void setRotation();
76 
77 
78 protected:
80 
81 private:
83  void init();
84 
86  Ui::FrameEditor ui;
87 
88  QWidget* myWidget;
89 
91 
92  QVector< QVector<QLineEdit*> > transfromMatrixElements;
93 
94 };
95 
96 #endif // FRAMEEDITOR_H
virtual void translate()
Definition: FrameEditor.cpp:313
virtual void setRotation()
Definition: FrameEditor.cpp:356
virtual void setTranslation()
Definition: FrameEditor.cpp:323
camitk::Component * currentComponent
Definition: FrameEditor.h:90
Action class is an abstract class that enables you to build a action (generally on a component)...
Definition: Action.h:207
virtual ApplyStatus apply()
Update the component&#39;s frame with the translation and rotation parameters of the widget.
Definition: FrameEditor.cpp:374
virtual void setParentFrame()
Definition: FrameEditor.cpp:237
A Component represents something that could be included in the explorer view, the interactive 3D view...
Definition: sdk/libraries/core/component/Component.h:298
This class describes what is a generic Action extension.
Definition: ActionExtension.h:59
void init()
initialize the dialog
Definition: FrameEditor.cpp:52
This action allows you to apply a linear transformation (translation,rotation around axes) on the top...
Definition: FrameEditor.h:40
ApplyStatus
describes what happened during the application of an algorithm (i.e. results of the apply method) ...
Definition: Action.h:223
virtual void frameSizeChanged(int val)
Definition: FrameEditor.cpp:228
virtual void setTransformation()
Definition: FrameEditor.cpp:292
QWidget * myWidget
Definition: FrameEditor.h:88
QVector< QVector< QLineEdit * > > transfromMatrixElements
Definition: FrameEditor.h:92
virtual void displayFrameToggled(bool)
Definition: FrameEditor.cpp:218
FrameEditor(camitk::ActionExtension *)
the constructor
Definition: FrameEditor.cpp:36
virtual void initializeDialogWithCurrentComponent()
Definition: FrameEditor.cpp:160
Ui::FrameEditor ui
the Qt Gui
Definition: FrameEditor.h:86
virtual void transformationChanged()
Definition: FrameEditor.cpp:259
virtual void translationChanged()
Definition: FrameEditor.cpp:308
virtual void rotate()
Definition: FrameEditor.cpp:338
virtual void rotationChanged()
Definition: FrameEditor.cpp:333
virtual QWidget * getWidget()
this method creates and returns the widget containing the user interface for the action ...
Definition: FrameEditor.cpp:147
virtual ~FrameEditor()
Destructor.
Definition: FrameEditor.cpp:140