#include <tool.h>
Definition at line 55 of file tool.h.
Enumerator |
---|
Render |
|
Finished |
|
Definition at line 90 of file tool.h.
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 42 of file tool.cpp.
bool rviz::Tool::accessAllKeys |
( |
| ) |
|
|
inline |
virtual void rviz::Tool::activate |
( |
| ) |
|
|
pure virtual |
void rviz::Tool::close |
( |
| ) |
|
|
signal |
virtual void rviz::Tool::deactivate |
( |
| ) |
|
|
pure virtual |
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 130 of file tool.h.
const QCursor& rviz::Tool::getCursor |
( |
| ) |
|
|
inline |
Get current cursor of this tool.
Definition at line 160 of file tool.h.
QString rviz::Tool::getDescription |
( |
| ) |
const |
|
inline |
Set the description of the tool. This is called by ToolManager during tool initialization.
Definition at line 124 of file tool.h.
const QIcon& rviz::Tool::getIcon |
( |
| ) |
|
|
inline |
Get the icon of this tool.
Definition at line 154 of file tool.h.
QString rviz::Tool::getName |
( |
void |
| ) |
const |
|
inline |
virtual Property* rviz::Tool::getPropertyContainer |
( |
| ) |
const |
|
inlinevirtual |
Return the container for properties of this Tool.
Definition at line 75 of file tool.h.
char rviz::Tool::getShortcutKey |
( |
| ) |
|
|
inline |
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 86 of file tool.cpp.
virtual void rviz::Tool::onInitialize |
( |
| ) |
|
|
inlineprotectedvirtual |
virtual int rviz::Tool::processKeyEvent |
( |
QKeyEvent * |
event, |
|
|
RenderPanel * |
panel |
|
) |
| |
|
inlinevirtual |
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 91 of file tool.cpp.
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 134 of file tool.h.
void rviz::Tool::setCursor |
( |
const QCursor & |
cursor | ) |
|
Set the cursor for this tool.
Definition at line 69 of file tool.cpp.
void rviz::Tool::setDescription |
( |
const QString & |
description | ) |
|
void rviz::Tool::setIcon |
( |
const QIcon & |
icon | ) |
|
Set the toolbar icon for this tool (will also set its cursor).
Definition at line 63 of file tool.cpp.
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 74 of file tool.cpp.
void rviz::Tool::setStatus |
( |
const QString & |
message | ) |
|
virtual void rviz::Tool::update |
( |
float |
wall_dt, |
|
|
float |
ros_dt |
|
) |
| |
|
inlinevirtual |
bool rviz::Tool::access_all_keys_ |
|
protected |
QString rviz::Tool::class_id_ |
|
private |
QCursor rviz::Tool::cursor_ |
|
protected |
QString rviz::Tool::description_ |
|
private |
QString rviz::Tool::name_ |
|
private |
Property* rviz::Tool::property_container_ |
|
private |
Ogre::SceneManager* rviz::Tool::scene_manager_ |
|
protected |
char rviz::Tool::shortcut_key_ |
|
protected |
The documentation for this class was generated from the following files: