DebugPlotterWidgetWidgetController.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 ArmarXGui::gui-plugins::DebugPlotterWidgetWidgetController
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
26
27#include <ArmarXGui/gui-plugins/DebugPlotterWidget/ui_DebugPlotterWidgetWidget.h>
31
32namespace armarx
33{
34 /**
35 \page ArmarXGui-GuiPlugins-DebugPlotterWidget DebugPlotterWidget
36 \brief The DebugPlotterWidget allows visualizing ...
37
38 \image html DebugPlotterWidget.png
39 The user can
40
41 API Documentation \ref DebugPlotterWidgetWidgetController
42
43 \see DebugPlotterWidgetGuiPlugin
44 */
45
46
47 /**
48 * \class DebugPlotterWidgetGuiPlugin
49 * \ingroup ArmarXGuiPlugins
50 * \brief DebugPlotterWidgetGuiPlugin brief description
51 *
52 * Detailed description
53 */
54
55 /**
56 * \class DebugPlotterWidgetWidgetController
57 * \brief DebugPlotterWidgetWidgetController brief one line description
58 *
59 * Detailed description
60 */
62 public armarx::ArmarXComponentWidgetControllerTemplate<DebugPlotterWidgetWidgetController>,
64 {
65 Q_OBJECT
66
67 public:
68 /// Controller Constructor
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.DebugPlotterWidget";
84 }
85
86 void
87 onInitComponent() override
88 {
89 }
90
91 void
93 {
94 }
95
96 void
98 {
99 }
100
101 void
103 {
104 }
105
106 protected:
107 void timerEvent(QTimerEvent* event) override;
108
109 private slots:
110 void send();
111
112 private:
113 using clock_t = std::chrono::steady_clock;
114 Ui::DebugPlotterWidgetWidget _widget;
115 QPointer<SimpleConfigDialog> _dialog;
116 typename clock_t::time_point _last_send;
117 };
118} // namespace armarx
#define ARMARXCOMPONENT_IMPORT_EXPORT
void onInitComponent() override
Pure virtual hook for the subclass.
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.