17 #ifndef _BUILDING_EDITOR_EVENTS_HH_ 18 #define _BUILDING_EDITOR_EVENTS_HH_ 36 public:
template<
typename T>
39 {
return toggleEditMode.Connect(_subscriber); }
44 public:
template<
typename T>
47 {
return createBuildingEditorItem.Connect(_subscriber); }
52 public:
template<
typename T>
55 {
return colorSelected.Connect(_subscriber); }
60 public:
template<
typename T>
63 {
return textureSelected.Connect(_subscriber); }
68 public:
template<
typename T>
70 {
return saveBuildingModel.Connect(_subscriber); }
75 public:
template<
typename T>
78 {
return finishBuildingModel.Connect(_subscriber); }
83 public:
template<
typename T>
86 {
return newBuildingModel.Connect(_subscriber); }
91 public:
template<
typename T>
94 {
return changeBuildingLevel.Connect(_subscriber); }
99 public:
template<
typename T>
101 {
return addBuildingLevel.Connect(_subscriber); }
106 public:
template<
typename T>
109 {
return deleteBuildingLevel.Connect(_subscriber); }
114 public:
template<
typename T>
116 {
return showFloorplan.Connect(_subscriber); }
122 public:
template<
typename T>
125 {
return triggerShowFloorplan.Connect(_subscriber); }
130 public:
template<
typename T>
132 {
return showElements.Connect(_subscriber); }
138 public:
template<
typename T>
141 {
return triggerShowElements.Connect(_subscriber); }
146 public:
template<
typename T>
149 {
return updateLevelWidget.Connect(_subscriber); }
154 public:
template<
typename T>
157 {
return changeBuildingEditorZoom.Connect(_subscriber); }
162 public:
template<
typename T>
164 {
return saveBuildingEditor.Connect(_subscriber); }
169 public:
template<
typename T>
172 {
return saveAsBuildingEditor.Connect(_subscriber); }
177 public:
template<
typename T>
180 {
return newBuildingEditor.Connect(_subscriber); }
185 public:
template<
typename T>
187 {
return exitBuildingEditor.Connect(_subscriber); }
192 public:
template<
typename T>
195 {
return buildingNameChanged.Connect(_subscriber); }
static event::EventT< void()> finishBuildingModel
A model has been completed and uploaded onto the server.
Definition: BuildingEditorEvents.hh:214
static event::ConnectionPtr ConnectColorSelected(T _subscriber)
Connect a Gazebo event to the color selected signal.
Definition: BuildingEditorEvents.hh:54
Forward declarations for the common classes.
Definition: Animation.hh:26
static event::EventT< void()> deleteBuildingLevel
A level has been deleted.
Definition: BuildingEditorEvents.hh:226
static event::ConnectionPtr ConnectTriggerShowFloorplan(T _subscriber)
Connect a Gazebo event to the trigger show floorplan signal.
Definition: BuildingEditorEvents.hh:124
static event::ConnectionPtr ConnectSaveBuildingModel(T _subscriber)
Connect a Gazebo event to the save model signal.
Definition: BuildingEditorEvents.hh:69
static event::EventT< void()> triggerShowFloorplan
Trigger show floorplan.
Definition: BuildingEditorEvents.hh:232
static event::EventT< void()> showFloorplan
Show or hide floorplan.
Definition: BuildingEditorEvents.hh:229
static event::EventT< void(int, std::string)> updateLevelWidget
The levels have been changed.
Definition: BuildingEditorEvents.hh:242
static event::ConnectionPtr ConnectChangeBuildingEditorZoom(T _subscriber)
Connect a Gazebo event to the change zoom signal.
Definition: BuildingEditorEvents.hh:156
static event::EventT< void(bool)> toggleEditMode
Toggle if the edit mode was checked or not.
Definition: BuildingEditorEvents.hh:198
static event::EventT< void(std::string)> buildingNameChanged
Name was changed in the editor palette.
Definition: BuildingEditorEvents.hh:260
static event::EventT< void(std::string)> saveBuildingModel
A model has been saved with a name and a location.
Definition: BuildingEditorEvents.hh:211
static event::EventT< void()> triggerShowElements
Trigger show elements.
Definition: BuildingEditorEvents.hh:238
static event::EventT< void(QString)> textureSelected
A texture has been selected.
Definition: BuildingEditorEvents.hh:208
static event::ConnectionPtr ConnectTriggerShowElements(T _subscriber)
Connect a Gazebo event to the trigger show elements signal.
Definition: BuildingEditorEvents.hh:140
static event::EventT< void()> exitBuildingEditor
Exit the editor mode with the option to save.
Definition: BuildingEditorEvents.hh:257
static event::EventT< void()> newBuildingModel
A new model has been started.
Definition: BuildingEditorEvents.hh:217
static event::ConnectionPtr ConnectExitBuildingEditor(T _subscriber)
Connect a Gazebo event to the exit signal.
Definition: BuildingEditorEvents.hh:186
static event::ConnectionPtr ConnectTextureSelected(T _subscriber)
Connect a Gazebo event to the texture selected signal.
Definition: BuildingEditorEvents.hh:62
static event::ConnectionPtr ConnectShowElements(T _subscriber)
Connect a Gazebo event to the show elements signal.
Definition: BuildingEditorEvents.hh:131
static event::EventT< void(int)> changeBuildingLevel
The current level has been changed.
Definition: BuildingEditorEvents.hh:220
static event::EventT< void(std::string)> createBuildingEditorItem
An editor item is to be created.
Definition: BuildingEditorEvents.hh:202
static event::EventT< void()> newBuildingEditor
Make a new model.
Definition: BuildingEditorEvents.hh:254
static event::ConnectionPtr ConnectDeleteBuildingLevel(T _subscriber)
Connect a Gazebo event to the delete level signal.
Definition: BuildingEditorEvents.hh:108
static event::ConnectionPtr ConnectCreateBuildingEditorItem(T _subscriber)
Connect a Gazebo event to the create editor item signal.
Definition: BuildingEditorEvents.hh:46
Definition: BuildingEditorEvents.hh:31
static event::EventT< void()> addBuildingLevel
A new level has been added.
Definition: BuildingEditorEvents.hh:223
static event::ConnectionPtr ConnectNewBuildingEditor(T _subscriber)
Connect a Gazebo event to the new signal.
Definition: BuildingEditorEvents.hh:179
static event::ConnectionPtr ConnectUpdateLevelWidget(T _subscriber)
Connect a Gazebo event to the update level widget signal.
Definition: BuildingEditorEvents.hh:148
static event::EventT< void(QColor)> colorSelected
A color has been selected.
Definition: BuildingEditorEvents.hh:205
static event::ConnectionPtr ConnectFinishBuildingModel(T _subscriber)
Connect a Gazebo event to the finish model signal.
Definition: BuildingEditorEvents.hh:77
boost::shared_ptr< Connection > ConnectionPtr
Definition: CommonTypes.hh:134
gui
Definition: KeyEventHandler.hh:29
static event::EventT< bool()> saveBuildingEditor
Save the model.
Definition: BuildingEditorEvents.hh:248
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:251
static event::ConnectionPtr ConnectShowFloorplan(T _subscriber)
Connect a Gazebo event to the show floorplan signal.
Definition: BuildingEditorEvents.hh:115
static event::EventT< void(double)> changeBuildingEditorZoom
The current zoom level has been changed.
Definition: BuildingEditorEvents.hh:245
static event::ConnectionPtr ConnectNewBuildingModel(T _subscriber)
Connect a Gazebo event to the new model signal.
Definition: BuildingEditorEvents.hh:85
static event::ConnectionPtr ConnectAddBuildingLevel(T _subscriber)
Connect a Gazebo event to the add level signal.
Definition: BuildingEditorEvents.hh:100
static event::ConnectionPtr ConnectSaveBuildingEditor(T _subscriber)
Connect a Gazebo event to the save signal.
Definition: BuildingEditorEvents.hh:163
static event::EventT< void()> showElements
Show or hide building elements.
Definition: BuildingEditorEvents.hh:235
static event::ConnectionPtr ConnectChangeBuildingLevel(T _subscriber)
Connect a Gazebo event to the change model signal.
Definition: BuildingEditorEvents.hh:93