Public Member Functions | Private Attributes
rviz::IconizedProperty Class Reference
Inheritance diagram for rviz::IconizedProperty:
Inheritance graph

List of all members.

Public Member Functions

virtual QVariant getViewData (int column, int role) const
 Return data appropriate for the given column (0 or 1) and role for this Property.
 IconizedProperty (const QString &name=QString(), const QVariant default_value=QVariant(), const QString &description=QString(), Property *parent=0, const char *changed_slot=0, QObject *receiver=0)
void setIcon (QIcon icon)

Private Attributes

QIcon icon_

Detailed Description

Definition at line 88 of file visualization_manager.cpp.

Constructor & Destructor Documentation

rviz::IconizedProperty::IconizedProperty ( const QString &  name = QString(),
const QVariant  default_value = QVariant(),
const QString &  description = QString(),
Property parent = 0,
const char *  changed_slot = 0,
QObject *  receiver = 0 
) [inline]

Definition at line 90 of file visualization_manager.cpp.

Member Function Documentation

virtual QVariant rviz::IconizedProperty::getViewData ( int  column,
int  role 
) const [inline, virtual]

Return data appropriate for the given column (0 or 1) and role for this Property.

column0 for left column, 1 for right column.
roleis a Qt::ItemDataRole

When overriding to add new data (like a color for example), check the role for the thing you know about, and if it matches, return your data. If it does not match, call the parent class version of this function and return its result.

Return values from this function or overridden versions of it are where background and foreground colors, check-box checked-state values, text, and fonts all come from.

Reimplemented from rviz::Property.

Definition at line 97 of file visualization_manager.cpp.

void rviz::IconizedProperty::setIcon ( QIcon  icon) [inline]

Definition at line 102 of file visualization_manager.cpp.

Member Data Documentation

Reimplemented from rviz::Property.

Definition at line 104 of file visualization_manager.cpp.

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

Author(s): Dave Hershberger, David Gossow, Josh Faust
autogenerated on Thu Aug 27 2015 15:02:29