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

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 84 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 86 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.

Parameters:
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 93 of file visualization_manager.cpp.

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

Definition at line 98 of file visualization_manager.cpp.


Member Data Documentation

Reimplemented from rviz::Property.

Definition at line 100 of file visualization_manager.cpp.


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


rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust
autogenerated on Mon Oct 6 2014 07:26:37