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 
32 namespace 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
92  onConnectComponent() override
93  {
94  }
95 
96  void
98  {
99  }
100 
101  void
102  onExitComponent() override
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
armarx::DebugPlotterWidgetWidgetController::onInitComponent
void onInitComponent() override
Pure virtual hook for the subclass.
Definition: DebugPlotterWidgetWidgetController.h:87
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:92
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:81
armarx::DebugPlotterWidgetWidgetController::onDisconnectComponent
void onDisconnectComponent() override
Hook for subclass.
Definition: DebugPlotterWidgetWidgetController.h:97
armarx::DebugObserverComponentPluginUser
Definition: DebugObserverComponentPlugin.h:73
armarx::DebugPlotterWidgetWidgetController::onExitComponent
void onExitComponent() override
Hook for subclass.
Definition: DebugPlotterWidgetWidgetController.h:102
armarx::DebugPlotterWidgetWidgetController
DebugPlotterWidgetWidgetController brief one line description.
Definition: DebugPlotterWidgetWidgetController.h:61
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:27
ImportExportComponent.h