#include <tool.h>
Definition at line 56 of file tool.h.
◆ anonymous enum
Enumerator |
---|
Render | |
Finished | |
Definition at line 100 of file tool.h.
◆ Tool()
Default constructor. Pluginlib only instantiates classes via default constructors. Subclasses of Tool should shortcut_key_ field in their constructors.
Properties to appear in the Tool Properties panel are typically created in the constructor, as children of the property from getPropertyContainer(), which is set up in this Tool constructor.
Definition at line 41 of file tool.cpp.
◆ ~Tool()
◆ accessAllKeys()
bool rviz::Tool::accessAllKeys |
( |
| ) |
|
|
inline |
◆ activate()
virtual void rviz::Tool::activate |
( |
| ) |
|
|
pure virtual |
◆ close
void rviz::Tool::close |
( |
| ) |
|
|
signal |
◆ deactivate()
virtual void rviz::Tool::deactivate |
( |
| ) |
|
|
pure virtual |
◆ getClassId()
virtual QString rviz::Tool::getClassId |
( |
| ) |
const |
|
inlinevirtual |
Return the class identifier which was used to create this instance. This version just returns whatever was set with setClassId().
Definition at line 147 of file tool.h.
◆ getCursor()
const QCursor& rviz::Tool::getCursor |
( |
| ) |
|
|
inline |
Get current cursor of this tool.
Definition at line 186 of file tool.h.
◆ getDescription()
QString rviz::Tool::getDescription |
( |
| ) |
const |
|
inline |
Set the description of the tool. This is called by ToolManager during tool initialization.
Definition at line 138 of file tool.h.
◆ getIcon()
const QIcon& rviz::Tool::getIcon |
( |
| ) |
|
|
inline |
Get the icon of this tool.
Definition at line 177 of file tool.h.
◆ getName()
QString rviz::Tool::getName |
( |
| ) |
const |
|
inline |
◆ getPropertyContainer()
virtual Property* rviz::Tool::getPropertyContainer |
( |
| ) |
const |
|
inlinevirtual |
Return the container for properties of this Tool.
Definition at line 76 of file tool.h.
◆ getShortcutKey()
char rviz::Tool::getShortcutKey |
( |
| ) |
|
|
inline |
◆ initialize()
◆ load()
void rviz::Tool::load |
( |
const Config & |
config | ) |
|
|
virtual |
Load properties from the given Config.
Most tools won't need to override this, because any child Properties of property_container_ are automatically loaded by this function.
Reimplemented in rviz::FailedTool.
Definition at line 90 of file tool.cpp.
◆ nameChanged
void rviz::Tool::nameChanged |
( |
const QString & |
name | ) |
|
|
signal |
◆ onInitialize()
virtual void rviz::Tool::onInitialize |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ processKeyEvent()
virtual int rviz::Tool::processKeyEvent |
( |
QKeyEvent * |
event, |
|
|
RenderPanel * |
panel |
|
) |
| |
|
inlinevirtual |
◆ processMouseEvent()
◆ save()
void rviz::Tool::save |
( |
Config |
config | ) |
const |
|
virtual |
Save this entire tool into the given Config node.
Most tools won't need to override this, because any child Properties of property_container_ are automatically saved by this function.
Reimplemented in rviz::FailedTool.
Definition at line 95 of file tool.cpp.
◆ setClassId()
virtual void rviz::Tool::setClassId |
( |
const QString & |
class_id | ) |
|
|
inlinevirtual |
Set the class identifier used to create this instance. Typically this will be set by the factory object which created it.
Definition at line 154 of file tool.h.
◆ setCursor()
void rviz::Tool::setCursor |
( |
const QCursor & |
cursor | ) |
|
Set the cursor for this tool.
Definition at line 67 of file tool.cpp.
◆ setDescription()
void rviz::Tool::setDescription |
( |
const QString & |
description | ) |
|
◆ setIcon()
void rviz::Tool::setIcon |
( |
const QIcon & |
icon | ) |
|
Set the toolbar icon for this tool (will also set its cursor).
Definition at line 61 of file tool.cpp.
◆ setName()
void rviz::Tool::setName |
( |
const QString & |
name | ) |
|
Set the name of the tool.
This is called by ToolManager during tool initialization. If you want a different name than it gives you, call this from onInitialize() (or thereafter).
Definition at line 72 of file tool.cpp.
◆ setStatus()
void rviz::Tool::setStatus |
( |
const QString & |
message | ) |
|
◆ update()
virtual void rviz::Tool::update |
( |
float |
wall_dt, |
|
|
float |
ros_dt |
|
) |
| |
|
inlinevirtual |
◆ access_all_keys_
bool rviz::Tool::access_all_keys_ |
|
protected |
◆ class_id_
QString rviz::Tool::class_id_ |
|
private |
◆ context_
◆ cursor_
QCursor rviz::Tool::cursor_ |
|
protected |
◆ description_
QString rviz::Tool::description_ |
|
private |
◆ icon_
◆ name_
QString rviz::Tool::name_ |
|
private |
◆ property_container_
Property* rviz::Tool::property_container_ |
|
private |
◆ scene_manager_
Ogre::SceneManager* rviz::Tool::scene_manager_ |
|
protected |
◆ shortcut_key_
char rviz::Tool::shortcut_key_ |
|
protected |
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 Dec 13 2024 03:31:04