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 
33 namespace 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  public armarx::ArmarXComponentWidgetControllerTemplate < 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 GetWidgetName()
81  {
82  return "Debugging.DebugRobotUnitDataStreaming";
83  }
84 
85  void onInitComponent() override {}
86  void onConnectComponent() override {}
87  void onDisconnectComponent() override;
88  void onExitComponent() override {}
89 
90  protected:
91  void timerEvent(QTimerEvent* event) override;
92 
93  private:
94  std::mutex mutex;
95  Ui::DebugRobotUnitDataStreamingWidget widget;
96  std::vector<RobotUnitDataStreamingReceiverPtr> rec;
97  QPointer<SimpleConfigDialog> dialog;
98  };
99 }
100 
101 
armarx::RobotUnitComponentPluginUser
Provides a ready-to-use RobotUnit.
Definition: RobotUnitComponentPlugin.h:98
armarx::DebugRobotUnitDataStreamingWidgetController::onInitComponent
void onInitComponent() override
Pure virtual hook for the subclass.
Definition: DebugRobotUnitDataStreamingWidgetController.h:85
armarx::ArmarXComponentWidgetControllerTemplate
Definition: ArmarXComponentWidgetController.h:69
armarx::DebugRobotUnitDataStreamingWidgetController::onConnectComponent
void onConnectComponent() override
Pure virtual hook for the subclass.
Definition: DebugRobotUnitDataStreamingWidgetController.h:86
SimpleConfigDialog.h
armarx::DebugRobotUnitDataStreamingWidgetController::GetWidgetName
static QString GetWidgetName()
Returns the Widget name displayed in the ArmarXGui to create an instance of this class.
Definition: DebugRobotUnitDataStreamingWidgetController.h:80
ArmarXGuiPlugin.h
ArmarXComponentWidgetController.h
ARMARXCOMPONENT_IMPORT_EXPORT
#define ARMARXCOMPONENT_IMPORT_EXPORT
Definition: ImportExportComponent.h:38
armarx::DebugRobotUnitDataStreamingWidgetController
DebugRobotUnitDataStreamingWidgetController brief one line description.
Definition: DebugRobotUnitDataStreamingWidgetController.h:62
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28
RobotUnitComponentPlugin.h
armarx::DebugRobotUnitDataStreamingWidgetController::onExitComponent
void onExitComponent() override
Hook for subclass.
Definition: DebugRobotUnitDataStreamingWidgetController.h:88
ImportExportComponent.h