Public Member Functions | Private Types | Private Attributes
rviz::MeasureTool Class Reference

#include <measure_tool.h>

Inheritance diagram for rviz::MeasureTool:
Inheritance graph
[legend]

List of all members.

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_
Lineline_
Ogre::Vector3 start_
enum rviz::MeasureTool:: { ... }  state_
QCursor std_cursor_

Detailed Description

Definition at line 48 of file measure_tool.h.


Member Enumeration Documentation

anonymous enum [private]
Enumerator:
START 
END 

Definition at line 63 of file measure_tool.h.


Constructor & Destructor Documentation

Definition at line 51 of file measure_tool.cpp.

Definition at line 57 of file measure_tool.cpp.


Member Function Documentation

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.

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.


Member Data Documentation

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.

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.


The documentation for this class was generated from the following files:


rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust
autogenerated on Mon Oct 6 2014 07:26:37