17 #ifndef GAZEBO_GUI_MODEL_MODELEDITOREVENTS_HH_ 18 #define GAZEBO_GUI_MODEL_MODELEDITOREVENTS_HH_ 37 public:
template<
typename T>
39 {
return finishModel.Connect(_subscriber); }
45 { finishModel.Disconnect(_subscriber); }
50 public:
template<
typename T>
52 {
return saveModelEditor.Connect(_subscriber); }
58 { saveModelEditor.Disconnect(_subscriber); }
63 public:
template<
typename T>
65 {
return saveAsModelEditor.Connect(_subscriber); }
71 { saveAsModelEditor.Disconnect(_subscriber); }
76 public:
template<
typename T>
78 {
return newModelEditor.Connect(_subscriber); }
84 { newModelEditor.Disconnect(_subscriber); }
89 public:
template<
typename T>
91 {
return exitModelEditor.Connect(_subscriber); }
97 { exitModelEditor.Disconnect(_subscriber); }
102 public:
template<
typename T>
104 {
return modelChanged.Connect(_subscriber); }
110 { modelChanged.Disconnect(_subscriber); }
115 public:
template<
typename T>
117 {
return modelNameChanged.Connect(_subscriber); }
123 { modelNameChanged.Disconnect(_subscriber); }
129 public:
template<
typename T>
132 {
return modelPropertiesChanged.Connect(_subscriber); }
139 { modelPropertiesChanged.Disconnect(_subscriber); }
144 public:
template<
typename T>
146 {
return saveModel.Connect(_subscriber); }
152 { saveModel.Disconnect(_subscriber); }
157 public:
template<
typename T>
159 {
return newModel.Connect(_subscriber); }
165 { newModel.Disconnect(_subscriber); }
170 public:
template<
typename T>
173 {
return nestedModelInserted.Connect(_subscriber); }
180 { nestedModelInserted.Disconnect(_subscriber); }
185 public:
template<
typename T>
187 {
return linkInserted.Connect(_subscriber); }
193 { linkInserted.Disconnect(_subscriber); }
198 public:
template<
typename T>
200 {
return jointInserted.Connect(_subscriber); }
206 { jointInserted.Disconnect(_subscriber); }
211 public:
template<
typename T>
213 {
return jointChanged.Connect(_subscriber); }
219 { jointChanged.Disconnect(_subscriber); }
224 public:
template<
typename T>
226 {
return nestedModelRemoved.Connect(_subscriber); }
233 { nestedModelRemoved.Disconnect(_subscriber); }
238 public:
template<
typename T>
241 {
return requestLinkRemoval.Connect(_subscriber); }
248 { requestLinkRemoval.Disconnect(_subscriber); }
253 public:
template<
typename T>
255 {
return linkRemoved.Connect(_subscriber); }
261 { linkRemoved.Disconnect(_subscriber); }
266 public:
template<
typename T>
268 {
return jointRemoved.Connect(_subscriber); }
274 { jointRemoved.Disconnect(_subscriber); }
279 public:
template<
typename T>
281 {
return openLinkInspector.Connect(_subscriber); }
288 { openLinkInspector.Disconnect(_subscriber); }
294 public:
template<
typename T>
297 {
return openModelPluginInspector.Connect(_subscriber); }
305 { openModelPluginInspector.Disconnect(_subscriber); }
310 public:
template<
typename T>
312 {
return openJointInspector.Connect(_subscriber); }
319 { openJointInspector.Disconnect(_subscriber); }
324 public:
template<
typename T>
326 {
return jointNameChanged.Connect(_subscriber); }
332 { jointNameChanged.Disconnect(_subscriber); }
339 {
return showLinkContextMenu.Connect(_subscriber); }
346 { showLinkContextMenu.Disconnect(_subscriber); }
353 {
return showJointContextMenu.Connect(_subscriber); }
360 { showJointContextMenu.Disconnect(_subscriber); }
368 {
return showModelPluginContextMenu.Connect(_subscriber); }
375 { showModelPluginContextMenu.Disconnect(_subscriber); }
382 {
return setSelectedLink.Connect(_subscriber); }
389 { setSelectedLink.Disconnect(_subscriber); }
396 {
return setSelectedJoint.Connect(_subscriber); }
402 { setSelectedJoint.Disconnect(_subscriber); }
410 {
return setSelectedModelPlugin.Connect(_subscriber); }
417 { setSelectedModelPlugin.Disconnect(_subscriber); }
422 public:
template<
typename T>
425 {
return modelPluginInserted.Connect(_subscriber); }
432 { modelPluginInserted.Disconnect(_subscriber); }
437 public:
template<
typename T>
440 {
return modelPluginRemoved.Connect(_subscriber); }
447 { modelPluginRemoved.Disconnect(_subscriber); }
453 public:
template<
typename T>
456 {
return requestModelPluginRemoval.Connect(_subscriber); }
463 { requestModelPluginRemoval.Disconnect(_subscriber); }
469 public:
template<
typename T>
472 {
return requestModelPluginInsertion.Connect(_subscriber); }
479 { requestModelPluginInsertion.Disconnect(_subscriber); }
static void DisconnectJointChanged(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the joint changed signal.
Definition: ModelEditorEvents.hh:217
static void DisconnectRequestModelPluginInsertion(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the request model plugin insertion signal.
Definition: ModelEditorEvents.hh:477
static event::EventT< void()> newModel
Notify that model has been newed.
Definition: ModelEditorEvents.hh:510
static event::ConnectionPtr ConnectModelPluginRemoved(T _subscriber)
Connect a Gazebo event to the model plugin removed signal.
Definition: ModelEditorEvents.hh:438
static void DisconnectOpenModelPluginInspector(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the open model plugin inspector signal.
Definition: ModelEditorEvents.hh:303
static void DisconnectJointNameChanged(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the joint name changed signal.
Definition: ModelEditorEvents.hh:330
static void DisconnectExitModelEditor(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the exit signal.
Definition: ModelEditorEvents.hh:95
static event::EventT< void()> finishModel
A model has been completed and uploaded onto the server.
Definition: ModelEditorEvents.hh:482
static event::EventT< void(std::string)> showLinkContextMenu
Request to show the link context menu.
Definition: ModelEditorEvents.hh:559
static event::EventT< void(std::string)> nestedModelInserted
Notify that a nested model has been inserted.
Definition: ModelEditorEvents.hh:513
static event::EventT< void()> newModelEditor
Request to start a new model.
Definition: ModelEditorEvents.hh:491
static void DisconnectSaveModelEditor(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the save signal.
Definition: ModelEditorEvents.hh:56
static void DisconnectOpenJointInspector(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the open joint inspector signal.
Definition: ModelEditorEvents.hh:317
Forward declarations for the common classes.
Definition: Animation.hh:33
static event::ConnectionPtr ConnectOpenModelPluginInspector(T _subscriber)
Connect a Gazebo event to the open model plugin inspector signal.
Definition: ModelEditorEvents.hh:295
static void DisconnectLinkRemoved(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the link removed signal.
Definition: ModelEditorEvents.hh:259
static event::EventT< void(std::string)> linkRemoved
Notify that a link has been removed.
Definition: ModelEditorEvents.hh:522
static event::ConnectionPtr ConnectFinishModel(T _subscriber)
Connect a boost::slot to the finish model signal.
Definition: ModelEditorEvents.hh:38
static event::EventT< void(std::string)> linkInserted
Notify that a link has been inserted.
Definition: ModelEditorEvents.hh:516
static event::ConnectionPtr ConnectExitModelEditor(T _subscriber)
Connect a Gazebo event to the exit signal.
Definition: ModelEditorEvents.hh:90
static void DisconnectJointInserted(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the joint inserted signal.
Definition: ModelEditorEvents.hh:204
static event::ConnectionPtr ConnectNestedModelRemoved(T _subscriber)
Connect a Gazebo event to the nested model removed signal.
Definition: ModelEditorEvents.hh:225
static event::ConnectionPtr ConnectRequestModelPluginRemoval(T _subscriber)
Connect a Gazebo event to the request model plugin removal signal.
Definition: ModelEditorEvents.hh:454
static event::ConnectionPtr ConnectRequestModelPluginInsertion(T _subscriber)
Connect a Gazebo event to the request model plugin insertion signal.
Definition: ModelEditorEvents.hh:470
static event::EventT< void(std::string, bool)> setSelectedModelPlugin
Request to select or deselect a model plugin.
Definition: ModelEditorEvents.hh:576
static event::EventT< void(std::string)> modelPluginRemoved
Notify that a model plugin has been removed.
Definition: ModelEditorEvents.hh:582
static void DisconnectSaveModel(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the save model signal.
Definition: ModelEditorEvents.hh:150
static event::ConnectionPtr ConnectNewModelEditor(T _subscriber)
Connect a Gazebo event to the new signal.
Definition: ModelEditorEvents.hh:77
Definition: ModelEditorEvents.hh:32
static event::ConnectionPtr ConnectSaveAsModelEditor(T _subscriber)
Connect a Gazebo event to the save as signal.
Definition: ModelEditorEvents.hh:64
static event::ConnectionPtr ConnectShowLinkContextMenu(T _subscriber)
Connect a Gazebo event to the show link context menu signal.
Definition: ModelEditorEvents.hh:338
static event::EventT< void()> modelChanged
Model has been changed.
Definition: ModelEditorEvents.hh:497
static event::ConnectionPtr ConnectNestedModelInserted(T _subscriber)
Connect a Gazebo event to the nested model inserted signal.
Definition: ModelEditorEvents.hh:172
static void DisconnectNestedModelRemoved(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the nested model removed signal.
Definition: ModelEditorEvents.hh:231
static event::ConnectionPtr ConnectSaveModelEditor(T _subscriber)
Connect a Gazebo event to the save signal.
Definition: ModelEditorEvents.hh:51
static void DisconnectRequestLinkRemoval(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the request link removal signal.
Definition: ModelEditorEvents.hh:246
static event::ConnectionPtr ConnectJointRemoved(T _subscriber)
Connect a Gazebo event to the joint removed signal.
Definition: ModelEditorEvents.hh:267
static void DisconnectSetSelectedLink(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the set selected entity signal.
Definition: ModelEditorEvents.hh:387
static void DisconnectModelPluginInserted(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the model plugin inserted signal.
Definition: ModelEditorEvents.hh:430
static event::EventT< void(std::string)> showJointContextMenu
Request to show the joint context menu.
Definition: ModelEditorEvents.hh:562
static void DisconnectRequestModelPluginRemoval(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the request model plugin removal signal.
Definition: ModelEditorEvents.hh:461
static void DisconnectModelPropertiesChanged(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the model properties changed signal.
Definition: ModelEditorEvents.hh:137
static void DisconnectShowModelPluginContextMenu(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the show model plugin context menu signal.
Definition: ModelEditorEvents.hh:373
static event::EventT< void(std::string, bool)> setSelectedLink
Request to select or deselect a link.
Definition: ModelEditorEvents.hh:569
static event::EventT< void(std::string)> requestLinkRemoval
Request to remove a link.
Definition: ModelEditorEvents.hh:525
static event::ConnectionPtr ConnectJointChanged(T _subscriber)
Connect a Gazebo event to the joint changed signal.
Definition: ModelEditorEvents.hh:212
static void DisconnectModelChanged(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the model changed signal.
Definition: ModelEditorEvents.hh:108
static void DisconnectModelPluginRemoved(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the model plugin removed signal.
Definition: ModelEditorEvents.hh:445
static event::EventT< bool()> saveModelEditor
Request to save the model.
Definition: ModelEditorEvents.hh:485
static event::EventT< void(std::string)> showModelPluginContextMenu
Request to show the model plugin context menu.
Definition: ModelEditorEvents.hh:566
static void DisconnectSaveAsModelEditor(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the save as signal.
Definition: ModelEditorEvents.hh:69
static void DisconnectNewModelEditor(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the new signal.
Definition: ModelEditorEvents.hh:82
static event::ConnectionPtr ConnectModelNameChanged(T _subscriber)
Connect a Gazebo event to the name changed signal.
Definition: ModelEditorEvents.hh:116
static event::ConnectionPtr ConnectShowModelPluginContextMenu(T _subscriber)
Connect a Gazebo event to the show model plugin context menu signal.
Definition: ModelEditorEvents.hh:367
static event::ConnectionPtr ConnectOpenJointInspector(T _subscriber)
Connect a Gazebo event to the open joint inspector signal.
Definition: ModelEditorEvents.hh:311
static event::EventT< void(std::string)> nestedModelRemoved
Notify that a nested model has been removed.
Definition: ModelEditorEvents.hh:519
static void DisconnectNestedModelInserted(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the nested model inserted signal.
Definition: ModelEditorEvents.hh:178
static event::EventT< void(std::string, std::string)> jointNameChanged
Notify that the joint name has been changed.
Definition: ModelEditorEvents.hh:556
static void DisconnectJointRemoved(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the joint removed signal.
Definition: ModelEditorEvents.hh:272
static event::EventT< void(std::string)> openLinkInspector
Request to open the link inspector.
Definition: ModelEditorEvents.hh:543
boost::shared_ptr< Connection > ConnectionPtr
Definition: CommonTypes.hh:153
static void DisconnectSetSelectedJoint(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the set selected joint signal.
Definition: ModelEditorEvents.hh:400
static event::ConnectionPtr ConnectNewModel(T _subscriber)
Connect a Gazebo event to the new model signal.
Definition: ModelEditorEvents.hh:158
static event::ConnectionPtr ConnectOpenLinkInspector(T _subscriber)
Connect a Gazebo event to the open link inspector signal.
Definition: ModelEditorEvents.hh:280
static void DisconnectShowJointContextMenu(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the show joint context menu signal.
Definition: ModelEditorEvents.hh:358
static event::EventT< void(std::string)> openJointInspector
Request to open the joint inspector.
Definition: ModelEditorEvents.hh:546
static event::EventT< void(std::string, std::string, std::string, std::string, std::string)> jointChanged
Notify that a joint has been changed.
Definition: ModelEditorEvents.hh:540
static event::ConnectionPtr ConnectSetSelectedModelPlugin(T _subscriber)
Connect a Gazebo event to the set selected model plugin signal.
Definition: ModelEditorEvents.hh:409
static event::ConnectionPtr ConnectJointInserted(T _subscriber)
Connect a Gazebo event to the joint inserted signal.
Definition: ModelEditorEvents.hh:199
static event::EventT< void()> exitModelEditor
Request to exit the editor.
Definition: ModelEditorEvents.hh:494
static void DisconnectFinishModel(event::ConnectionPtr _subscriber)
Disconnect a boost::slot to the finish model signal.
Definition: ModelEditorEvents.hh:43
static void DisconnectShowLinkContextMenu(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the show link context menu signal.
Definition: ModelEditorEvents.hh:344
static event::EventT< void(std::string)> modelPluginInserted
Notify that a model plugin has been inserted.
Definition: ModelEditorEvents.hh:579
static event::EventT< void(std::string, bool)> setSelectedJoint
Request to select or deselect a joint.
Definition: ModelEditorEvents.hh:572
static event::ConnectionPtr ConnectModelPropertiesChanged(T _subscriber)
Connect a Gazebo event to the model properties changed signal.
Definition: ModelEditorEvents.hh:131
static event::EventT< void(std::string)> modelNameChanged
Name was changed in the editor palette.
Definition: ModelEditorEvents.hh:500
static void DisconnectModelNameChanged(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the name changed signal.
Definition: ModelEditorEvents.hh:121
static event::EventT< void(std::string)> jointRemoved
Notify that a joint has been removed.
Definition: ModelEditorEvents.hh:534
static event::ConnectionPtr ConnectShowJointContextMenu(T _subscriber)
Connect a Gazebo event to the show joint context menu signal.
Definition: ModelEditorEvents.hh:352
static void DisconnectLinkInserted(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the link inserted signal.
Definition: ModelEditorEvents.hh:191
static void DisconnectSetSelectedModelPlugin(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the set selected model plugin signal.
Definition: ModelEditorEvents.hh:415
static void DisconnectOpenLinkInspector(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the open link inspector signal.
Definition: ModelEditorEvents.hh:286
static event::EventT< void(std::string)> requestModelPluginRemoval
Request to remove a model plugin.
Definition: ModelEditorEvents.hh:586
static void DisconnectNewModel(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the new model signal.
Definition: ModelEditorEvents.hh:163
static event::ConnectionPtr ConnectJointNameChanged(T _subscriber)
Connect a Gazebo event to the joint name changed signal.
Definition: ModelEditorEvents.hh:325
static event::ConnectionPtr ConnectLinkInserted(T _subscriber)
Connect a Gazebo event to the link inserted signal.
Definition: ModelEditorEvents.hh:186
static event::EventT< void(std::string, std::string, std::string, std::string, std::string)> jointInserted
Notify that a joint has been inserted.
Definition: ModelEditorEvents.hh:531
static event::ConnectionPtr ConnectSetSelectedLink(T _subscriber)
Connect a Gazebo event to the set selected entity signal.
Definition: ModelEditorEvents.hh:381
static event::ConnectionPtr ConnectLinkRemoved(T _subscriber)
Connect a Gazebo event to the link removed signal.
Definition: ModelEditorEvents.hh:254
static event::ConnectionPtr ConnectModelChanged(T _subscriber)
Connect a Gazebo event to the model changed signal.
Definition: ModelEditorEvents.hh:103
static event::EventT< void(std::string)> openModelPluginInspector
Request to open the model plugin inspector.
Definition: ModelEditorEvents.hh:550
static event::EventT< void(std::string)> saveModel
Notify that model has been saved.
Definition: ModelEditorEvents.hh:507
static event::ConnectionPtr ConnectModelPluginInserted(T _subscriber)
Connect a Gazebo event to the model plugin inserted signal.
Definition: ModelEditorEvents.hh:423
static event::ConnectionPtr ConnectSaveModel(T _subscriber)
Connect a Gazebo event to the save model signal.
Definition: ModelEditorEvents.hh:145
static event::ConnectionPtr ConnectRequestLinkRemoval(T _subscriber)
Connect a Gazebo event to the request link removal signal.
Definition: ModelEditorEvents.hh:239
static event::ConnectionPtr ConnectSetSelectedJoint(T _subscriber)
Connect a Gazebo event to the set selected joint signal.
Definition: ModelEditorEvents.hh:395
static event::EventT< bool()> saveAsModelEditor
Request to save the model as.
Definition: ModelEditorEvents.hh:488
static event::EventT< void(bool, bool)> modelPropertiesChanged
Notify that model properties have been changed.
Definition: ModelEditorEvents.hh:504
static event::EventT< void(std::string, std::string, std::string)> requestModelPluginInsertion
Request to insert a model plugin.
Definition: ModelEditorEvents.hh:590