#include <measure_tool.h>
Public Member Functions | |
virtual void | activate () |
virtual void | deactivate () |
MeasureTool () | |
virtual void | onInitialize () |
virtual int | processMouseEvent (ViewportMouseEvent &event) |
virtual | ~MeasureTool () |
Private Types | |
enum | { START, END } |
Private Attributes | |
Ogre::Vector3 | end_ |
QCursor | hit_cursor_ |
float | length_ |
Line * | line_ |
Ogre::Vector3 | start_ |
enum rviz::MeasureTool:: { ... } | state_ |
QCursor | std_cursor_ |
Definition at line 48 of file measure_tool.h.
anonymous enum [private] |
Definition at line 63 of file measure_tool.h.
Definition at line 51 of file measure_tool.cpp.
rviz::MeasureTool::~MeasureTool | ( | ) | [virtual] |
Definition at line 57 of file measure_tool.cpp.
void rviz::MeasureTool::activate | ( | ) | [virtual] |
Implements rviz::Tool.
Definition at line 70 of file measure_tool.cpp.
void rviz::MeasureTool::deactivate | ( | ) | [virtual] |
Implements rviz::Tool.
Definition at line 75 of file measure_tool.cpp.
void rviz::MeasureTool::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 62 of file measure_tool.cpp.
int rviz::MeasureTool::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 79 of file measure_tool.cpp.
Ogre::Vector3 rviz::MeasureTool::end_ [private] |
Definition at line 70 of file measure_tool.h.
QCursor rviz::MeasureTool::hit_cursor_ [private] |
Definition at line 74 of file measure_tool.h.
float rviz::MeasureTool::length_ [private] |
Definition at line 71 of file measure_tool.h.
Line* rviz::MeasureTool::line_ [private] |
Definition at line 68 of file measure_tool.h.
Ogre::Vector3 rviz::MeasureTool::start_ [private] |
Definition at line 69 of file measure_tool.h.
enum { ... } rviz::MeasureTool::state_ [private] |
QCursor rviz::MeasureTool::std_cursor_ [private] |
Definition at line 73 of file measure_tool.h.