17 #ifndef _MODEL_EDITOR_EVENTS_HH_
18 #define _MODEL_EDITOR_EVENTS_HH_
36 public:
template<
typename T>
38 {
return finishModel.Connect(_subscriber); }
44 { finishModel.Disconnect(_subscriber); }
49 public:
template<
typename T>
51 {
return saveModelEditor.Connect(_subscriber); }
57 { saveModelEditor.Disconnect(_subscriber); }
62 public:
template<
typename T>
64 {
return saveAsModelEditor.Connect(_subscriber); }
70 { saveAsModelEditor.Disconnect(_subscriber); }
75 public:
template<
typename T>
77 {
return newModelEditor.Connect(_subscriber); }
83 { newModelEditor.Disconnect(_subscriber); }
88 public:
template<
typename T>
90 {
return exitModelEditor.Connect(_subscriber); }
96 { exitModelEditor.Disconnect(_subscriber); }
101 public:
template<
typename T>
103 {
return modelChanged.Connect(_subscriber); }
109 { modelChanged.Disconnect(_subscriber); }
114 public:
template<
typename T>
116 {
return modelNameChanged.Connect(_subscriber); }
122 { modelNameChanged.Disconnect(_subscriber); }
128 public:
template<
typename T>
131 {
return modelPropertiesChanged.Connect(_subscriber); }
138 { modelPropertiesChanged.Disconnect(_subscriber); }
143 public:
template<
typename T>
145 {
return saveModel.Connect(_subscriber); }
151 { saveModel.Disconnect(_subscriber); }
156 public:
template<
typename T>
158 {
return newModel.Connect(_subscriber); }
164 { newModel.Disconnect(_subscriber); }
169 public:
template<
typename T>
172 {
return nestedModelInserted.Connect(_subscriber); }
179 { nestedModelInserted.Disconnect(_subscriber); }
184 public:
template<
typename T>
186 {
return linkInserted.Connect(_subscriber); }
192 { linkInserted.Disconnect(_subscriber); }
197 public:
template<
typename T>
199 {
return jointInserted.Connect(_subscriber); }
205 { jointInserted.Disconnect(_subscriber); }
210 public:
template<
typename T>
212 {
return jointChanged.Connect(_subscriber); }
218 { jointChanged.Disconnect(_subscriber); }
223 public:
template<
typename T>
225 {
return nestedModelRemoved.Connect(_subscriber); }
232 { nestedModelRemoved.Disconnect(_subscriber); }
237 public:
template<
typename T>
240 {
return requestLinkRemoval.Connect(_subscriber); }
247 { requestLinkRemoval.Disconnect(_subscriber); }
252 public:
template<
typename T>
254 {
return linkRemoved.Connect(_subscriber); }
260 { linkRemoved.Disconnect(_subscriber); }
265 public:
template<
typename T>
267 {
return jointRemoved.Connect(_subscriber); }
273 { jointRemoved.Disconnect(_subscriber); }
278 public:
template<
typename T>
280 {
return openLinkInspector.Connect(_subscriber); }
287 { openLinkInspector.Disconnect(_subscriber); }
293 public:
template<
typename T>
296 {
return openModelPluginInspector.Connect(_subscriber); }
304 { openModelPluginInspector.Disconnect(_subscriber); }
309 public:
template<
typename T>
311 {
return openJointInspector.Connect(_subscriber); }
318 { openJointInspector.Disconnect(_subscriber); }
323 public:
template<
typename T>
325 {
return jointNameChanged.Connect(_subscriber); }
331 { jointNameChanged.Disconnect(_subscriber); }
338 {
return showLinkContextMenu.Connect(_subscriber); }
345 { showLinkContextMenu.Disconnect(_subscriber); }
352 {
return showJointContextMenu.Connect(_subscriber); }
359 { showJointContextMenu.Disconnect(_subscriber); }
367 {
return showModelPluginContextMenu.Connect(_subscriber); }
374 { showModelPluginContextMenu.Disconnect(_subscriber); }
381 {
return setSelectedLink.Connect(_subscriber); }
387 { setSelectedLink.Disconnect(_subscriber); }
394 {
return setSelectedJoint.Connect(_subscriber); }
400 { setSelectedJoint.Disconnect(_subscriber); }
408 {
return setSelectedModelPlugin.Connect(_subscriber); }
415 { setSelectedModelPlugin.Disconnect(_subscriber); }
420 public:
template<
typename T>
423 {
return modelPluginInserted.Connect(_subscriber); }
430 { modelPluginInserted.Disconnect(_subscriber); }
435 public:
template<
typename T>
438 {
return modelPluginRemoved.Connect(_subscriber); }
445 { modelPluginRemoved.Disconnect(_subscriber); }
451 public:
template<
typename T>
454 {
return requestModelPluginRemoval.Connect(_subscriber); }
461 { requestModelPluginRemoval.Disconnect(_subscriber); }
467 public:
template<
typename T>
470 {
return requestModelPluginInsertion.Connect(_subscriber); }
477 { requestModelPluginInsertion.Disconnect(_subscriber); }
static event::ConnectionPtr ConnectModelNameChanged(T _subscriber)
Connect a Gazebo event to the name changed signal.
Definition: ModelEditorEvents.hh:115
static event::EventT< void(bool, bool)> modelPropertiesChanged
Notify that model properties have been changed.
Definition: ModelEditorEvents.hh:502
boost::shared_ptr< Connection > ConnectionPtr
Definition: CommonTypes.hh:153
static void DisconnectShowModelPluginContextMenu(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the show model plugin context menu signal.
Definition: ModelEditorEvents.hh:372
static event::ConnectionPtr ConnectSaveModel(T _subscriber)
Connect a Gazebo event to the save model signal.
Definition: ModelEditorEvents.hh:144
static event::EventT< void(std::string)> saveModel
Notify that model has been saved.
Definition: ModelEditorEvents.hh:505
static event::EventT< void(std::string)> showLinkContextMenu
Request to show the link context menu.
Definition: ModelEditorEvents.hh:557
static event::ConnectionPtr ConnectOpenLinkInspector(T _subscriber)
Connect a Gazebo event to the open link inspector signal.
Definition: ModelEditorEvents.hh:279
static void DisconnectRequestLinkRemoval(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the request link removal signal.
Definition: ModelEditorEvents.hh:245
static event::ConnectionPtr ConnectSetSelectedModelPlugin(T _subscriber)
Connect a Gazebo event to the set selected model plugin signal.
Definition: ModelEditorEvents.hh:407
static event::ConnectionPtr ConnectModelPluginRemoved(T _subscriber)
Connect a Gazebo event to the model plugin removed signal.
Definition: ModelEditorEvents.hh:436
static void DisconnectOpenJointInspector(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the open joint inspector signal.
Definition: ModelEditorEvents.hh:316
static event::ConnectionPtr ConnectOpenJointInspector(T _subscriber)
Connect a Gazebo event to the open joint inspector signal.
Definition: ModelEditorEvents.hh:310
static void DisconnectJointNameChanged(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the joint name changed signal.
Definition: ModelEditorEvents.hh:329
static event::ConnectionPtr ConnectNestedModelRemoved(T _subscriber)
Connect a Gazebo event to the nested model removed signal.
Definition: ModelEditorEvents.hh:224
static event::EventT< bool()> saveModelEditor
Request to save the model.
Definition: ModelEditorEvents.hh:483
#define GZ_GUI_VISIBLE
Definition: system.hh:284
static event::ConnectionPtr ConnectModelPluginInserted(T _subscriber)
Connect a Gazebo event to the model plugin inserted signal.
Definition: ModelEditorEvents.hh:421
static event::EventT< void(std::string)> openJointInspector
Request to open the joint inspector.
Definition: ModelEditorEvents.hh:544
static event::EventT< void(std::string)> linkRemoved
Notify that a link has been removed.
Definition: ModelEditorEvents.hh:520
static void DisconnectJointChanged(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the joint changed signal.
Definition: ModelEditorEvents.hh:216
static event::EventT< void(std::string, std::string)> jointNameChanged
Notify that the joint name has been changed.
Definition: ModelEditorEvents.hh:554
static event::ConnectionPtr ConnectNewModel(T _subscriber)
Connect a Gazebo event to the new model signal.
Definition: ModelEditorEvents.hh:157
static void DisconnectFinishModel(event::ConnectionPtr _subscriber)
Disconnect a boost::slot to the finish model signal.
Definition: ModelEditorEvents.hh:42
static event::ConnectionPtr ConnectOpenModelPluginInspector(T _subscriber)
Connect a Gazebo event to the open model plugin inspector signal.
Definition: ModelEditorEvents.hh:294
static event::EventT< void(std::string)> nestedModelInserted
Notify that a nested model has been inserted.
Definition: ModelEditorEvents.hh:511
static void DisconnectSetSelectedJoint(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the set selected joint signal.
Definition: ModelEditorEvents.hh:398
static event::EventT< void(std::string, bool)> setSelectedLink
Request to select or deselect a link.
Definition: ModelEditorEvents.hh:567
Definition: ModelEditorEvents.hh:31
static event::EventT< void()> newModelEditor
Request to start a new model.
Definition: ModelEditorEvents.hh:489
static event::EventT< void(std::string)> jointRemoved
Notify that a joint has been removed.
Definition: ModelEditorEvents.hh:532
static event::ConnectionPtr ConnectSetSelectedJoint(T _subscriber)
Connect a Gazebo event to the set selected joint signal.
Definition: ModelEditorEvents.hh:393
static void DisconnectJointRemoved(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the joint removed signal.
Definition: ModelEditorEvents.hh:271
static void DisconnectModelPluginRemoved(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the model plugin removed signal.
Definition: ModelEditorEvents.hh:443
static void DisconnectModelPluginInserted(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the model plugin inserted signal.
Definition: ModelEditorEvents.hh:428
static void DisconnectLinkInserted(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the link inserted signal.
Definition: ModelEditorEvents.hh:190
static event::ConnectionPtr ConnectJointNameChanged(T _subscriber)
Connect a Gazebo event to the joint name changed signal.
Definition: ModelEditorEvents.hh:324
static void DisconnectSaveModelEditor(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the save signal.
Definition: ModelEditorEvents.hh:55
static void DisconnectShowJointContextMenu(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the show joint context menu signal.
Definition: ModelEditorEvents.hh:357
static event::EventT< void()> finishModel
A model has been completed and uploaded onto the server.
Definition: ModelEditorEvents.hh:480
static event::EventT< void(std::string, bool)> setSelectedJoint
Request to select or deselect a joint.
Definition: ModelEditorEvents.hh:570
static event::EventT< void(std::string, bool)> setSelectedModelPlugin
Request to select or deselect a model plugin.
Definition: ModelEditorEvents.hh:574
static event::EventT< void(std::string, std::string, std::string)> requestModelPluginInsertion
Request to insert a model plugin.
Definition: ModelEditorEvents.hh:588
static void DisconnectNewModelEditor(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the new signal.
Definition: ModelEditorEvents.hh:81
static void DisconnectShowLinkContextMenu(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the show link context menu signal.
Definition: ModelEditorEvents.hh:343
static event::EventT< void(std::string)> showJointContextMenu
Request to show the joint context menu.
Definition: ModelEditorEvents.hh:560
static event::ConnectionPtr ConnectLinkRemoved(T _subscriber)
Connect a Gazebo event to the link removed signal.
Definition: ModelEditorEvents.hh:253
static event::ConnectionPtr ConnectNestedModelInserted(T _subscriber)
Connect a Gazebo event to the nested model inserted signal.
Definition: ModelEditorEvents.hh:171
static void DisconnectModelChanged(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the model changed signal.
Definition: ModelEditorEvents.hh:107
static void DisconnectModelPropertiesChanged(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the model properties changed signal.
Definition: ModelEditorEvents.hh:136
static event::ConnectionPtr ConnectSetSelectedLink(T _subscriber)
Connect a Gazebo event to the set selected link signal.
Definition: ModelEditorEvents.hh:380
static event::ConnectionPtr ConnectFinishModel(T _subscriber)
Connect a boost::slot to the finish model signal.
Definition: ModelEditorEvents.hh:37
static void DisconnectSaveAsModelEditor(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the save as signal.
Definition: ModelEditorEvents.hh:68
static event::ConnectionPtr ConnectSaveModelEditor(T _subscriber)
Connect a Gazebo event to the save signal.
Definition: ModelEditorEvents.hh:50
static void DisconnectExitModelEditor(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the exit signal.
Definition: ModelEditorEvents.hh:94
static event::EventT< void(std::string)> linkInserted
Notify that a link has been inserted.
Definition: ModelEditorEvents.hh:514
static event::EventT< void()> exitModelEditor
Request to exit the editor.
Definition: ModelEditorEvents.hh:492
static event::ConnectionPtr ConnectShowLinkContextMenu(T _subscriber)
Connect a Gazebo event to the show link context menu signal.
Definition: ModelEditorEvents.hh:337
static void DisconnectNewModel(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the new model signal.
Definition: ModelEditorEvents.hh:162
static void DisconnectRequestModelPluginInsertion(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the request model plugin insertion signal.
Definition: ModelEditorEvents.hh:475
static event::EventT< void(std::string)> modelPluginRemoved
Notify that a model plugin has been removed.
Definition: ModelEditorEvents.hh:580
static event::ConnectionPtr ConnectLinkInserted(T _subscriber)
Connect a Gazebo event to the link inserted signal.
Definition: ModelEditorEvents.hh:185
static event::EventT< void(std::string)> openLinkInspector
Request to open the link inspector.
Definition: ModelEditorEvents.hh:541
static event::ConnectionPtr ConnectRequestLinkRemoval(T _subscriber)
Connect a Gazebo event to the request link removal signal.
Definition: ModelEditorEvents.hh:238
static void DisconnectNestedModelRemoved(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the nested model removed signal.
Definition: ModelEditorEvents.hh:230
static event::EventT< void(std::string)> nestedModelRemoved
Notify that a nested model has been removed.
Definition: ModelEditorEvents.hh:517
static event::EventT< void(std::string)> modelNameChanged
Name was changed in the editor palette.
Definition: ModelEditorEvents.hh:498
static void DisconnectRequestModelPluginRemoval(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the request model plugin removal signal.
Definition: ModelEditorEvents.hh:459
static event::ConnectionPtr ConnectExitModelEditor(T _subscriber)
Connect a Gazebo event to the exit signal.
Definition: ModelEditorEvents.hh:89
static event::EventT< void(std::string)> requestModelPluginRemoval
Request to remove a model plugin.
Definition: ModelEditorEvents.hh:584
static event::ConnectionPtr ConnectShowJointContextMenu(T _subscriber)
Connect a Gazebo event to the show joint context menu signal.
Definition: ModelEditorEvents.hh:351
static event::ConnectionPtr ConnectJointChanged(T _subscriber)
Connect a Gazebo event to the joint changed signal.
Definition: ModelEditorEvents.hh:211
static event::ConnectionPtr ConnectJointRemoved(T _subscriber)
Connect a Gazebo event to the joint removed signal.
Definition: ModelEditorEvents.hh:266
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:529
static event::ConnectionPtr ConnectSaveAsModelEditor(T _subscriber)
Connect a Gazebo event to the save as signal.
Definition: ModelEditorEvents.hh:63
static event::ConnectionPtr ConnectModelChanged(T _subscriber)
Connect a Gazebo event to the model changed signal.
Definition: ModelEditorEvents.hh:102
static void DisconnectOpenModelPluginInspector(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the open model plugin inspector signal.
Definition: ModelEditorEvents.hh:302
static void DisconnectNestedModelInserted(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the nested model inserted signal.
Definition: ModelEditorEvents.hh:177
static event::ConnectionPtr ConnectRequestModelPluginInsertion(T _subscriber)
Connect a Gazebo event to the request model plugin insertion signal.
Definition: ModelEditorEvents.hh:468
static event::EventT< void(std::string)> openModelPluginInspector
Request to open the model plugin inspector.
Definition: ModelEditorEvents.hh:548
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:538
static void DisconnectModelNameChanged(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the name changed signal.
Definition: ModelEditorEvents.hh:120
static event::ConnectionPtr ConnectRequestModelPluginRemoval(T _subscriber)
Connect a Gazebo event to the request model plugin removal signal.
Definition: ModelEditorEvents.hh:452
static void DisconnectSaveModel(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the save model signal.
Definition: ModelEditorEvents.hh:149
static void DisconnectLinkRemoved(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the link removed signal.
Definition: ModelEditorEvents.hh:258
static event::EventT< void(std::string)> modelPluginInserted
Notify that a model plugin has been inserted.
Definition: ModelEditorEvents.hh:577
static event::ConnectionPtr ConnectModelPropertiesChanged(T _subscriber)
Connect a Gazebo event to the model properties changed signal.
Definition: ModelEditorEvents.hh:130
static event::EventT< void()> newModel
Notify that model has been newed.
Definition: ModelEditorEvents.hh:508
static event::ConnectionPtr ConnectNewModelEditor(T _subscriber)
Connect a Gazebo event to the new signal.
Definition: ModelEditorEvents.hh:76
static void DisconnectJointInserted(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the joint inserted signal.
Definition: ModelEditorEvents.hh:203
static void DisconnectOpenLinkInspector(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the open link inspector signal.
Definition: ModelEditorEvents.hh:285
static event::ConnectionPtr ConnectShowModelPluginContextMenu(T _subscriber)
Connect a Gazebo event to the show model plugin context menu signal.
Definition: ModelEditorEvents.hh:366
static event::EventT< void()> modelChanged
Model has been changed.
Definition: ModelEditorEvents.hh:495
static event::ConnectionPtr ConnectJointInserted(T _subscriber)
Connect a Gazebo event to the joint inserted signal.
Definition: ModelEditorEvents.hh:198
static event::EventT< bool()> saveAsModelEditor
Request to save the model as.
Definition: ModelEditorEvents.hh:486
static void DisconnectSetSelectedLink(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the set selected link signal.
Definition: ModelEditorEvents.hh:385
static event::EventT< void(std::string)> showModelPluginContextMenu
Request to show the model plugin context menu.
Definition: ModelEditorEvents.hh:564
static event::EventT< void(std::string)> requestLinkRemoval
Request to remove a link.
Definition: ModelEditorEvents.hh:523
static void DisconnectSetSelectedModelPlugin(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the set selected model plugin signal.
Definition: ModelEditorEvents.hh:413