All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
BuildingEditorEvents.hh
Go to the documentation of this file.
1 /*
2  * Copyright 2013 Open Source Robotics Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16 */
17 #ifndef _BUILDING_EDITOR_EVENTS_HH_
18 #define _BUILDING_EDITOR_EVENTS_HH_
19 
20 #include <string>
21 #include "gazebo/common/Event.hh"
22 #include "gazebo/util/system.hh"
23 
24 namespace gazebo
25 {
26  namespace gui
27  {
28  namespace editor
29  {
31  {
35  public: template<typename T>
38  { return createBuildingEditorItem.Connect(_subscriber); }
39 
43  event::ConnectionPtr _subscriber)
44  { createBuildingEditorItem.Disconnect(_subscriber); }
45 
49  public: template<typename T>
51  { return saveBuildingModel.Connect(_subscriber); }
52 
55  public: static void DisconnectSaveBuildingModel(
56  event::ConnectionPtr _subscriber)
57  { saveBuildingModel.Disconnect(_subscriber); }
58 
62  public: template<typename T>
65  { return finishBuildingModel.Connect(_subscriber); }
66 
69  public: static void DisconnectFinishBuildingModel(
70  event::ConnectionPtr _subscriber)
71  { finishBuildingModel.Disconnect(_subscriber); }
72 
76  public: template<typename T>
79  { return discardBuildingModel.Connect(_subscriber); }
80 
83  public: static void DisconnectDiscardBuildingModel(
84  event::ConnectionPtr _subscriber)
85  { discardBuildingModel.Disconnect(_subscriber); }
86 
90  public: template<typename T>
93  { return changeBuildingLevel.Connect(_subscriber); }
94 
97  public: static void DisconnectChangeBuildingLevel(
98  event::ConnectionPtr _subscriber)
99  { changeBuildingLevel.Disconnect(_subscriber); }
100 
104  public: template<typename T>
106  { return addBuildingLevel.Connect(_subscriber); }
107 
110  public: static void DisconnectAddBuildingLevel(
111  event::ConnectionPtr _subscriber)
112  { addBuildingLevel.Disconnect(_subscriber); }
113 
117  public: template<typename T>
118  static event::ConnectionPtr
120  { return deleteBuildingLevel.Connect(_subscriber); }
121 
124  public: static void DisconnectDeleteBuildingLevel(
125  event::ConnectionPtr _subscriber)
126  { deleteBuildingLevel.Disconnect(_subscriber); }
127 
131  public: template<typename T>
132  static event::ConnectionPtr
134  { return changeBuildingLevelName.Connect(_subscriber); }
135 
139  event::ConnectionPtr _subscriber)
140  { changeBuildingLevelName.Disconnect(_subscriber); }
141 
145  public: template<typename T>
146  static event::ConnectionPtr
148  { return changeBuildingEditorZoom.Connect(_subscriber); }
149 
153  event::ConnectionPtr _subscriber)
154  { changeBuildingEditorZoom.Disconnect(_subscriber); }
155 
159  public: template<typename T>
161  { return saveBuildingEditor.Connect(_subscriber); }
162 
165  public: static void DisconnectSaveBuildingEditor(
166  event::ConnectionPtr _subscriber)
167  { saveBuildingEditor.Disconnect(_subscriber); }
168 
172  public: template<typename T>
174  { return doneBuildingEditor.Connect(_subscriber); }
175 
178  public: static void DisconnectDoneBuildingEditor(
179  event::ConnectionPtr _subscriber)
180  { doneBuildingEditor.Disconnect(_subscriber); }
181 
185  public: template<typename T>
186  static event::ConnectionPtr
188  { return discardBuildingEditor.Connect(_subscriber); }
189 
192  public: static void DisconnectDiscardBuildingEditor(
193  event::ConnectionPtr _subscriber)
194  { discardBuildingEditor.Disconnect(_subscriber); }
195 
199  public: template<typename T>
201  { return exitBuildingEditor.Connect(_subscriber); }
202 
205  public: static void DisconnectExitBuildingEditor(
206  event::ConnectionPtr _subscriber)
207  { exitBuildingEditor.Disconnect(_subscriber); }
208 
210  public: static event::EventT<void (std::string)>
212 
216 
219 
222 
225 
228 
231 
235 
238 
241 
244 
247 
250  };
251  }
252  }
253 }
254 #endif
static event::EventT< void(double)> changeBuildingEditorZoom
The current zoom level has been changed.
Definition: BuildingEditorEvents.hh:237
static event::EventT< void()> addBuildingLevel
A new level has been added.
Definition: BuildingEditorEvents.hh:227
boost::shared_ptr< Connection > ConnectionPtr
Definition: CommonTypes.hh:144
static event::ConnectionPtr ConnectSaveBuildingEditor(T _subscriber)
Connect a boost::slot to the save signal.
Definition: BuildingEditorEvents.hh:160
static event::ConnectionPtr ConnectDeleteBuildingLevel(T _subscriber)
Connect a boost::slot to the delete level signal.
Definition: BuildingEditorEvents.hh:119
static void DisconnectChangeBuildingEditorZoom(event::ConnectionPtr _subscriber)
Disconnect a boost::slot to the change zoom level signal.
Definition: BuildingEditorEvents.hh:152
static event::EventT< void(int)> changeBuildingLevel
The current level has been changed.
Definition: BuildingEditorEvents.hh:224
static event::EventT< void(int)> deleteBuildingLevel
A new level has been deleted.
Definition: BuildingEditorEvents.hh:230
static event::EventT< void(std::string, std::string)> saveBuildingModel
A model has been saved with a name and a location.
Definition: BuildingEditorEvents.hh:215
static event::EventT< void(std::string)> createBuildingEditorItem
An editor item is to be created.
Definition: BuildingEditorEvents.hh:211
static event::ConnectionPtr ConnectChangeBuildingLevel(T _subscriber)
Connect a boost::slot to the change model signal.
Definition: BuildingEditorEvents.hh:92
static void DisconnectFinishBuildingModel(event::ConnectionPtr _subscriber)
Disconnect a boost::slot to the finish model signal.
Definition: BuildingEditorEvents.hh:69
static event::ConnectionPtr ConnectDiscardBuildingModel(T _subscriber)
Connect a boost::slot to the discard model signal.
Definition: BuildingEditorEvents.hh:78
static event::EventT< void()> finishBuildingModel
A model has been completed and uploaded onto the server.
Definition: BuildingEditorEvents.hh:218
static event::EventT< void(int, std::string)> changeBuildingLevelName
The current level name has been changed.
Definition: BuildingEditorEvents.hh:234
static event::ConnectionPtr ConnectFinishBuildingModel(T _subscriber)
Connect a boost::slot to the finish model signal.
Definition: BuildingEditorEvents.hh:64
static event::ConnectionPtr ConnectAddBuildingLevel(T _subscriber)
Connect a boost::slot to the add level signal.
Definition: BuildingEditorEvents.hh:105
static event::ConnectionPtr ConnectDiscardBuildingEditor(T _subscriber)
Connect a boost::slot to the discard signal.
Definition: BuildingEditorEvents.hh:187
static void DisconnectDoneBuildingEditor(event::ConnectionPtr _subscriber)
Disconnect a boost::slot to the done signal.
Definition: BuildingEditorEvents.hh:178
static event::ConnectionPtr ConnectExitBuildingEditor(T _subscriber)
Connect a boost::slot to the exit signal.
Definition: BuildingEditorEvents.hh:200
static void DisconnectExitBuildingEditor(event::ConnectionPtr _subscriber)
Disconnect a boost::slot to the exit signal.
Definition: BuildingEditorEvents.hh:205
static void DisconnectCreateBuildingEditorItem(event::ConnectionPtr _subscriber)
Disconnect a boost::slot to the create editor item signal.
Definition: BuildingEditorEvents.hh:42
static void DisconnectChangeBuildingLevel(event::ConnectionPtr _subscriber)
Disconnect a boost::slot to the change level signal.
Definition: BuildingEditorEvents.hh:97
static event::EventT< void()> discardBuildingEditor
Discard the model.
Definition: BuildingEditorEvents.hh:243
Definition: BuildingEditorEvents.hh:30
static event::EventT< void()> saveBuildingEditor
Save the model.
Definition: BuildingEditorEvents.hh:240
static event::ConnectionPtr ConnectDoneBuildingEditor(T _subscriber)
Connect a boost::slot to the done signal.
Definition: BuildingEditorEvents.hh:173
static void DisconnectChangeBuildingLevelName(event::ConnectionPtr _subscriber)
Disconnect a boost::slot to the change level name signal.
Definition: BuildingEditorEvents.hh:138
static event::ConnectionPtr ConnectCreateBuildingEditorItem(T _subscriber)
Connect a boost::slot to the create editor item signal.
Definition: BuildingEditorEvents.hh:37
static event::ConnectionPtr ConnectSaveBuildingModel(T _subscriber)
Connect a boost::slot to the save model signal.
Definition: BuildingEditorEvents.hh:50
static void DisconnectSaveBuildingModel(event::ConnectionPtr _subscriber)
Disconnect a boost::slot to the save model signal.
Definition: BuildingEditorEvents.hh:55
static void DisconnectDeleteBuildingLevel(event::ConnectionPtr _subscriber)
Disconnect a boost::slot to the delete level signal.
Definition: BuildingEditorEvents.hh:124
static void DisconnectDiscardBuildingModel(event::ConnectionPtr _subscriber)
Disconnect a boost::slot to the discard model signal.
Definition: BuildingEditorEvents.hh:83
static event::ConnectionPtr ConnectChangeBuildingEditorZoom(T _subscriber)
Connect a boost::slot to the change zoom signal.
Definition: BuildingEditorEvents.hh:147
static void DisconnectAddBuildingLevel(event::ConnectionPtr _subscriber)
Disconnect a boost::slot to the add level signal.
Definition: BuildingEditorEvents.hh:110
static event::EventT< void()> discardBuildingModel
A model has been discarded.
Definition: BuildingEditorEvents.hh:221
static event::EventT< void()> doneBuildingEditor
Finish creating the model, save, and exit.
Definition: BuildingEditorEvents.hh:246
static void DisconnectDiscardBuildingEditor(event::ConnectionPtr _subscriber)
Disconnect a boost::slot to the discard signal.
Definition: BuildingEditorEvents.hh:192
static event::ConnectionPtr ConnectChangeBuildingLevelName(T _subscriber)
Connect a boost::slot to the change level name signal.
Definition: BuildingEditorEvents.hh:133
static event::EventT< void()> exitBuildingEditor
Exit the editor mode with the option to save.
Definition: BuildingEditorEvents.hh:249
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48
static void DisconnectSaveBuildingEditor(event::ConnectionPtr _subscriber)
Disconnect a boost::slot to the save signal.
Definition: BuildingEditorEvents.hh:165