17 #ifndef _BUILDING_EDITOR_EVENTS_HH_
18 #define _BUILDING_EDITOR_EVENTS_HH_
36 public:
template<
typename T>
39 {
return toggleEditMode.Connect(_subscriber); }
45 { toggleEditMode.Disconnect(_subscriber); }
50 public:
template<
typename T>
53 {
return createBuildingEditorItem.Connect(_subscriber); }
59 { createBuildingEditorItem.Disconnect(_subscriber); }
64 public:
template<
typename T>
67 {
return colorSelected.Connect(_subscriber); }
73 { colorSelected.Disconnect(_subscriber); }
78 public:
template<
typename T>
81 {
return textureSelected.Connect(_subscriber); }
87 { textureSelected.Disconnect(_subscriber); }
92 public:
template<
typename T>
94 {
return saveBuildingModel.Connect(_subscriber); }
100 { saveBuildingModel.Disconnect(_subscriber); }
105 public:
template<
typename T>
108 {
return finishBuildingModel.Connect(_subscriber); }
114 { finishBuildingModel.Disconnect(_subscriber); }
119 public:
template<
typename T>
122 {
return newBuildingModel.Connect(_subscriber); }
128 { newBuildingModel.Disconnect(_subscriber); }
133 public:
template<
typename T>
136 {
return changeBuildingLevel.Connect(_subscriber); }
142 { changeBuildingLevel.Disconnect(_subscriber); }
147 public:
template<
typename T>
149 {
return addBuildingLevel.Connect(_subscriber); }
155 { addBuildingLevel.Disconnect(_subscriber); }
160 public:
template<
typename T>
163 {
return deleteBuildingLevel.Connect(_subscriber); }
169 { deleteBuildingLevel.Disconnect(_subscriber); }
174 public:
template<
typename T>
176 {
return showFloorplan.Connect(_subscriber); }
182 { showFloorplan.Disconnect(_subscriber); }
188 public:
template<
typename T>
191 {
return triggerShowFloorplan.Connect(_subscriber); }
198 { triggerShowFloorplan.Disconnect(_subscriber); }
203 public:
template<
typename T>
205 {
return showElements.Connect(_subscriber); }
211 { showElements.Disconnect(_subscriber); }
217 public:
template<
typename T>
220 {
return triggerShowElements.Connect(_subscriber); }
227 { triggerShowElements.Disconnect(_subscriber); }
232 public:
template<
typename T>
235 {
return updateLevelWidget.Connect(_subscriber); }
241 { updateLevelWidget.Disconnect(_subscriber); }
246 public:
template<
typename T>
249 {
return changeBuildingEditorZoom.Connect(_subscriber); }
255 { changeBuildingEditorZoom.Disconnect(_subscriber); }
260 public:
template<
typename T>
262 {
return saveBuildingEditor.Connect(_subscriber); }
268 { saveBuildingEditor.Disconnect(_subscriber); }
273 public:
template<
typename T>
276 {
return saveAsBuildingEditor.Connect(_subscriber); }
282 { saveAsBuildingEditor.Disconnect(_subscriber); }
287 public:
template<
typename T>
290 {
return newBuildingEditor.Connect(_subscriber); }
296 { newBuildingEditor.Disconnect(_subscriber); }
301 public:
template<
typename T>
303 {
return exitBuildingEditor.Connect(_subscriber); }
309 { exitBuildingEditor.Disconnect(_subscriber); }
314 public:
template<
typename T>
317 {
return buildingNameChanged.Connect(_subscriber); }
323 { buildingNameChanged.Disconnect(_subscriber); }
static void DisconnectAddBuildingLevel(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the add level signal.
Definition: BuildingEditorEvents.hh:153
static event::EventT< void()> finishBuildingModel
A model has been completed and uploaded onto the server.
Definition: BuildingEditorEvents.hh:342
static void DisconnectUpdateLevelWidget(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the update level widget signal.
Definition: BuildingEditorEvents.hh:239
static void DisconnectExitBuildingEditor(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the exit signal.
Definition: BuildingEditorEvents.hh:307
static event::ConnectionPtr ConnectColorSelected(T _subscriber)
Connect a Gazebo event to the color selected signal.
Definition: BuildingEditorEvents.hh:66
static void DisconnectChangeBuildingEditorZoom(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the change zoom level signal.
Definition: BuildingEditorEvents.hh:253
static void DisconnectToggleEditMode(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the toggle edit mode signal.
Definition: BuildingEditorEvents.hh:43
static void DisconnectShowFloorplan(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the show floorplan signal.
Definition: BuildingEditorEvents.hh:180
static void DisconnectTriggerShowElements(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the trigger show elements signal.
Definition: BuildingEditorEvents.hh:225
static void DisconnectSaveAsBuildingEditor(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the save as signal.
Definition: BuildingEditorEvents.hh:280
static event::EventT< void()> deleteBuildingLevel
A level has been deleted.
Definition: BuildingEditorEvents.hh:354
static event::ConnectionPtr ConnectTriggerShowFloorplan(T _subscriber)
Connect a Gazebo event to the trigger show floorplan signal.
Definition: BuildingEditorEvents.hh:190
static void DisconnectFinishBuildingModel(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the finish model signal.
Definition: BuildingEditorEvents.hh:112
static event::ConnectionPtr ConnectSaveBuildingModel(T _subscriber)
Connect a Gazebo event to the save model signal.
Definition: BuildingEditorEvents.hh:93
static event::EventT< void()> triggerShowFloorplan
Trigger show floorplan.
Definition: BuildingEditorEvents.hh:360
static void DisconnectTextureSelected(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the texture selected signal.
Definition: BuildingEditorEvents.hh:85
static void DisconnectNewBuildingModel(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the new model signal.
Definition: BuildingEditorEvents.hh:126
static void DisconnectNewBuildingEditor(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the new signal.
Definition: BuildingEditorEvents.hh:294
static event::EventT< void()> showFloorplan
Show or hide floorplan.
Definition: BuildingEditorEvents.hh:357
static event::EventT< void(int, std::string)> updateLevelWidget
The levels have been changed.
Definition: BuildingEditorEvents.hh:370
static void DisconnectBuildingNameChanged(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the name changed signal.
Definition: BuildingEditorEvents.hh:321
static event::ConnectionPtr ConnectChangeBuildingEditorZoom(T _subscriber)
Connect a Gazebo event to the change zoom signal.
Definition: BuildingEditorEvents.hh:248
static event::EventT< void(bool)> toggleEditMode
Toggle if the edit mode was checked or not.
Definition: BuildingEditorEvents.hh:326
static event::EventT< void(std::string)> buildingNameChanged
Name was changed in the editor palette.
Definition: BuildingEditorEvents.hh:388
static event::EventT< void(std::string)> saveBuildingModel
A model has been saved with a name and a location.
Definition: BuildingEditorEvents.hh:339
static event::EventT< void()> triggerShowElements
Trigger show elements.
Definition: BuildingEditorEvents.hh:366
static void DisconnectShowElements(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the show elements signal.
Definition: BuildingEditorEvents.hh:209
static event::EventT< void(QString)> textureSelected
A texture has been selected.
Definition: BuildingEditorEvents.hh:336
static event::ConnectionPtr ConnectTriggerShowElements(T _subscriber)
Connect a Gazebo event to the trigger show elements signal.
Definition: BuildingEditorEvents.hh:219
static event::EventT< void()> exitBuildingEditor
Exit the editor mode with the option to save.
Definition: BuildingEditorEvents.hh:385
static event::EventT< void()> newBuildingModel
A new model has been started.
Definition: BuildingEditorEvents.hh:345
static event::ConnectionPtr ConnectExitBuildingEditor(T _subscriber)
Connect a Gazebo event to the exit signal.
Definition: BuildingEditorEvents.hh:302
static event::ConnectionPtr ConnectTextureSelected(T _subscriber)
Connect a Gazebo event to the texture selected signal.
Definition: BuildingEditorEvents.hh:80
static event::ConnectionPtr ConnectShowElements(T _subscriber)
Connect a Gazebo event to the show elements signal.
Definition: BuildingEditorEvents.hh:204
static event::EventT< void(int)> changeBuildingLevel
The current level has been changed.
Definition: BuildingEditorEvents.hh:348
static void DisconnectCreateBuildingEditorItem(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the create editor item signal.
Definition: BuildingEditorEvents.hh:57
static event::EventT< void(std::string)> createBuildingEditorItem
An editor item is to be created.
Definition: BuildingEditorEvents.hh:330
static event::EventT< void()> newBuildingEditor
Make a new model.
Definition: BuildingEditorEvents.hh:382
static void DisconnectTriggerShowFloorplan(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the trigger show floorplan signal.
Definition: BuildingEditorEvents.hh:196
static event::ConnectionPtr ConnectDeleteBuildingLevel(T _subscriber)
Connect a Gazebo event to the delete level signal.
Definition: BuildingEditorEvents.hh:162
static event::ConnectionPtr ConnectCreateBuildingEditorItem(T _subscriber)
Connect a Gazebo event to the create editor item signal.
Definition: BuildingEditorEvents.hh:52
Definition: BuildingEditorEvents.hh:31
static event::EventT< void()> addBuildingLevel
A new level has been added.
Definition: BuildingEditorEvents.hh:351
static event::ConnectionPtr ConnectNewBuildingEditor(T _subscriber)
Connect a Gazebo event to the new signal.
Definition: BuildingEditorEvents.hh:289
static event::ConnectionPtr ConnectUpdateLevelWidget(T _subscriber)
Connect a Gazebo event to the update level widget signal.
Definition: BuildingEditorEvents.hh:234
static event::EventT< void(QColor)> colorSelected
A color has been selected.
Definition: BuildingEditorEvents.hh:333
static void DisconnectSaveBuildingModel(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the save model signal.
Definition: BuildingEditorEvents.hh:98
static event::ConnectionPtr ConnectFinishBuildingModel(T _subscriber)
Connect a Gazebo event to the finish model signal.
Definition: BuildingEditorEvents.hh:107
boost::shared_ptr< Connection > ConnectionPtr
Definition: CommonTypes.hh:153
static event::EventT< bool()> saveBuildingEditor
Save the model.
Definition: BuildingEditorEvents.hh:376
static event::ConnectionPtr ConnectToggleEditMode(T _subscriber)
Connect a Gazebo event to the toggle edit mode signal.
Definition: BuildingEditorEvents.hh:38
static event::EventT< bool()> saveAsBuildingEditor
Save the model as.
Definition: BuildingEditorEvents.hh:379
static void DisconnectChangeBuildingLevel(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the change level signal.
Definition: BuildingEditorEvents.hh:140
static event::ConnectionPtr ConnectShowFloorplan(T _subscriber)
Connect a Gazebo event to the show floorplan signal.
Definition: BuildingEditorEvents.hh:175
static event::EventT< void(double)> changeBuildingEditorZoom
The current zoom level has been changed.
Definition: BuildingEditorEvents.hh:373
static event::ConnectionPtr ConnectNewBuildingModel(T _subscriber)
Connect a Gazebo event to the new model signal.
Definition: BuildingEditorEvents.hh:121
static event::ConnectionPtr ConnectAddBuildingLevel(T _subscriber)
Connect a Gazebo event to the add level signal.
Definition: BuildingEditorEvents.hh:148
static event::ConnectionPtr ConnectSaveBuildingEditor(T _subscriber)
Connect a Gazebo event to the save signal.
Definition: BuildingEditorEvents.hh:261
static void DisconnectSaveBuildingEditor(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the save signal.
Definition: BuildingEditorEvents.hh:266
static event::EventT< void()> showElements
Show or hide building elements.
Definition: BuildingEditorEvents.hh:363
static event::ConnectionPtr ConnectChangeBuildingLevel(T _subscriber)
Connect a Gazebo event to the change model signal.
Definition: BuildingEditorEvents.hh:135
static void DisconnectColorSelected(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the color selected signal.
Definition: BuildingEditorEvents.hh:71
static void DisconnectDeleteBuildingLevel(event::ConnectionPtr _subscriber)
Disconnect a Gazebo event from the delete level signal.
Definition: BuildingEditorEvents.hh:167