DebugDrawerGuiPluginWidgetController.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::DebugDrawerGuiPluginWidgetController
17 * @author Raphael Grimm ( raphael dot grimm at kit dot edu )
18 * @date 2019
19 * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20 * GNU General Public License
21 */
22#pragma once
23
25
29
31#include <RobotAPI/gui-plugins/DebugDrawerGuiPlugin/ui_DebugDrawerGuiPluginWidget.h>
32
33namespace armarx
34{
35 /**
36 \page RobotAPI-GuiPlugins-DebugDrawerGuiPlugin DebugDrawerGuiPlugin
37 \brief The DebugDrawerGuiPlugin allows visualizing ...
38
39 \image html DebugDrawerGuiPlugin.png
40 The user can
41
42 API Documentation \ref DebugDrawerGuiPluginWidgetController
43
44 \see DebugDrawerGuiPluginGuiPlugin
45 */
46
47 /**
48 * \class DebugDrawerGuiPluginWidgetController
49 * \brief DebugDrawerGuiPluginWidgetController brief one line description
50 *
51 * Detailed description
52 */
54 public armarx::ArmarXComponentWidgetControllerTemplate<DebugDrawerGuiPluginWidgetController>
55 {
56 Q_OBJECT
57
58 public:
61
62 void loadSettings(QSettings* settings) override;
63 void saveSettings(QSettings* settings) override;
64
65 /**
66 * Returns the Widget name displayed in the ArmarXGui to create an
67 * instance of this class.
68 */
69 static QString
71 {
72 return "Visualization.DebugDrawerGuiPlugin";
73 }
74
75 void onInitComponent() override;
76 void onConnectComponent() override;
77 void onDisconnectComponent() override;
78
79 // QPointer<QDialog> getConfigDialog(QWidget* parent) override;
80 // void configured() override;
81
82 private slots:
83 void on_pushButtonLayerClear_clicked();
84 void on_pushButtonPoseDelete_clicked();
85 void on_pushButtonArrowDelete_clicked();
86 void updateArrow();
87 void updatePose();
88
89 private:
90 /**
91 * Widget Form
92 */
93 Ui::DebugDrawerGuiPluginWidget _ui;
94
95 std::string _layerName;
96
97 std::string _debugDrawerTopicName{"DebugDrawerUpdates"};
98 DebugDrawerHelper _debugDrawer;
99
100 QPointer<SimpleConfigDialog> _dialog;
101 };
102} // namespace armarx
#define ARMARXCOMPONENT_IMPORT_EXPORT
void loadSettings(QSettings *settings) override
Implement to load the settings that are part of the GUI configuration.
void saveSettings(QSettings *settings) override
Implement to save the settings as part of the GUI configuration.
static QString GetWidgetName()
Returns the Widget name displayed in the ArmarXGui to create an instance of this class.
This file offers overloads of toIce() and fromIce() functions for STL container types.