HomogeneousMatrixCalculatorWidgetController.h
Go to the documentation of this file.
1 /*
2  * This file is part of ArmarX.
3  *
4  * ArmarX is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 2 as
6  * published by the Free Software Foundation.
7  *
8  * ArmarX is distributed in the hope that it will be useful, but
9  * WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * @package RobotAPI::gui-plugins::HomogeneousMatrixCalculatorWidgetController
17  * @author Raphael Grimm ( raphael dot grimm at kit dot edu )
18  * @date 2017
19  * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20  * GNU General Public License
21  */
22 
23 #pragma once
24 
25 #include <RobotAPI/gui-plugins/HomogeneousMatrixCalculator/ui_HomogeneousMatrixCalculatorWidget.h>
26 
27 #include <VirtualRobot/MathTools.h>
28 
31 
33 
34 namespace armarx
35 {
36  /**
37  \page RobotAPI-GuiPlugins-HomogeneousMatrixCalculator HomogeneousMatrixCalculator
38  \brief The HomogeneousMatrixCalculator allows visualizing ...
39 
40  \image html HomogeneousMatrixCalculator.png
41  The user can
42 
43  API Documentation \ref HomogeneousMatrixCalculatorWidgetController
44 
45  \see HomogeneousMatrixCalculatorGuiPlugin
46  */
47 
48  /**
49  * \class HomogeneousMatrixCalculatorWidgetController
50  * \brief HomogeneousMatrixCalculatorWidgetController brief one line description
51  *
52  * Detailed description
53  */
56  public ArmarXComponentWidgetControllerTemplate<HomogeneousMatrixCalculatorWidgetController>
57  {
58  Q_OBJECT
59 
60  public:
61  /**
62  * Controller Constructor
63  */
65 
66  /**
67  * Controller destructor
68  */
70 
71  /**
72  * @see ArmarXWidgetController::loadSettings()
73  */
74  void loadSettings(QSettings* settings) override;
75 
76  /**
77  * @see ArmarXWidgetController::saveSettings()
78  */
79  void saveSettings(QSettings* settings) override;
80 
81  /**
82  * Returns the Widget name displayed in the ArmarXGui to create an
83  * instance of this class.
84  */
85  static QString GetWidgetName()
86  {
87  return "Util.HomogeneousMatrixCalculator";
88  }
89 
90  /**
91  * \see armarx::Component::onInitComponent()
92  */
93  void onInitComponent() override;
94 
95  /**
96  * \see armarx::Component::onConnectComponent()
97  */
98  void onConnectComponent() override;
99 
100  Eigen::Matrix4d getMatrix();
101 
102  static QIcon GetWidgetIcon()
103  {
104  return QIcon("://icons/htmx_calc_icon.svg");
105  }
106  static QIcon GetWidgetCategoryIcon()
107  {
108  return QIcon("://icons/tools.svg");
109  }
110 
111  public slots:
112  /* QT slot declarations */
113 
114  signals:
115  /* QT signal declarations */
116 
117  private slots:
118  void changed4f();
119 
120  void changedrpy();
121 
122  void recalcInv();
123  void recalcProd();
124  void recalcInvAndProd();
125 
126 
127  private:
128  /**
129  * Widget Form
130  */
131  Ui::HomogeneousMatrixCalculatorWidget widget;
132  };
133 }
134 
armarx::HomogeneousMatrixCalculatorWidgetController
HomogeneousMatrixCalculatorWidgetController brief one line description.
Definition: HomogeneousMatrixCalculatorWidgetController.h:54
armarx::HomogeneousMatrixCalculatorWidgetController::GetWidgetCategoryIcon
static QIcon GetWidgetCategoryIcon()
Definition: HomogeneousMatrixCalculatorWidgetController.h:106
armarx::ArmarXComponentWidgetControllerTemplate
Definition: ArmarXComponentWidgetController.h:69
armarx::HomogeneousMatrixCalculatorWidgetController::GetWidgetIcon
static QIcon GetWidgetIcon()
Definition: HomogeneousMatrixCalculatorWidgetController.h:102
ArmarXGuiPlugin.h
armarx::HomogeneousMatrixCalculatorWidgetController::GetWidgetName
static QString GetWidgetName()
Returns the Widget name displayed in the ArmarXGui to create an instance of this class.
Definition: HomogeneousMatrixCalculatorWidgetController.h:85
ArmarXComponentWidgetController.h
ARMARXCOMPONENT_IMPORT_EXPORT
#define ARMARXCOMPONENT_IMPORT_EXPORT
Definition: ImportExportComponent.h:38
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28
ImportExportComponent.h