ViewSelectionWidgetController.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::ViewSelectionWidgetController
17  * @author Markus Grotz ( markus dot grotz at kit dot edu )
18  * @date 2016
19  * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20  * GNU General Public License
21  */
22 
23 #pragma once
24 
25 #include <RobotAPI/gui-plugins/ViewSelection/ui_ViewSelectionWidget.h>
26 
29 
31 
32 #include <RobotAPI/interface/components/ViewSelectionInterface.h>
33 
35 
36 namespace armarx
37 {
38 
39  //class ViewSelectionConfigDialog;
40 
41 
42  /**
43  \page RobotAPI-GuiPlugins-ViewSelection ViewSelection
44  \brief The ViewSelection allows visualizing ...
45 
46  \image html ViewSelection.png
47  The user can
48 
49  API Documentation \ref ViewSelectionWidgetController
50 
51  \see ViewSelectionGuiPlugin
52  */
53 
54  /**
55  * \class ViewSelectionWidgetController
56  * \brief ViewSelectionWidgetController brief one line description
57  *
58  * Detailed description
59  */
62  public ArmarXComponentWidgetControllerTemplate<ViewSelectionWidgetController>,
63  public armarx::ViewSelectionObserver
64  {
65  Q_OBJECT
66 
67  public:
68  /**
69  * Controller Constructor
70  */
72 
73  /**
74  * Controller destructor
75  */
77 
78  /**
79  * @see ArmarXWidgetController::loadSettings()
80  */
81  void loadSettings(QSettings* settings) override;
82 
83  /**
84  * @see ArmarXWidgetController::saveSettings()
85  */
86  void saveSettings(QSettings* settings) override;
87 
88  void configured() override;
89 
90  void onActivateAutomaticViewSelection(const Ice::Current& c = Ice::emptyCurrent) override;
91  void onDeactivateAutomaticViewSelection(const Ice::Current& c = Ice::emptyCurrent) override;
92  void nextViewTarget(Ice::Long, const Ice::Current& c = Ice::emptyCurrent) override;
93 
94  /**
95  * Returns the Widget name displayed in the ArmarXGui to create an
96  * instance of this class.
97  */
98  static QString GetWidgetName()
99  {
100  return "RobotControl.ViewSelection";
101  }
102 
103  /**
104  * \see armarx::Component::onInitComponent()
105  */
106  void onInitComponent() override;
107 
108  /**
109  * \see armarx::Component::onConnectComponent()
110  */
111  void onConnectComponent() override;
112 
113 
114  QPointer<QDialog> getConfigDialog(QWidget* parent) override;
115 
116  public slots:
117 
118  void triggerSaliencyMapVisualization();
119  void clearSaliencyMapVisualization();
120  void updateSaliencyMapNames();
121  void toggleViewSelection(bool enabled);
122  /* QT slot declarations */
123 
124  signals:
125  /* QT signal declarations */
126 
127  private:
128  /**
129  * Widget Form
130  */
131  Ui::ViewSelectionWidget widget;
132 
133  QPointer<ViewSelectionConfigDialog> configDialog;
134 
135  ViewSelectionInterfacePrx viewSelection;
136 
137  std::string viewSelectionName;
138 
139  };
140 }
141 
c
constexpr T c
Definition: UnscentedKalmanFilterTest.cpp:43
armarx::ArmarXComponentWidgetControllerTemplate
Definition: ArmarXComponentWidgetController.h:69
armarx::ViewSelectionWidgetController
ViewSelectionWidgetController brief one line description.
Definition: ViewSelectionWidgetController.h:60
ArmarXGuiPlugin.h
ArmarXComponentWidgetController.h
ARMARXCOMPONENT_IMPORT_EXPORT
#define ARMARXCOMPONENT_IMPORT_EXPORT
Definition: ImportExportComponent.h:38
armarx::ViewSelectionWidgetController::GetWidgetName
static QString GetWidgetName()
Returns the Widget name displayed in the ArmarXGui to create an instance of this class.
Definition: ViewSelectionWidgetController.h:98
enabled
std::atomic< bool > * enabled
Definition: RemoteGuiWidgetController.cpp:75
armarx::VariantType::Long
const VariantTypeId Long
Definition: Variant.h:917
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28
ViewSelectionConfigDialog.h
ImportExportComponent.h