DebugDrawerGuiPluginWidgetController.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::DebugDrawerGuiPluginWidgetController
17  * @author Raphael Grimm ( raphael dot grimm at kit dot edu )
18  * @date 2019
19  * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20  * GNU General Public License
21  */
22 #pragma once
23 
24 #include <RobotAPI/gui-plugins/DebugDrawerGuiPlugin/ui_DebugDrawerGuiPluginWidget.h>
25 
29 
31 
33 
34 namespace armarx
35 {
36  /**
37  \page RobotAPI-GuiPlugins-DebugDrawerGuiPlugin DebugDrawerGuiPlugin
38  \brief The DebugDrawerGuiPlugin allows visualizing ...
39 
40  \image html DebugDrawerGuiPlugin.png
41  The user can
42 
43  API Documentation \ref DebugDrawerGuiPluginWidgetController
44 
45  \see DebugDrawerGuiPluginGuiPlugin
46  */
47 
48  /**
49  * \class DebugDrawerGuiPluginWidgetController
50  * \brief DebugDrawerGuiPluginWidgetController brief one line description
51  *
52  * Detailed description
53  */
56  public armarx::ArmarXComponentWidgetControllerTemplate < DebugDrawerGuiPluginWidgetController >
57  {
58  Q_OBJECT
59 
60  public:
63 
64  void loadSettings(QSettings* settings) override;
65  void saveSettings(QSettings* settings) override;
66 
67  /**
68  * Returns the Widget name displayed in the ArmarXGui to create an
69  * instance of this class.
70  */
71  static QString GetWidgetName()
72  {
73  return "Visualization.DebugDrawerGuiPlugin";
74  }
75 
76  void onInitComponent() override;
77  void onConnectComponent() override;
78  void onDisconnectComponent() override;
79 
80  // QPointer<QDialog> getConfigDialog(QWidget* parent) override;
81  // void configured() override;
82 
83  private slots:
84  void on_pushButtonLayerClear_clicked();
85  void on_pushButtonPoseDelete_clicked();
86  void on_pushButtonArrowDelete_clicked();
87  void updateArrow();
88  void updatePose();
89 
90  private:
91  /**
92  * Widget Form
93  */
94  Ui::DebugDrawerGuiPluginWidget _ui;
95 
96  std::string _layerName;
97 
98  std::string _debugDrawerTopicName{"DebugDrawerUpdates"};
99  DebugDrawerHelper _debugDrawer;
100 
101  QPointer<SimpleConfigDialog> _dialog;
102 
103  };
104 }
105 
106 
armarx::DebugDrawerGuiPluginWidgetController::GetWidgetName
static QString GetWidgetName()
Returns the Widget name displayed in the ArmarXGui to create an instance of this class.
Definition: DebugDrawerGuiPluginWidgetController.h:71
armarx::DebugDrawerGuiPluginWidgetController
DebugDrawerGuiPluginWidgetController brief one line description.
Definition: DebugDrawerGuiPluginWidgetController.h:54
armarx::ArmarXComponentWidgetControllerTemplate
Definition: ArmarXComponentWidgetController.h:69
SimpleConfigDialog.h
ArmarXGuiPlugin.h
ArmarXComponentWidgetController.h
ARMARXCOMPONENT_IMPORT_EXPORT
#define ARMARXCOMPONENT_IMPORT_EXPORT
Definition: ImportExportComponent.h:38
DebugDrawerHelper.h
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28
ImportExportComponent.h