DebugRobotUnitDataStreamingWidgetController.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::DebugRobotUnitDataStreamingWidgetController
17 * @author Raphael Grimm ( raphael dot grimm at kit dot edu )
18 * @date 2021
19 * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20 * GNU General Public License
21 */
22#pragma once
23
25
29
30#include <RobotAPI/gui-plugins/DebugRobotUnitDataStreaming/ui_DebugRobotUnitDataStreamingWidget.h>
32
33namespace armarx
34{
35 /**
36 \page RobotAPI-GuiPlugins-DebugRobotUnitDataStreaming DebugRobotUnitDataStreaming
37 \brief The DebugRobotUnitDataStreaming allows visualizing ...
38
39 \image html DebugRobotUnitDataStreaming.png
40 The user can
41
42 API Documentation \ref DebugRobotUnitDataStreamingWidgetController
43
44 \see DebugRobotUnitDataStreamingGuiPlugin
45 */
46
47
48 /**
49 * \class DebugRobotUnitDataStreamingGuiPlugin
50 * \ingroup ArmarXGuiPlugins
51 * \brief DebugRobotUnitDataStreamingGuiPlugin brief description
52 *
53 * Detailed description
54 */
55
56 /**
57 * \class DebugRobotUnitDataStreamingWidgetController
58 * \brief DebugRobotUnitDataStreamingWidgetController brief one line description
59 *
60 * Detailed description
61 */
64 DebugRobotUnitDataStreamingWidgetController>,
65 public virtual RobotUnitComponentPluginUser
66 {
67 Q_OBJECT
68 public:
70
71 void loadSettings(QSettings* settings) override;
72 void saveSettings(QSettings* settings) override;
73 QPointer<QDialog> getConfigDialog(QWidget* parent) override;
74 void configured() override;
75
76 /**
77 * Returns the Widget name displayed in the ArmarXGui to create an
78 * instance of this class.
79 */
80 static QString
82 {
83 return "Debugging.DebugRobotUnitDataStreaming";
84 }
85
86 void
87 onInitComponent() override
88 {
89 }
90
91 void
93 {
94 }
95
96 void onDisconnectComponent() override;
97
98 void
99 onExitComponent() override
100 {
101 }
102
103 protected:
104 void timerEvent(QTimerEvent* event) override;
105
106 private:
107 std::mutex mutex;
108 Ui::DebugRobotUnitDataStreamingWidget widget;
109 std::vector<RobotUnitDataStreamingReceiverPtr> rec;
110 QPointer<SimpleConfigDialog> dialog;
111 };
112} // 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.
void onConnectComponent() override
Pure virtual hook for the subclass.
void configured() override
This function must be implemented by the user, if he supplies a config dialog.
static QString GetWidgetName()
Returns the Widget name displayed in the ArmarXGui to create an instance of this class.
QPointer< QDialog > getConfigDialog(QWidget *parent) override
getConfigDialog returns a pointer to the a configuration widget of this controller.
This file offers overloads of toIce() and fromIce() functions for STL container types.