#include <pose_tool.h>
Public Member Functions | |
virtual void | activate () |
virtual void | deactivate () |
virtual void | onInitialize () |
PoseTool () | |
virtual int | processMouseEvent (ViewportMouseEvent &event) |
virtual | ~PoseTool () |
Protected Types | |
enum | State { Position, Orientation } |
Protected Member Functions | |
virtual void | onPoseSet (double x, double y, double theta)=0 |
Protected Attributes | |
Arrow * | arrow_ |
Ogre::Vector3 | pos_ |
State | state_ |
Definition at line 46 of file pose_tool.h.
enum rviz::PoseTool::State [protected] |
Definition at line 64 of file pose_tool.h.
Definition at line 46 of file pose_tool.cpp.
rviz::PoseTool::~PoseTool | ( | ) | [virtual] |
Definition at line 52 of file pose_tool.cpp.
void rviz::PoseTool::activate | ( | ) | [virtual] |
Implements rviz::Tool.
Definition at line 64 of file pose_tool.cpp.
void rviz::PoseTool::deactivate | ( | ) | [virtual] |
Implements rviz::Tool.
Definition at line 70 of file pose_tool.cpp.
void rviz::PoseTool::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.
Reimplemented in rviz::GoalTool, and rviz::InitialPoseTool.
Definition at line 57 of file pose_tool.cpp.
virtual void rviz::PoseTool::onPoseSet | ( | double | x, |
double | y, | ||
double | theta | ||
) | [protected, pure virtual] |
Implemented in rviz::GoalTool, and rviz::InitialPoseTool.
int rviz::PoseTool::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 75 of file pose_tool.cpp.
Arrow* rviz::PoseTool::arrow_ [protected] |
Definition at line 62 of file pose_tool.h.
Ogre::Vector3 rviz::PoseTool::pos_ [protected] |
Definition at line 71 of file pose_tool.h.
State rviz::PoseTool::state_ [protected] |
Definition at line 69 of file pose_tool.h.