Public Slots | Public Member Functions | Protected Member Functions | Protected Attributes
rviz::InteractionTool Class Reference

#include <interaction_tool.h>

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

List of all members.

Public Slots

void hideInactivePropertyChanged ()

Public Member Functions

virtual void activate ()
virtual void deactivate ()
 InteractionTool ()
virtual void onInitialize ()
virtual int processKeyEvent (QKeyEvent *event, RenderPanel *panel)
virtual int processMouseEvent (ViewportMouseEvent &event)
virtual ~InteractionTool ()

Protected Member Functions

void updateFocus (const ViewportMouseEvent &event)
 Check if the mouse has moved from one object to another, and update focused_object_ if so.

Protected Attributes

InteractiveObjectWPtr focused_object_
 The object (control) which currently has the mouse focus.
BoolPropertyhide_inactive_property_
uint64_t last_selection_frame_count_
MoveTool move_tool_

Detailed Description

Definition at line 46 of file interaction_tool.h.


Constructor & Destructor Documentation

Definition at line 51 of file interaction_tool.cpp.

Definition at line 59 of file interaction_tool.cpp.


Member Function Documentation

void rviz::InteractionTool::activate ( ) [virtual]

Implements rviz::Tool.

Definition at line 70 of file interaction_tool.cpp.

Implements rviz::Tool.

Definition at line 76 of file interaction_tool.cpp.

Definition at line 63 of file interaction_tool.h.

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 63 of file interaction_tool.cpp.

int rviz::InteractionTool::processKeyEvent ( QKeyEvent *  event,
RenderPanel panel 
) [virtual]

Process a key event. Override if your tool should handle any other keypresses than the tool shortcuts, which are handled separately.

Reimplemented from rviz::Tool.

Definition at line 193 of file interaction_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 135 of file interaction_tool.cpp.

void rviz::InteractionTool::updateFocus ( const ViewportMouseEvent event) [protected]

Check if the mouse has moved from one object to another, and update focused_object_ if so.

Definition at line 81 of file interaction_tool.cpp.


Member Data Documentation

The object (control) which currently has the mouse focus.

Definition at line 73 of file interaction_tool.h.

Definition at line 79 of file interaction_tool.h.

Definition at line 75 of file interaction_tool.h.

Definition at line 77 of file interaction_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