RobotTrajectoryDesignerGuiPluginWidgetController.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 RobotTrajectoryDesigner::gui-plugins::RobotTrajectoryDesignerGuiPluginWidgetController
17  * @author Max Beddies
18  * @date 2018
19  * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20  * GNU General Public License
21  */
22 
23 #ifndef _ARMARX_RobotTrajectoryDesigner_RobotTrajectoryDesignerGuiPlugin_WidgetController_H
24 #define _ARMARX_RobotTrajectoryDesigner_RobotTrajectoryDesignerGuiPlugin_WidgetController_H
25 
26 #include <RobotComponents/gui-plugins/RobotTrajectoryDesignerGuiPlugin/ui_RobotTrajectoryDesignerGuiPluginWidget.h>
27 #include "View/Perspectives.h"
28 #include "View/SettingTab.h"
29 #include "View/TCPInformationTab.h"
30 #include "View/ToolBar.h"
31 #include "View/TransitionTab.h"
32 #include "View/WaypointTab.h"
33 
36 
38 
39 //#include "Controller/CollisionDialogController.h"
40 //#include "Controller/LanguageController.h"
42 //#include "Controller/PopUpController.h"
44 //#include "Controller/ScenarioDialogController.h"
57 
58 
59 namespace armarx
60 {
61  /**
62  \page ArmarXGui-GuiPlugins-RobotTrajectoryDesigner RobotTrajectoryDesigner
63  \brief The RobotTrajectoryDesigner gui plugin allows the generation of trajectories
64  for a given robot.
65 
66  API Documentation \ref RobotTrajectoryDesignerGuiPluginWidgetController
67 
68  \see RobotTrajectoryDesignerGuiPluginGuiPlugin
69  */
70 
71  /**
72  * \class RobotTrajectoryDesignerGuiPluginWidgetController
73  * \brief Main controller of the GUI plugin, handling all other subcontrollers.
74  * Detailed description
75  */
79  {
80  Q_OBJECT
81 
82  public:
83  /**
84  * Controller Constructor
85  */
87 
88  /**
89  * Controller destructor
90  */
92 
93  /**
94  * @see ArmarXWidgetController::RSettings()
95  */
96  virtual void loadSettings(QSettings* settings) override;
97 
98  /**
99  * @see ArmarXWidgetController::saveSettings()
100  */
101  virtual void saveSettings(QSettings* settings) override;
102 
103  /**
104  * Returns the Widget name displayed in the ArmarXGui to create an
105  * instance of this class.
106  */
107  virtual QString getWidgetName() const override
108  {
109  return "RobotTrajectoryDesigner";
110  }
111 
112  /**
113  * \see armarx::Component::onInitComponent()
114  */
115  virtual void onInitComponent() override;
116 
117  /**
118  * \see armarx::Component::onConnectComponent()
119  */
120  virtual void onConnectComponent() override;
121 
122  virtual void onDisconnectComponent() override;
123 
124  public slots:
125  void initWidget();
126  void connectWidget();
127 
128  signals:
129  /* QT signal declarations */
130 
131  private:
132  Ui::RobotTrajectoryDesignerGuiPluginWidget widget;
133 
134  //CollisionDialogControllerPtr collisionDialogControllerPtr;
135  //LanguageControllerPtr languageControllerPtr;
136  MementoControllerPtr mementoControllerPtr;
137  //PopUpControllerPtr popUpControllerPtr;
138  //ScenarioDialogControllerPtr scenarioDialogControllerPtr;
139  SettingControllerPtr settingControllerPtr;
140  ShortcutControllerPtr shortcutControllerPtr;
141  TCPInformationControllerPtr tcpInformationControllerPtr;
142  TCPSelectionControllerPtr tcpSelectionControllerPtr;
143  ToolBarControllerPtr toolBarControllerPtr;
144  TrajectoryControllerPtr trajectoryControllerPtr;
145  TransitionControllerPtr transitionControllerPtr;
146  ViewControllerPtr viewControllerPtr;
147  WaypointControllerPtr waypointControllerPtr;
148  ExportDialogControllerPtr exportDialogControllerPtr;
149  ImportDialogControllerPtr importDialogControllerPtr;
150  RobotVisualizationControllerPtr robotVisualizationControllerPtr;
151  EnvironmentControllerPtr environmentControllerPtr;
152 
153  VirtualRobot::RobotPtr requestRobot(std::string robotFile);
154  };
155 }
156 
157 #endif
SettingController.h
ToolBar.h
armarx::WaypointControllerPtr
std::shared_ptr< WaypointController > WaypointControllerPtr
Definition: WaypointController.h:308
armarx::SettingControllerPtr
std::shared_ptr< SettingController > SettingControllerPtr
Definition: SettingController.h:290
TCPInformationController.h
WaypointTab.h
Perspectives.h
ViewController.h
RobotVisualizationController.h
ImportDialogController.h
armarx::ToolBarControllerPtr
std::shared_ptr< ToolBarController > ToolBarControllerPtr
Definition: ToolBarController.h:202
WaypointController.h
ToolBarController.h
armarx::EnvironmentControllerPtr
std::shared_ptr< EnvironmentController > EnvironmentControllerPtr
Definition: EnvironmentController.h:68
armarx::RobotTrajectoryDesignerGuiPluginWidgetController::getWidgetName
virtual QString getWidgetName() const override
Returns the Widget name displayed in the ArmarXGui to create an instance of this class.
Definition: RobotTrajectoryDesignerGuiPluginWidgetController.h:107
ExportDialogController.h
EnvironmentController.h
armarx::TCPInformationControllerPtr
std::shared_ptr< TCPInformationController > TCPInformationControllerPtr
Definition: TCPInformationController.h:130
ArmarXGuiPlugin.h
TransitionTab.h
armarx::ShortcutControllerPtr
std::shared_ptr< ShortcutController > ShortcutControllerPtr
Definition: ShortcutController.h:202
armarx::ExportDialogControllerPtr
std::shared_ptr< ExportDialogController > ExportDialogControllerPtr
Definition: ExportDialogController.h:113
MementoController.h
armarx::TransitionControllerPtr
std::shared_ptr< TransitionController > TransitionControllerPtr
Definition: TransitionController.h:234
TransitionController.h
ArmarXComponentWidgetController.h
ARMARXCOMPONENT_IMPORT_EXPORT
#define ARMARXCOMPONENT_IMPORT_EXPORT
Definition: ImportExportComponent.h:38
armarx::MementoControllerPtr
std::shared_ptr< MementoController > MementoControllerPtr
Definition: MementoController.h:127
TCPInformationTab.h
armarx::TrajectoryControllerPtr
std::shared_ptr< TrajectoryController > TrajectoryControllerPtr
Definition: TrajectoryController.h:61
armarx::ViewControllerPtr
std::shared_ptr< ViewController > ViewControllerPtr
Definition: ViewController.h:131
TrajectoryController.h
SettingTab.h
armarx::RobotTrajectoryDesignerGuiPluginWidgetController
Main controller of the GUI plugin, handling all other subcontrollers. Detailed description.
Definition: RobotTrajectoryDesignerGuiPluginWidgetController.h:76
armarx::ImportDialogControllerPtr
std::shared_ptr< ImportDialogController > ImportDialogControllerPtr
Definition: ImportDialogController.h:69
armarx::RobotVisualizationControllerPtr
std::shared_ptr< RobotVisualizationController > RobotVisualizationControllerPtr
Definition: RobotVisualizationController.h:241
armarx::TCPSelectionControllerPtr
std::shared_ptr< TCPSelectionController > TCPSelectionControllerPtr
Definition: TCPSelectionController.h:132
TCPSelectionController.h
armarx::ArmarXComponentWidgetController
Definition: ArmarXComponentWidgetController.h:39
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28
VirtualRobot::RobotPtr
std::shared_ptr< class Robot > RobotPtr
Definition: Bus.h:18
ShortcutController.h
ImportExportComponent.h