A class that creates a CEGUI overlay on a render window.
More...
#include <rendering/rendering.hh>
|
| GUIOverlay () |
| Constructor. More...
|
|
virtual | ~GUIOverlay () |
| Destructor. More...
|
|
bool | AttachCameraToImage (CameraPtr &_camera, const std::string &_windowName) |
| Use this function to draw the output from a rendering::Camera to and overlay window. More...
|
|
bool | AttachCameraToImage (DepthCameraPtr &_camera, const std::string &_windowName) |
| Use this function to draw the output from a rendering::DepthCamera to and overlay window. More...
|
|
template<typename T > |
void | ButtonCallback (const std::string &_buttonName, void(T::*_fp)(), T *_obj) |
| Register a CEGUI button callback. More...
|
|
void | CreateWindow (const std::string &_type, const std::string &_name, const std::string &_parent, const math::Vector2d &_position, const math::Vector2d &_size, const std::string &_text) |
| Create a new window on the overlay. More...
|
|
bool | HandleKeyPressEvent (const std::string &_key) |
| Handle a key press event. More...
|
|
bool | HandleKeyReleaseEvent (const std::string &_key) |
| Handle a key release event. More...
|
|
bool | HandleMouseEvent (const common::MouseEvent &_evt) |
| Handle a mouse event. More...
|
|
void | Hide () |
| Make the overlay invisible. More...
|
|
void | Init (Ogre::RenderTarget *_renderTarget) |
| Initialize the overlay. More...
|
|
bool | IsInitialized () |
| Return true if the overlay has been initialized. More...
|
|
void | LoadLayout (const std::string &_filename) |
| Load a CEGUI layout file. More...
|
|
void | Resize (unsigned int _width, unsigned int _height) |
| Resize the window. More...
|
|
void | Show () |
| Make the overlay visible. More...
|
|
void | Update () |
| Update the overlay's objects. More...
|
|
|
std::map< std::string,
boost::function< void()> > | callbacks |
| Map of callback functions to names. More...
|
|
A class that creates a CEGUI overlay on a render window.
gazebo::rendering::GUIOverlay::GUIOverlay |
( |
) | |
|
virtual gazebo::rendering::GUIOverlay::~GUIOverlay |
( |
) | |
|
|
virtual |
bool gazebo::rendering::GUIOverlay::AttachCameraToImage |
( |
CameraPtr & |
_camera, |
|
|
const std::string & |
_windowName |
|
) |
| |
Use this function to draw the output from a rendering::Camera to and overlay window.
- Parameters
-
[in] | _camera | Pointer to the camera. |
[in] | _windowName | Name of the window to receive the camera image |
- Returns
- True if successful
bool gazebo::rendering::GUIOverlay::AttachCameraToImage |
( |
DepthCameraPtr & |
_camera, |
|
|
const std::string & |
_windowName |
|
) |
| |
Use this function to draw the output from a rendering::DepthCamera to and overlay window.
- Parameters
-
[in] | _camera | Pointer to the camera. |
[in] | _windowName | Name of the window to receive the camera image |
- Returns
- True if successful
template<typename T >
void gazebo::rendering::GUIOverlay::ButtonCallback |
( |
const std::string & |
_buttonName, |
|
|
void(T::*)() |
_fp, |
|
|
T * |
_obj |
|
) |
| |
|
inline |
Register a CEGUI button callback.
Assign a callback to a name button.
- Parameters
-
[in] | _buttonName | Name of the button. |
[in] | _fp | Function pointer to the callback. |
[in] | _obj | Class pointer that contains _fp. |
References callbacks, and gzerr.
void gazebo::rendering::GUIOverlay::CreateWindow |
( |
const std::string & |
_type, |
|
|
const std::string & |
_name, |
|
|
const std::string & |
_parent, |
|
|
const math::Vector2d & |
_position, |
|
|
const math::Vector2d & |
_size, |
|
|
const std::string & |
_text |
|
) |
| |
Create a new window on the overlay.
- Parameters
-
[in] | _type | The window type. This should match a CEGUI window type. See CEGUI::WindowManager::getSingleton().createWindow(). |
[in] | _name | Unique name for the window. |
[in] | _parent | Name of the parent window. |
[in] | _position | Position of the window within the parent. |
[in] | _size | Size of the window. |
[in] | _text | Display title of the window. |
bool gazebo::rendering::GUIOverlay::HandleKeyPressEvent |
( |
const std::string & |
_key) | |
|
Handle a key press event.
- Parameters
-
- Returns
- True if the key press event was handled.
bool gazebo::rendering::GUIOverlay::HandleKeyReleaseEvent |
( |
const std::string & |
_key) | |
|
Handle a key release event.
- Parameters
-
[in] | _key | The key released. |
- Returns
- True if the key release event was handled.
Handle a mouse event.
- Parameters
-
- Returns
- True if the mouse event was handled.
void gazebo::rendering::GUIOverlay::Hide |
( |
) | |
|
Make the overlay invisible.
void gazebo::rendering::GUIOverlay::Init |
( |
Ogre::RenderTarget * |
_renderTarget) | |
|
Initialize the overlay.
- Parameters
-
[in] | _renderTarget | The render target which will have the overlay. |
bool gazebo::rendering::GUIOverlay::IsInitialized |
( |
) | |
|
Return true if the overlay has been initialized.
- Returns
- True if initialized
void gazebo::rendering::GUIOverlay::LoadLayout |
( |
const std::string & |
_filename) | |
|
Load a CEGUI layout file.
- Parameters
-
[in] | _filename | Name of the layout file. |
void gazebo::rendering::GUIOverlay::Resize |
( |
unsigned int |
_width, |
|
|
unsigned int |
_height |
|
) |
| |
void gazebo::rendering::GUIOverlay::Show |
( |
) | |
|
Make the overlay visible.
void gazebo::rendering::GUIOverlay::Update |
( |
) | |
|
Update the overlay's objects.
std::map<std::string, boost::function<void()> > gazebo::rendering::GUIOverlay::callbacks |
The documentation for this class was generated from the following file: