17 #ifndef GAZEBO_GUI_MODEL_MODELEDITOREVENTS_HH_
18 #define GAZEBO_GUI_MODEL_MODELEDITOREVENTS_HH_
38 public:
template<
typename T>
40 {
return finishModel.Connect(_subscriber); }
46 { finishModel.Disconnect(_subscriber); }
51 public:
template<
typename T>
53 {
return saveModelEditor.Connect(_subscriber); }
59 { saveModelEditor.Disconnect(_subscriber); }
64 public:
template<
typename T>
66 {
return saveAsModelEditor.Connect(_subscriber); }
72 { saveAsModelEditor.Disconnect(_subscriber); }
77 public:
template<
typename T>
79 {
return newModelEditor.Connect(_subscriber); }
85 { newModelEditor.Disconnect(_subscriber); }
90 public:
template<
typename T>
92 {
return exitModelEditor.Connect(_subscriber); }
98 { exitModelEditor.Disconnect(_subscriber); }
103 public:
template<
typename T>
105 {
return modelChanged.Connect(_subscriber); }
111 { modelChanged.Disconnect(_subscriber); }
116 public:
template<
typename T>
118 {
return modelNameChanged.Connect(_subscriber); }
124 { modelNameChanged.Disconnect(_subscriber); }
130 public:
template<
typename T>
133 {
return modelPropertiesChanged.Connect(_subscriber); }
140 { modelPropertiesChanged.Disconnect(_subscriber); }
145 public:
template<
typename T>
147 {
return saveModel.Connect(_subscriber); }
153 { saveModel.Disconnect(_subscriber); }
158 public:
template<
typename T>
160 {
return newModel.Connect(_subscriber); }
166 { newModel.Disconnect(_subscriber); }
172 public:
template<
typename T>
175 {
return requestNestedModelRemoval.Connect(_subscriber); }
182 { requestNestedModelRemoval.Disconnect(_subscriber); }
188 public:
template<
typename T>
191 {
return requestNestedModelInsertion.Connect(_subscriber); }
198 { requestNestedModelInsertion.Disconnect(_subscriber); }
203 public:
template<
typename T>
206 {
return nestedModelInserted.Connect(_subscriber); }
213 { nestedModelInserted.Disconnect(_subscriber); }
218 public:
template<
typename T>
220 {
return linkInserted.Connect(_subscriber); }
226 { linkInserted.Disconnect(_subscriber); }
231 public:
template<
typename T>
233 {
return jointInserted.Connect(_subscriber); }
239 { jointInserted.Disconnect(_subscriber); }
244 public:
template<
typename T>
246 {
return jointChanged.Connect(_subscriber); }
252 { jointChanged.Disconnect(_subscriber); }
257 public:
template<
typename T>
259 {
return nestedModelRemoved.Connect(_subscriber); }
266 { nestedModelRemoved.Disconnect(_subscriber); }
271 public:
template<
typename T>
274 {
return requestLinkInsertion.Connect(_subscriber); }
281 { requestLinkInsertion.Disconnect(_subscriber); }
286 public:
template<
typename T>
289 {
return requestLinkRemoval.Connect(_subscriber); }
296 { requestLinkRemoval.Disconnect(_subscriber); }
301 public:
template<
typename T>
303 {
return linkRemoved.Connect(_subscriber); }
309 { linkRemoved.Disconnect(_subscriber); }
314 public:
template<
typename T>
317 {
return requestJointRemoval.Connect(_subscriber); }
324 { requestJointRemoval.Disconnect(_subscriber); }
329 public:
template<
typename T>
332 {
return requestJointInsertion.Connect(_subscriber); }
339 { requestJointInsertion.Disconnect(_subscriber); }
344 public:
template<
typename T>
346 {
return jointRemoved.Connect(_subscriber); }
352 { jointRemoved.Disconnect(_subscriber); }
357 public:
template<
typename T>
359 {
return openLinkInspector.Connect(_subscriber); }
366 { openLinkInspector.Disconnect(_subscriber); }
372 public:
template<
typename T>
375 {
return openModelPluginInspector.Connect(_subscriber); }
383 { openModelPluginInspector.Disconnect(_subscriber); }
388 public:
template<
typename T>
390 {
return openJointInspector.Connect(_subscriber); }
397 { openJointInspector.Disconnect(_subscriber); }
402 public:
template<
typename T>
404 {
return jointNameChanged.Connect(_subscriber); }
410 { jointNameChanged.Disconnect(_subscriber); }
417 {
return showLinkContextMenu.Connect(_subscriber); }
424 { showLinkContextMenu.Disconnect(_subscriber); }
431 {
return showJointContextMenu.Connect(_subscriber); }
438 { showJointContextMenu.Disconnect(_subscriber); }
446 {
return showModelPluginContextMenu.Connect(_subscriber); }
453 { showModelPluginContextMenu.Disconnect(_subscriber); }
460 {
return setSelectedLink.Connect(_subscriber); }
466 { setSelectedLink.Disconnect(_subscriber); }
473 {
return setSelectedJoint.Connect(_subscriber); }
479 { setSelectedJoint.Disconnect(_subscriber); }
487 {
return setSelectedModelPlugin.Connect(_subscriber); }
494 { setSelectedModelPlugin.Disconnect(_subscriber); }
499 public:
template<
typename T>
502 {
return modelPluginInserted.Connect(_subscriber); }
509 { modelPluginInserted.Disconnect(_subscriber); }
514 public:
template<
typename T>
517 {
return modelPluginRemoved.Connect(_subscriber); }
524 { modelPluginRemoved.Disconnect(_subscriber); }
530 public:
template<
typename T>
533 {
return requestModelPluginRemoval.Connect(_subscriber); }
540 { requestModelPluginRemoval.Disconnect(_subscriber); }
546 public:
template<
typename T>
549 {
return requestModelPluginInsertion.Connect(_subscriber); }
556 { requestModelPluginInsertion.Disconnect(_subscriber); }
static void DisconnectJointChanged(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the joint changed signal.
Definition: ModelEditorEvents.hh:250
static void DisconnectRequestModelPluginInsertion(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the request model plugin insertion signal.
Definition: ModelEditorEvents.hh:554
static event::EventT< void()> newModel
Notify that model has been newed.
Definition: ModelEditorEvents.hh:587
static event::ConnectionPtr ConnectModelPluginRemoved(T _subscriber)
Connect a Gazebo event to the model plugin removed signal.
Definition: ModelEditorEvents.hh:515
static void DisconnectOpenModelPluginInspector(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the open model plugin inspector signal.
Definition: ModelEditorEvents.hh:381
static void DisconnectJointNameChanged(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the joint name changed signal.
Definition: ModelEditorEvents.hh:408
static void DisconnectExitModelEditor(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the exit signal.
Definition: ModelEditorEvents.hh:96
static event::EventT< void()> finishModel
A model has been completed and uploaded onto the server.
Definition: ModelEditorEvents.hh:559
static event::EventT< void(std::string)> showLinkContextMenu
Request to show the link context menu.
Definition: ModelEditorEvents.hh:655
static event::EventT< void(std::string)> nestedModelInserted
Notify that a nested model has been inserted.
Definition: ModelEditorEvents.hh:590
static event::EventT< void()> newModelEditor
Request to start a new model.
Definition: ModelEditorEvents.hh:568
static void DisconnectSaveModelEditor(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the save signal.
Definition: ModelEditorEvents.hh:57
static void DisconnectOpenJointInspector(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the open joint inspector signal.
Definition: ModelEditorEvents.hh:395
static event::ConnectionPtr ConnectOpenModelPluginInspector(T _subscriber)
Connect a Gazebo event to the open model plugin inspector signal.
Definition: ModelEditorEvents.hh:373
static void DisconnectLinkRemoved(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the link removed signal.
Definition: ModelEditorEvents.hh:307
static event::EventT< void(std::string)> linkRemoved
Notify that a link has been removed.
Definition: ModelEditorEvents.hh:599
static event::ConnectionPtr ConnectFinishModel(T _subscriber)
Connect a boost::slot to the finish model signal.
Definition: ModelEditorEvents.hh:39
static event::EventT< void(std::string)> linkInserted
Notify that a link has been inserted.
Definition: ModelEditorEvents.hh:593
static event::ConnectionPtr ConnectExitModelEditor(T _subscriber)
Connect a Gazebo event to the exit signal.
Definition: ModelEditorEvents.hh:91
static void DisconnectRequestJointRemoval(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the request joint removal signal.
Definition: ModelEditorEvents.hh:322
static void DisconnectJointInserted(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the joint inserted signal.
Definition: ModelEditorEvents.hh:237
static event::ConnectionPtr ConnectNestedModelRemoved(T _subscriber)
Connect a Gazebo event to the nested model removed signal.
Definition: ModelEditorEvents.hh:258
static event::ConnectionPtr ConnectRequestModelPluginRemoval(T _subscriber)
Connect a Gazebo event to the request model plugin removal signal.
Definition: ModelEditorEvents.hh:531
static event::ConnectionPtr ConnectRequestModelPluginInsertion(T _subscriber)
Connect a Gazebo event to the request model plugin insertion signal.
Definition: ModelEditorEvents.hh:547
static event::ConnectionPtr ConnectRequestLinkInsertion(T _subscriber)
Connect a Gazebo event to the request link insertion signal.
Definition: ModelEditorEvents.hh:272
static event::EventT< void(std::string, bool)> setSelectedModelPlugin
Request to select or deselect a model plugin.
Definition: ModelEditorEvents.hh:672
static void DisconnectRequestNestedModelInsertion(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the request nested model insertion signal.
Definition: ModelEditorEvents.hh:196
static void DisconnectRequestLinkInsertion(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the request link insertion signal.
Definition: ModelEditorEvents.hh:279
static event::EventT< void(std::string)> modelPluginRemoved
Notify that a model plugin has been removed.
Definition: ModelEditorEvents.hh:678
static void DisconnectSaveModel(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the save model signal.
Definition: ModelEditorEvents.hh:151
static event::ConnectionPtr ConnectNewModelEditor(T _subscriber)
Connect a Gazebo event to the new signal.
Definition: ModelEditorEvents.hh:78
Definition: ModelEditorEvents.hh:33
static event::ConnectionPtr ConnectSaveAsModelEditor(T _subscriber)
Connect a Gazebo event to the save as signal.
Definition: ModelEditorEvents.hh:65
static event::EventT< void(sdf::ElementPtr, std::string)> requestJointInsertion
Request to insert a joint.
Definition: ModelEditorEvents.hh:621
static event::ConnectionPtr ConnectShowLinkContextMenu(T _subscriber)
Connect a Gazebo event to the show link context menu signal.
Definition: ModelEditorEvents.hh:416
static event::EventT< void()> modelChanged
Model has been changed.
Definition: ModelEditorEvents.hh:574
static event::ConnectionPtr ConnectNestedModelInserted(T _subscriber)
Connect a Gazebo event to the nested model inserted signal.
Definition: ModelEditorEvents.hh:205
static void DisconnectNestedModelRemoved(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the nested model removed signal.
Definition: ModelEditorEvents.hh:264
static event::ConnectionPtr ConnectSaveModelEditor(T _subscriber)
Connect a Gazebo event to the save signal.
Definition: ModelEditorEvents.hh:52
static event::EventT< void(std::string)> requestNestedModelRemoval
Request to remove a nested model.
Definition: ModelEditorEvents.hh:607
static void DisconnectRequestLinkRemoval(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the request link removal signal.
Definition: ModelEditorEvents.hh:294
static event::ConnectionPtr ConnectJointRemoved(T _subscriber)
Connect a Gazebo event to the joint removed signal.
Definition: ModelEditorEvents.hh:345
static void DisconnectSetSelectedLink(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the set selected link signal.
Definition: ModelEditorEvents.hh:464
static void DisconnectModelPluginInserted(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the model plugin inserted signal.
Definition: ModelEditorEvents.hh:507
static event::EventT< void(std::string)> showJointContextMenu
Request to show the joint context menu.
Definition: ModelEditorEvents.hh:658
static void DisconnectRequestModelPluginRemoval(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the request model plugin removal signal.
Definition: ModelEditorEvents.hh:538
static event::ConnectionPtr ConnectRequestNestedModelInsertion(T _subscriber)
Connect a Gazebo event to the request nested model insertion signal.
Definition: ModelEditorEvents.hh:189
static void DisconnectModelPropertiesChanged(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the model properties changed signal.
Definition: ModelEditorEvents.hh:138
static event::ConnectionPtr ConnectRequestJointRemoval(T _subscriber)
Connect a Gazebo event to the request joint removal signal.
Definition: ModelEditorEvents.hh:315
static void DisconnectShowModelPluginContextMenu(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the show model plugin context menu signal.
Definition: ModelEditorEvents.hh:451
static event::EventT< void(std::string, bool)> setSelectedLink
Request to select or deselect a link.
Definition: ModelEditorEvents.hh:665
static event::EventT< void(std::string)> requestLinkRemoval
Request to remove a link.
Definition: ModelEditorEvents.hh:614
static event::ConnectionPtr ConnectJointChanged(T _subscriber)
Connect a Gazebo event to the joint changed signal.
Definition: ModelEditorEvents.hh:245
static void DisconnectModelChanged(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the model changed signal.
Definition: ModelEditorEvents.hh:109
static void DisconnectModelPluginRemoved(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the model plugin removed signal.
Definition: ModelEditorEvents.hh:522
static event::EventT< bool()> saveModelEditor
Request to save the model.
Definition: ModelEditorEvents.hh:562
static event::EventT< void(std::string)> showModelPluginContextMenu
Request to show the model plugin context menu.
Definition: ModelEditorEvents.hh:662
static void DisconnectSaveAsModelEditor(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the save as signal.
Definition: ModelEditorEvents.hh:70
static void DisconnectNewModelEditor(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the new signal.
Definition: ModelEditorEvents.hh:83
static event::ConnectionPtr ConnectModelNameChanged(T _subscriber)
Connect a Gazebo event to the name changed signal.
Definition: ModelEditorEvents.hh:117
static event::ConnectionPtr ConnectShowModelPluginContextMenu(T _subscriber)
Connect a Gazebo event to the show model plugin context menu signal.
Definition: ModelEditorEvents.hh:445
static event::EventT< void(std::string)> requestJointRemoval
Request to remove a joint.
Definition: ModelEditorEvents.hh:617
static event::ConnectionPtr ConnectOpenJointInspector(T _subscriber)
Connect a Gazebo event to the open joint inspector signal.
Definition: ModelEditorEvents.hh:389
static event::EventT< void(std::string)> nestedModelRemoved
Notify that a nested model has been removed.
Definition: ModelEditorEvents.hh:596
static void DisconnectNestedModelInserted(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the nested model inserted signal.
Definition: ModelEditorEvents.hh:211
static event::EventT< void(std::string, std::string)> jointNameChanged
Notify that the joint name has been changed.
Definition: ModelEditorEvents.hh:652
static event::EventT< void(sdf::ElementPtr)> requestNestedModelInsertion
Request to insert a nested model.
Definition: ModelEditorEvents.hh:611
static void DisconnectJointRemoved(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the joint removed signal.
Definition: ModelEditorEvents.hh:350
static void DisconnectRequestJointInsertion(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the request joint insertion signal.
Definition: ModelEditorEvents.hh:337
static event::EventT< void(std::string)> openLinkInspector
Request to open the link inspector.
Definition: ModelEditorEvents.hh:639
boost::shared_ptr< Connection > ConnectionPtr
Definition: CommonTypes.hh:153
static event::ConnectionPtr ConnectRequestNestedModelRemoval(T _subscriber)
Connect a Gazebo event to the request nested model removal signal.
Definition: ModelEditorEvents.hh:173
static void DisconnectSetSelectedJoint(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the set selected joint signal.
Definition: ModelEditorEvents.hh:477
static event::ConnectionPtr ConnectNewModel(T _subscriber)
Connect a Gazebo event to the new model signal.
Definition: ModelEditorEvents.hh:159
static event::ConnectionPtr ConnectOpenLinkInspector(T _subscriber)
Connect a Gazebo event to the open link inspector signal.
Definition: ModelEditorEvents.hh:358
static void DisconnectShowJointContextMenu(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the show joint context menu signal.
Definition: ModelEditorEvents.hh:436
static event::EventT< void(std::string)> openJointInspector
Request to open the joint inspector.
Definition: ModelEditorEvents.hh:642
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:636
static event::ConnectionPtr ConnectSetSelectedModelPlugin(T _subscriber)
Connect a Gazebo event to the set selected model plugin signal.
Definition: ModelEditorEvents.hh:486
static event::ConnectionPtr ConnectJointInserted(T _subscriber)
Connect a Gazebo event to the joint inserted signal.
Definition: ModelEditorEvents.hh:232
static event::EventT< void()> exitModelEditor
Request to exit the editor.
Definition: ModelEditorEvents.hh:571
static void DisconnectFinishModel(event::ConnectionPtr _subscriber)
Disconnect a boost::slot to the finish model signal.
Definition: ModelEditorEvents.hh:44
static event::EventT< void(sdf::ElementPtr)> requestLinkInsertion
Request to insert a link.
Definition: ModelEditorEvents.hh:603
static void DisconnectShowLinkContextMenu(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the show link context menu signal.
Definition: ModelEditorEvents.hh:422
static event::EventT< void(std::string)> modelPluginInserted
Notify that a model plugin has been inserted.
Definition: ModelEditorEvents.hh:675
static event::EventT< void(std::string, bool)> setSelectedJoint
Request to select or deselect a joint.
Definition: ModelEditorEvents.hh:668
static event::ConnectionPtr ConnectModelPropertiesChanged(T _subscriber)
Connect a Gazebo event to the model properties changed signal.
Definition: ModelEditorEvents.hh:132
static event::EventT< void(std::string)> modelNameChanged
Name was changed in the editor palette.
Definition: ModelEditorEvents.hh:577
static void DisconnectModelNameChanged(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the name changed signal.
Definition: ModelEditorEvents.hh:122
static event::EventT< void(std::string)> jointRemoved
Notify that a joint has been removed.
Definition: ModelEditorEvents.hh:630
static event::ConnectionPtr ConnectShowJointContextMenu(T _subscriber)
Connect a Gazebo event to the show joint context menu signal.
Definition: ModelEditorEvents.hh:430
static void DisconnectLinkInserted(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the link inserted signal.
Definition: ModelEditorEvents.hh:224
static void DisconnectSetSelectedModelPlugin(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the set selected model plugin signal.
Definition: ModelEditorEvents.hh:492
static void DisconnectOpenLinkInspector(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the open link inspector signal.
Definition: ModelEditorEvents.hh:364
static event::EventT< void(std::string)> requestModelPluginRemoval
Request to remove a model plugin.
Definition: ModelEditorEvents.hh:682
static void DisconnectNewModel(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the new model signal.
Definition: ModelEditorEvents.hh:164
static event::ConnectionPtr ConnectJointNameChanged(T _subscriber)
Connect a Gazebo event to the joint name changed signal.
Definition: ModelEditorEvents.hh:403
static event::ConnectionPtr ConnectLinkInserted(T _subscriber)
Connect a Gazebo event to the link inserted signal.
Definition: ModelEditorEvents.hh:219
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:627
static event::ConnectionPtr ConnectSetSelectedLink(T _subscriber)
Connect a Gazebo event to the set selected link signal.
Definition: ModelEditorEvents.hh:459
static event::ConnectionPtr ConnectLinkRemoved(T _subscriber)
Connect a Gazebo event to the link removed signal.
Definition: ModelEditorEvents.hh:302
static event::ConnectionPtr ConnectModelChanged(T _subscriber)
Connect a Gazebo event to the model changed signal.
Definition: ModelEditorEvents.hh:104
static event::ConnectionPtr ConnectRequestJointInsertion(T _subscriber)
Connect a Gazebo event to the request joint insertion signal.
Definition: ModelEditorEvents.hh:330
static event::EventT< void(std::string)> openModelPluginInspector
Request to open the model plugin inspector.
Definition: ModelEditorEvents.hh:646
static event::EventT< void(std::string)> saveModel
Notify that model has been saved.
Definition: ModelEditorEvents.hh:584
static event::ConnectionPtr ConnectModelPluginInserted(T _subscriber)
Connect a Gazebo event to the model plugin inserted signal.
Definition: ModelEditorEvents.hh:500
static event::ConnectionPtr ConnectSaveModel(T _subscriber)
Connect a Gazebo event to the save model signal.
Definition: ModelEditorEvents.hh:146
static void DisconnectRequestNestedModelRemoval(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the request nested model removal signal.
Definition: ModelEditorEvents.hh:180
static event::ConnectionPtr ConnectRequestLinkRemoval(T _subscriber)
Connect a Gazebo event to the request link removal signal.
Definition: ModelEditorEvents.hh:287
static event::ConnectionPtr ConnectSetSelectedJoint(T _subscriber)
Connect a Gazebo event to the set selected joint signal.
Definition: ModelEditorEvents.hh:472
static event::EventT< bool()> saveAsModelEditor
Request to save the model as.
Definition: ModelEditorEvents.hh:565
static event::EventT< void(bool, bool)> modelPropertiesChanged
Notify that model properties have been changed.
Definition: ModelEditorEvents.hh:581
static event::EventT< void(std::string, std::string, std::string)> requestModelPluginInsertion
Request to insert a model plugin.
Definition: ModelEditorEvents.hh:686