17 #ifndef GAZEBO_GUI_GUIEVENTS_HH_
18 #define GAZEBO_GUI_GUIEVENTS_HH_
21 #include <ignition/math/Pose3.hh>
22 #include <ignition/math/Vector3.hh>
36 public:
template<
typename T>
38 {
return createEntity.Connect(_subscriber); }
45 { createEntity.Disconnect(_subscriber->Id()); }
49 public:
template<
typename T>
51 {
return moveMode.Connect(_subscriber); }
57 { moveMode.Disconnect(_subscriber->Id()); }
61 public:
template<
typename T>
63 {
return manipMode.Connect(_subscriber);}
69 {manipMode.Disconnect(_subscriber->Id());}
73 public:
template<
typename T>
75 {
return alignMode.Connect(_subscriber);}
81 {alignMode.Disconnect(_subscriber->Id());}
85 public:
template<
typename T>
87 {
return fullScreen.Connect(_subscriber); }
93 { fullScreen.Disconnect(_subscriber->Id()); }
97 public:
template<
typename T>
99 {
return showToolbars.Connect(_subscriber); }
106 { showToolbars.Disconnect(_subscriber->Id()); }
110 public:
template<
typename T>
112 {
return fps.Connect(_subscriber); }
118 { fps.Disconnect(_subscriber->Id()); }
122 public:
template<
typename T>
124 {
return orbit.Connect(_subscriber); }
130 { orbit.Disconnect(_subscriber->Id()); }
134 public:
template<
typename T>
136 {
return keyPress.Connect(_subscriber); }
142 { keyPress.Disconnect(_subscriber->Id()); }
146 public:
template<
typename T>
148 {
return lightUpdate.Connect(_subscriber); }
155 { lightUpdate.Disconnect(_subscriber->Id()); }
159 public:
template<
typename T>
161 {
return modelUpdate.Connect(_subscriber); }
168 { modelUpdate.Disconnect(_subscriber->Id()); }
172 public:
template<
typename T>
174 {
return inputStepSize.Connect(_subscriber); }
181 { inputStepSize.Disconnect(_subscriber->Id()); }
185 public:
template<
typename T>
187 {
return follow.Connect(_subscriber); }
194 { follow.Disconnect(_subscriber->Id()); }
198 public:
template<
typename T>
200 {
return editModel.Connect(_subscriber); }
207 { editModel.Disconnect(_subscriber->Id()); }
211 public:
template<
typename T>
213 {
return windowMode.Connect(_subscriber); }
220 { windowMode.Disconnect(_subscriber->Id()); }
224 public:
template<
typename T>
226 {
return mainWindowReady.Connect(_subscriber); }
233 { mainWindowReady.Disconnect(_subscriber->Id()); }
237 public:
template<
typename T>
240 {
return leftPaneVisibility.Connect(_subscriber); }
247 { leftPaneVisibility.Disconnect(_subscriber->Id()); }
251 public:
template<
typename T>
253 {
return scaleEntity.Connect(_subscriber); }
260 { scaleEntity.Disconnect(_subscriber->Id()); }
264 public:
template<
typename T>
266 {
return moveEntity.Connect(_subscriber); }
273 { moveEntity.Disconnect(_subscriber->Id()); }
static event::EventT< void()> fps
An event to enable first-person-shooter view control.
Definition: GuiEvents.hh:302
static event::EventT< void(std::string, std::string, std::string, bool, bool)> alignMode
indicates the user is aligning objects
Definition: GuiEvents.hh:283
static void DisconnectEditModel(event::ConnectionPtr _subscriber) GAZEBO_DEPRECATED(8.0)
Disconnect a signal from the edit model signal.
Definition: GuiEvents.hh:204
static event::EventT< void(std::string)> keyPress
Event triggered when a key is pressed.
Definition: GuiEvents.hh:320
static event::ConnectionPtr ConnectScaleEntity(T _subscriber)
Connect a signal to the scale entity signal.
Definition: GuiEvents.hh:252
static void DisconnectKeyPress(event::ConnectionPtr _subscriber) GAZEBO_DEPRECATED(8.0)
Disconnect a signal from the view KeyPress signal.
Definition: GuiEvents.hh:140
static event::ConnectionPtr ConnectManipMode(T _subscriber)
Connect a signal to the manip mode signal.
Definition: GuiEvents.hh:62
static event::EventT< void(bool)> showToolbars
An event to trigger show toolbars.
Definition: GuiEvents.hh:299
static event::EventT< void(const msgs::Model &)> modelUpdate
indicates a model has been updated
Definition: GuiEvents.hh:290
static event::ConnectionPtr ConnectWindowMode(T _subscriber)
Connect a signal to the window mode signal.
Definition: GuiEvents.hh:212
static event::EventT< void(int)> inputStepSize
Step size changed event.
Definition: GuiEvents.hh:323
static event::ConnectionPtr ConnectModelUpdate(T _subscriber)
Connect a signal to the model update signal.
Definition: GuiEvents.hh:160
static event::EventT< void(std::string)> manipMode
indicates the user is manipulating an object
Definition: GuiEvents.hh:279
static event::EventT< void(bool)> leftPaneVisibility
Used to set whether the GUI's left pane is visible.
Definition: GuiEvents.hh:326
static void DisconnectScaleEntity(event::ConnectionPtr _subscriber) GAZEBO_DEPRECATED(8.0)
Disconnect a signal from the scale entity signal.
Definition: GuiEvents.hh:257
static void DisconnectCreateEntity(event::ConnectionPtr _subscriber) GAZEBO_DEPRECATED(8.0)
Disconnect a signal from add entity signal.
Definition: GuiEvents.hh:42
static event::ConnectionPtr ConnectShowToolbars(T _subscriber)
Connect a signal to the show toolbars signal.
Definition: GuiEvents.hh:98
static event::ConnectionPtr ConnectMainWindowReady(T _subscriber)
Connect a signal to the main window ready signal.
Definition: GuiEvents.hh:225
static void DisconnectWindowMode(event::ConnectionPtr _subscriber) GAZEBO_DEPRECATED(8.0)
Disconnect a signal from the window mode signal.
Definition: GuiEvents.hh:217
static void DisconnectMoveEntity(event::ConnectionPtr _subscriber) GAZEBO_DEPRECATED(8.0)
Disconnect a signal from the move entity event.
Definition: GuiEvents.hh:270
static event::EventT< void(const std::string &)> follow
Event triggered when the user follows a model.
Definition: GuiEvents.hh:309
static void DisconnectLeftPaneVisibility(event::ConnectionPtr _subscriber) GAZEBO_DEPRECATED(8.0)
Disconnect a signal to toggle the GUI's left hand pane signal.
Definition: GuiEvents.hh:244
static void DisconnectFullScreen(event::ConnectionPtr _subscriber) GAZEBO_DEPRECATED(8.0)
Disconnect a signal from the fullscreen signal.
Definition: GuiEvents.hh:91
static event::ConnectionPtr ConnectOrbit(T _subscriber)
Connect a signal to the view Orbit signal.
Definition: GuiEvents.hh:123
static event::EventT< void(bool)> moveMode
Indicates the user is moving the camera.
Definition: GuiEvents.hh:276
static event::ConnectionPtr ConnectEditModel(T _subscriber)
Connect a signal to the edit model signal.
Definition: GuiEvents.hh:199
static void DisconnectAlignMode(event::ConnectionPtr _subscriber) GAZEBO_DEPRECATED(8.0)
Disconnect a signal from the align mode signal.
Definition: GuiEvents.hh:79
static void DisconnectMoveMode(event::ConnectionPtr _subscriber) GAZEBO_DEPRECATED(8.0)
Disconnect a signal from the move mode signal.
Definition: GuiEvents.hh:55
static event::EventT< void()> orbit
An event to enable orbit view control.
Definition: GuiEvents.hh:305
static void DisconnectModelUpdate(event::ConnectionPtr _subscriber) GAZEBO_DEPRECATED(8.0)
Disconnect a signal from the model update signal.
Definition: GuiEvents.hh:165
static event::ConnectionPtr ConnectMoveEntity(T _subscriber)
Connect a signal to the move entity event.
Definition: GuiEvents.hh:265
static event::EventT< void(const std::string &)> windowMode
Event triggered when changing window mode.
Definition: GuiEvents.hh:317
static event::EventT< void(const std::string &)> editModel
Event triggered when the user selects edit a model.
Definition: GuiEvents.hh:313
static event::EventT< void(bool)> fullScreen
An event to trigger full screen mode.
Definition: GuiEvents.hh:296
static event::EventT< void(const std::string &, const ignition::math::Pose3d &, const bool)> moveEntity
Move entity event.
Definition: GuiEvents.hh:338
static event::ConnectionPtr ConnectFullScreen(T _subscriber)
Connect a signal to the fullscreen signal.
Definition: GuiEvents.hh:86
static void DisconnectManipMode(event::ConnectionPtr _subscriber) GAZEBO_DEPRECATED(8.0)
Disconnect a signal from the manip mode signal.
Definition: GuiEvents.hh:67
static event::ConnectionPtr ConnectAlignMode(T _subscriber)
Connect a signal to the align mode signal.
Definition: GuiEvents.hh:74
static event::ConnectionPtr ConnectCreateEntity(T _subscriber)
Connect a signal the add entity signal.
Definition: GuiEvents.hh:37
static event::EventT< void(const std::string &, const ignition::math::Vector3d &)> scaleEntity
Scale entity event.
Definition: GuiEvents.hh:333
static void DisconnectInputStepSize(event::ConnectionPtr _subscriber) GAZEBO_DEPRECATED(8.0)
Disconnect a signal from the input step size signal.
Definition: GuiEvents.hh:178
static void DisconnectLightUpdate(event::ConnectionPtr _subscriber) GAZEBO_DEPRECATED(8.0)
Disconnect a signal from the light update signal.
Definition: GuiEvents.hh:152
boost::shared_ptr< Connection > ConnectionPtr
Definition: CommonTypes.hh:134
static void DisconnectOrbit(event::ConnectionPtr _subscriber) GAZEBO_DEPRECATED(8.0)
Disconnect a signal from the view Orbit signal.
Definition: GuiEvents.hh:128
#define GAZEBO_DEPRECATED(version)
Definition: system.hh:302
static event::ConnectionPtr ConnectInputStepSize(T _subscriber)
Connect a signal to the input step size signal.
Definition: GuiEvents.hh:173
static void DisconnectMainWindowReady(event::ConnectionPtr _subscriber) GAZEBO_DEPRECATED(8.0)
Disconnect a signal from the main window ready signal.
Definition: GuiEvents.hh:230
static event::EventT< void(std::string, std::string)> createEntity
indicates an entity has been created
Definition: GuiEvents.hh:287
static event::ConnectionPtr ConnectLightUpdate(T _subscriber)
Connect a signal to the light update signal.
Definition: GuiEvents.hh:147
static void DisconnectShowToolbars(event::ConnectionPtr _subscriber) GAZEBO_DEPRECATED(8.0)
Disconnect a signal from the show toolbars signal.
Definition: GuiEvents.hh:103
static event::ConnectionPtr ConnectFollow(T _subscriber)
Connect a signal to the follow signal.
Definition: GuiEvents.hh:186
Definition: GuiEvents.hh:32
static event::ConnectionPtr ConnectKeyPress(T _subscriber)
Connect a signal to the view KeyPress signal.
Definition: GuiEvents.hh:135
static void DisconnectFPS(event::ConnectionPtr _subscriber) GAZEBO_DEPRECATED(8.0)
Disconnect a signal from the view FPS signal.
Definition: GuiEvents.hh:116
static event::ConnectionPtr ConnectFPS(T _subscriber)
Connect a signal to the view FPS signal.
Definition: GuiEvents.hh:111
static event::EventT< void()> mainWindowReady
Main window ready event.
Definition: GuiEvents.hh:329
static event::EventT< void(const msgs::Light &)> lightUpdate
An event to notify light updates.
Definition: GuiEvents.hh:293
static event::ConnectionPtr ConnectMoveMode(T _subscriber)
Connect a signal to the move mode signal.
Definition: GuiEvents.hh:50
static void DisconnectFollow(event::ConnectionPtr _subscriber) GAZEBO_DEPRECATED(8.0)
Disconnect a signal from the follow signal.
Definition: GuiEvents.hh:191