Public Slots | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
rviz::InteractionTool Class Reference

#include <interaction_tool.h>

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

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 ()
 
- Public Member Functions inherited from rviz::Tool
bool accessAllKeys ()
 
virtual QString getClassId () const
 Return the class identifier which was used to create this instance. This version just returns whatever was set with setClassId(). More...
 
const QCursor & getCursor ()
 Get current cursor of this tool. More...
 
QString getDescription () const
 Set the description of the tool. This is called by ToolManager during tool initialization. More...
 
const QIcon & getIcon ()
 Get the icon of this tool. More...
 
QString getName () const
 
virtual PropertygetPropertyContainer () const
 Return the container for properties of this Tool. More...
 
char getShortcutKey ()
 
void initialize (DisplayContext *context)
 
virtual void load (const Config &config)
 Load properties from the given Config. More...
 
virtual void save (Config config) const
 Save this entire tool into the given Config node. More...
 
virtual void setClassId (const QString &class_id)
 Set the class identifier used to create this instance. Typically this will be set by the factory object which created it. More...
 
void setCursor (const QCursor &cursor)
 Set the cursor for this tool. More...
 
void setDescription (const QString &description)
 
void setIcon (const QIcon &icon)
 Set the toolbar icon for this tool (will also set its cursor). More...
 
void setName (const QString &name)
 Set the name of the tool. More...
 
void setStatus (const QString &message)
 
 Tool ()
 
virtual void update (float wall_dt, float ros_dt)
 
virtual ~Tool ()
 

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. More...
 

Protected Attributes

InteractiveObjectWPtr focused_object_
 The object (control) which currently has the mouse focus. More...
 
BoolPropertyhide_inactive_property_
 
uint64_t last_selection_frame_count_
 
MoveTool move_tool_
 
- Protected Attributes inherited from rviz::Tool
bool access_all_keys_
 
DisplayContextcontext_
 
QCursor cursor_
 
QIcon icon_
 
Ogre::SceneManager * scene_manager_
 
char shortcut_key_
 

Additional Inherited Members

- Public Types inherited from rviz::Tool
enum  { Render = 1, Finished = 2 }
 
- Signals inherited from rviz::Tool
void close ()
 

Detailed Description

Definition at line 46 of file interaction_tool.h.

Constructor & Destructor Documentation

rviz::InteractionTool::InteractionTool ( )

Definition at line 51 of file interaction_tool.cpp.

rviz::InteractionTool::~InteractionTool ( )
virtual

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.

void rviz::InteractionTool::deactivate ( )
virtual

Implements rviz::Tool.

Definition at line 76 of file interaction_tool.cpp.

void rviz::InteractionTool::hideInactivePropertyChanged ( )
inlineslot

Definition at line 63 of file interaction_tool.h.

void rviz::InteractionTool::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 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.

int rviz::InteractionTool::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 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

InteractiveObjectWPtr rviz::InteractionTool::focused_object_
protected

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

Definition at line 73 of file interaction_tool.h.

BoolProperty* rviz::InteractionTool::hide_inactive_property_
protected

Definition at line 79 of file interaction_tool.h.

uint64_t rviz::InteractionTool::last_selection_frame_count_
protected

Definition at line 75 of file interaction_tool.h.

MoveTool rviz::InteractionTool::move_tool_
protected

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 Wed Aug 28 2019 04:01:53