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>
28 
32 
33 
34 namespace armarx
35 {
36  /**
37  \page ArmarXGui-GuiPlugins-DebugPlotterWidget DebugPlotterWidget
38  \brief The DebugPlotterWidget allows visualizing ...
39 
40  \image html DebugPlotterWidget.png
41  The user can
42 
43  API Documentation \ref DebugPlotterWidgetWidgetController
44 
45  \see DebugPlotterWidgetGuiPlugin
46  */
47 
48 
49  /**
50  * \class DebugPlotterWidgetGuiPlugin
51  * \ingroup ArmarXGuiPlugins
52  * \brief DebugPlotterWidgetGuiPlugin brief description
53  *
54  * Detailed description
55  */
56 
57  /**
58  * \class DebugPlotterWidgetWidgetController
59  * \brief DebugPlotterWidgetWidgetController brief one line description
60  *
61  * Detailed description
62  */
65  public armarx::ArmarXComponentWidgetControllerTemplate < DebugPlotterWidgetWidgetController >,
67  {
68  Q_OBJECT
69 
70  public:
71  /// Controller Constructor
73 
74  void loadSettings(QSettings* settings) override;
75  void saveSettings(QSettings* settings) override;
76  QPointer<QDialog> getConfigDialog(QWidget* parent) override;
77  void configured() override;
78 
79  /**
80  * Returns the Widget name displayed in the ArmarXGui to create an
81  * instance of this class.
82  */
83  static QString GetWidgetName()
84  {
85  return "Debugging.DebugPlotterWidget";
86  }
87 
88  void onInitComponent() override {}
89  void onConnectComponent() override {}
90  void onDisconnectComponent() override {}
91  void onExitComponent() override {}
92 
93  protected:
94  void timerEvent(QTimerEvent* event) override;
95 
96  private slots:
97  void send();
98 
99  private:
100  using clock_t = std::chrono::steady_clock;
101  Ui::DebugPlotterWidgetWidget _widget;
102  QPointer<SimpleConfigDialog> _dialog;
103  typename clock_t::time_point _last_send;
104  };
105 }
106 
107 
armarx::DebugPlotterWidgetWidgetController::onInitComponent
void onInitComponent() override
Pure virtual hook for the subclass.
Definition: DebugPlotterWidgetWidgetController.h:88
armarx::ArmarXComponentWidgetControllerTemplate
Definition: ArmarXComponentWidgetController.h:69
SimpleConfigDialog.h
ArmarXGuiPlugin.h
ArmarXComponentWidgetController.h
ARMARXCOMPONENT_IMPORT_EXPORT
#define ARMARXCOMPONENT_IMPORT_EXPORT
Definition: ImportExportComponent.h:38
armarx::DebugPlotterWidgetWidgetController::onConnectComponent
void onConnectComponent() override
Pure virtual hook for the subclass.
Definition: DebugPlotterWidgetWidgetController.h:89
DebugObserverComponentPlugin.h
armarx::DebugPlotterWidgetWidgetController::GetWidgetName
static QString GetWidgetName()
Returns the Widget name displayed in the ArmarXGui to create an instance of this class.
Definition: DebugPlotterWidgetWidgetController.h:83
armarx::DebugPlotterWidgetWidgetController::onDisconnectComponent
void onDisconnectComponent() override
Hook for subclass.
Definition: DebugPlotterWidgetWidgetController.h:90
armarx::DebugObserverComponentPluginUser
Definition: DebugObserverComponentPlugin.h:82
armarx::DebugPlotterWidgetWidgetController::onExitComponent
void onExitComponent() override
Hook for subclass.
Definition: DebugPlotterWidgetWidgetController.h:91
armarx::DebugPlotterWidgetWidgetController
DebugPlotterWidgetWidgetController brief one line description.
Definition: DebugPlotterWidgetWidgetController.h:63
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28
ImportExportComponent.h