#include <focus_tool.h>
Public Member Functions | |
virtual void | activate () |
virtual void | deactivate () |
FocusTool () | |
virtual void | onInitialize () |
virtual int | processMouseEvent (ViewportMouseEvent &event) |
virtual | ~FocusTool () |
Protected Attributes | |
QCursor | hit_cursor_ |
QCursor | std_cursor_ |
The Focus Tool allows the user to set the focal point of the current view controller with a single mouse click.
Definition at line 42 of file focus_tool.h.
Definition at line 49 of file focus_tool.cpp.
rviz::FocusTool::~FocusTool | ( | ) | [virtual] |
Definition at line 54 of file focus_tool.cpp.
void rviz::FocusTool::activate | ( | ) | [virtual] |
Implements rviz::Tool.
Definition at line 64 of file focus_tool.cpp.
void rviz::FocusTool::deactivate | ( | ) | [virtual] |
Implements rviz::Tool.
Definition at line 68 of file focus_tool.cpp.
void rviz::FocusTool::onInitialize | ( | ) | [virtual] |
Override onInitialize to do any setup needed after the DisplayContext has been set. This is called by Tool::initialize(). The base implementation here does nothing.
Reimplemented from rviz::Tool.
Definition at line 58 of file focus_tool.cpp.
int rviz::FocusTool::processMouseEvent | ( | ViewportMouseEvent & | event | ) | [virtual] |
Process a mouse event. This is the central function of all the tools, as it defines how the mouse is used.
Reimplemented from rviz::Tool.
Definition at line 72 of file focus_tool.cpp.
QCursor rviz::FocusTool::hit_cursor_ [protected] |
Definition at line 57 of file focus_tool.h.
QCursor rviz::FocusTool::std_cursor_ [protected] |
Definition at line 56 of file focus_tool.h.