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

#include <point_tool.h>

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

Public Slots

void updateAutoDeactivate ()
 
void updateTopic ()
 

Public Member Functions

void activate () override
 
void deactivate () override
 
void onInitialize () override
 
 PointTool ()
 
int processMouseEvent (ViewportMouseEvent &event) override
 
 ~PointTool () override
 
- 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 int processKeyEvent (QKeyEvent *event, RenderPanel *panel)
 
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)
 
 ~Tool () override
 

Protected Attributes

BoolPropertyauto_deactivate_property_
 
QCursor hit_cursor_
 
ros::NodeHandle nh_
 
ros::Publisher pub_
 
QCursor std_cursor_
 
StringPropertytopic_property_
 
- 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 ()
 
void nameChanged (const QString &name)
 

Detailed Description

The Point Tool allows the user to click on a point which gets published as a PointStamped message.

Definition at line 50 of file point_tool.h.

Constructor & Destructor Documentation

◆ PointTool()

rviz::PointTool::PointTool ( )

Definition at line 51 of file point_tool.cpp.

◆ ~PointTool()

rviz::PointTool::~PointTool ( )
override

Definition at line 66 of file point_tool.cpp.

Member Function Documentation

◆ activate()

void rviz::PointTool::activate ( )
overridevirtual

Implements rviz::Tool.

Definition at line 76 of file point_tool.cpp.

◆ deactivate()

void rviz::PointTool::deactivate ( )
overridevirtual

Implements rviz::Tool.

Definition at line 80 of file point_tool.cpp.

◆ onInitialize()

void rviz::PointTool::onInitialize ( )
overridevirtual

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 70 of file point_tool.cpp.

◆ processMouseEvent()

int rviz::PointTool::processMouseEvent ( ViewportMouseEvent event)
overridevirtual

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 100 of file point_tool.cpp.

◆ updateAutoDeactivate

void rviz::PointTool::updateAutoDeactivate ( )
slot

Definition at line 96 of file point_tool.cpp.

◆ updateTopic

void rviz::PointTool::updateTopic ( )
slot

Definition at line 84 of file point_tool.cpp.

Member Data Documentation

◆ auto_deactivate_property_

BoolProperty* rviz::PointTool::auto_deactivate_property_
protected

Definition at line 77 of file point_tool.h.

◆ hit_cursor_

QCursor rviz::PointTool::hit_cursor_
protected

Definition at line 71 of file point_tool.h.

◆ nh_

ros::NodeHandle rviz::PointTool::nh_
protected

Definition at line 73 of file point_tool.h.

◆ pub_

ros::Publisher rviz::PointTool::pub_
protected

Definition at line 74 of file point_tool.h.

◆ std_cursor_

QCursor rviz::PointTool::std_cursor_
protected

Definition at line 70 of file point_tool.h.

◆ topic_property_

StringProperty* rviz::PointTool::topic_property_
protected

Definition at line 76 of file point_tool.h.


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


rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust, William Woodall
autogenerated on Fri Aug 2 2024 08:43:11