#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 47 of file focus_tool.cpp.
rviz::FocusTool::~FocusTool | ( | ) | [virtual] |
Definition at line 52 of file focus_tool.cpp.
void rviz::FocusTool::activate | ( | ) | [virtual] |
Implements rviz::Tool.
Definition at line 62 of file focus_tool.cpp.
void rviz::FocusTool::deactivate | ( | ) | [virtual] |
Implements rviz::Tool.
Definition at line 66 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 56 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 70 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.