17 #ifndef _GUI_EVENTS_HH_
18 #define _GUI_EVENTS_HH_
33 public:
template<
typename T>
35 {
return createEntity.Connect(_subscriber); }
40 { createEntity.Disconnect(_subscriber); }
44 public:
template<
typename T>
46 {
return moveMode.Connect(_subscriber); }
50 { moveMode.Disconnect(_subscriber); }
54 public:
template<
typename T>
56 {
return manipMode.Connect(_subscriber);}
60 {manipMode.Disconnect(_subscriber);}
64 public:
template<
typename T>
66 {
return alignMode.Connect(_subscriber);}
70 {alignMode.Disconnect(_subscriber);}
74 public:
template<
typename T>
76 {
return fullScreen.Connect(_subscriber); }
80 { fullScreen.Disconnect(_subscriber); }
84 public:
template<
typename T>
86 {
return fps.Connect(_subscriber); }
90 { fps.Disconnect(_subscriber); }
94 public:
template<
typename T>
96 {
return orbit.Connect(_subscriber); }
100 { orbit.Disconnect(_subscriber); }
104 public:
template<
typename T>
106 {
return keyPress.Connect(_subscriber); }
110 { keyPress.Disconnect(_subscriber); }
114 public:
template<
typename T>
116 {
return lightUpdate.Connect(_subscriber); }
121 { lightUpdate.Disconnect(_subscriber); }
125 public:
template<
typename T>
127 {
return modelUpdate.Connect(_subscriber); }
132 { modelUpdate.Disconnect(_subscriber); }
136 public:
template<
typename T>
138 {
return inputStepSize.Connect(_subscriber); }
143 { inputStepSize.Disconnect(_subscriber); }
147 public:
template<
typename T>
149 {
return follow.Connect(_subscriber); }
154 { follow.Disconnect(_subscriber); }
158 public:
template<
typename T>
160 {
return mainWindowReady.Connect(_subscriber); }
165 { mainWindowReady.Disconnect(_subscriber); }
169 public:
template<
typename T>
172 {
return leftPaneVisibility.Connect(_subscriber); }
177 { leftPaneVisibility.Disconnect(_subscriber); }
boost::shared_ptr< Connection > ConnectionPtr
Definition: CommonTypes.hh:144
static event::ConnectionPtr ConnectManipMode(T _subscriber)
Connect a signal to the manip mode signal.
Definition: GuiEvents.hh:55
static event::ConnectionPtr ConnectInputStepSize(T _subscriber)
Connect a signal to the input step size signal.
Definition: GuiEvents.hh:137
static event::ConnectionPtr ConnectOrbit(T _subscriber)
Connect a signal to the view Orbit signal.
Definition: GuiEvents.hh:95
static void DisconnectFollow(event::ConnectionPtr _subscriber)
Disconnect a signal from the follow signal.
Definition: GuiEvents.hh:152
static void DisconnectFullScreen(event::ConnectionPtr _subscriber)
Disconnect a signal from the fullscreen signal.
Definition: GuiEvents.hh:79
static void DisconnectMainWindowReady(event::ConnectionPtr _subscriber)
Disconnect a signal from the main window ready signal.
Definition: GuiEvents.hh:163
static void DisconnectAlignMode(event::ConnectionPtr _subscriber)
Disconnect a signal from the align mode signal.
Definition: GuiEvents.hh:69
static event::EventT< void(bool)> leftPaneVisibility
Used to set whether the GUI's left pane is visible.
Definition: GuiEvents.hh:219
static event::EventT< void()> fps
An event to enable first-person-shooter view control.
Definition: GuiEvents.hh:203
static void DisconnectCreateEntity(event::ConnectionPtr _subscriber)
Disconnect a signal from add entity signal.
Definition: GuiEvents.hh:38
static event::EventT< void()> orbit
An event to enable orbit view control.
Definition: GuiEvents.hh:206
static void DisconnectManipMode(event::ConnectionPtr _subscriber)
Disconnect a signal from the manip mode signal.
Definition: GuiEvents.hh:59
static event::ConnectionPtr ConnectFullScreen(T _subscriber)
Connect a signal to the fullscreen signal.
Definition: GuiEvents.hh:75
static event::EventT< void(const msgs::Model &)> modelUpdate
indicates a model has been updated
Definition: GuiEvents.hh:194
static event::EventT< void(std::string, std::string, std::string, bool)> alignMode
indicates the user is aligning objects
Definition: GuiEvents.hh:187
static event::ConnectionPtr ConnectLightUpdate(T _subscriber)
Connect a signal to the light update signal.
Definition: GuiEvents.hh:115
static event::EventT< void(const std::string &)> follow
Event triggered when the user follows a model.
Definition: GuiEvents.hh:210
static event::ConnectionPtr ConnectCreateEntity(T _subscriber)
Connect a signal the add entity signal.
Definition: GuiEvents.hh:34
static event::EventT< void(std::string)> keyPress
Event triggered when a key is pressed.
Definition: GuiEvents.hh:213
static event::EventT< void(int)> inputStepSize
Step size changed event.
Definition: GuiEvents.hh:216
static void DisconnectInputStepSize(event::ConnectionPtr _subscriber)
Disconnect a signal from the input step size signal.
Definition: GuiEvents.hh:141
static event::ConnectionPtr ConnectModelUpdate(T _subscriber)
Connect a signal to the model update signal.
Definition: GuiEvents.hh:126
static void DisconnectMoveMode(event::ConnectionPtr _subscriber)
Disconnect a signal from the move mode signal.
Definition: GuiEvents.hh:49
static event::EventT< void(std::string, std::string)> createEntity
indicates an entity has been created
Definition: GuiEvents.hh:191
static void DisconnectOrbit(event::ConnectionPtr _subscriber)
Disconnect a signal from the view Orbit signal.
Definition: GuiEvents.hh:99
static event::EventT< void(bool)> fullScreen
An event to trigger full screen mode.
Definition: GuiEvents.hh:200
static void DisconnectLightUpdate(event::ConnectionPtr _subscriber)
Disconnect a signal from the light update signal.
Definition: GuiEvents.hh:119
static event::ConnectionPtr ConnectKeyPress(T _subscriber)
Connect a signal to the view KeyPress signal.
Definition: GuiEvents.hh:105
static void DisconnectFPS(event::ConnectionPtr _subscriber)
Disconnect a signal from the view FPS signal.
Definition: GuiEvents.hh:89
static event::ConnectionPtr ConnectMainWindowReady(T _subscriber)
Connect a signal to the main window ready signal.
Definition: GuiEvents.hh:159
static void DisconnectModelUpdate(event::ConnectionPtr _subscriber)
Disconnect a signal from the model update signal.
Definition: GuiEvents.hh:130
static event::EventT< void(std::string)> manipMode
indicates the user is manipulating an object
Definition: GuiEvents.hh:183
static event::EventT< void(const msgs::Light &)> lightUpdate
An event to notify light updates.
Definition: GuiEvents.hh:197
static event::ConnectionPtr ConnectMoveMode(T _subscriber)
Connect a signal to the move mode signal.
Definition: GuiEvents.hh:45
static void DisconnectLeftPaneVisibility(event::ConnectionPtr _subscriber)
Disconnect a signal to toggle the GUI's left hand pane signal.
Definition: GuiEvents.hh:175
Definition: GuiEvents.hh:29
static event::ConnectionPtr ConnectAlignMode(T _subscriber)
Connect a signal to the align mode signal.
Definition: GuiEvents.hh:65
static event::EventT< void()> mainWindowReady
Main window ready event.
Definition: GuiEvents.hh:222
static event::ConnectionPtr ConnectFPS(T _subscriber)
Connect a signal to the view FPS signal.
Definition: GuiEvents.hh:85
static event::EventT< void(bool)> moveMode
Indicates the user is moving the camera.
Definition: GuiEvents.hh:180
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48
static event::ConnectionPtr ConnectFollow(T _subscriber)
Connect a signal to the follow signal.
Definition: GuiEvents.hh:148
static void DisconnectKeyPress(event::ConnectionPtr _subscriber)
Disconnect a signal from the view KeyPress signal.
Definition: GuiEvents.hh:109