Class InteractionTool

Inheritance Relationships

Base Type

  • public rviz_common::Tool

Class Documentation

class InteractionTool : public rviz_common::Tool

Public Functions

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

Public Slots

inline void hideInactivePropertyChanged()

Protected Functions

inline bool isMouseEventDragging(const rviz_common::ViewportMouseEvent &event)
void updateFocus(const rviz_common::ViewportMouseEvent &event)

Check if the mouse has moved from one object to another and update focus accordingly.

void processInteraction(rviz_common::ViewportMouseEvent &event, const bool dragging)

Protected Attributes

rviz_common::InteractiveObjectWPtr focused_object_

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

uint64_t last_selection_frame_count_
MoveTool move_tool_
std::unique_ptr<rviz_common::properties::BoolProperty> hide_inactive_property_