#include <SelectionBuffer.hh>
gazebo::rendering::SelectionBuffer::SelectionBuffer |
( |
const std::string & |
_cameraName, |
|
|
Ogre::SceneManager * |
_mgr, |
|
|
Ogre::RenderTarget * |
_renderTarget |
|
) |
| |
Constructor.
- Parameters
-
[in] | _camera | Name of the camera to generate a selection buffer for. |
[in] | _mgr | Pointer to the scene manager. |
[in] | _renderTarget | Pointer to the render target. |
gazebo::rendering::SelectionBuffer::~SelectionBuffer |
( |
| ) |
|
Ogre::Entity* gazebo::rendering::SelectionBuffer::OnSelectionClick |
( |
int |
_x, |
|
|
int |
_y |
|
) |
| |
Handle on mouse click.
- Parameters
-
[in] | _x | X coordinate in pixels. |
[in] | _y | Y coordinate in pixels. |
- Returns
- Returns the Ogre entity at the coordinate.
void gazebo::rendering::SelectionBuffer::ShowOverlay |
( |
bool |
_show | ) |
|
Debug show overlay.
- Parameters
-
[in] | _show | True to show the selection buffer in an overlay. |
void gazebo::rendering::SelectionBuffer::Update |
( |
| ) |
|
Call this to update the selection buffer contents.
The documentation for this class was generated from the following file: