Public Types | Signals | Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
rqt_multiplot::StatusWidget Class Reference

#include <StatusWidget.h>

Inheritance diagram for rqt_multiplot::StatusWidget:
Inheritance graph
[legend]

Public Types

enum  Role { Okay, Error, Busy }
 

Signals

void currentRoleChanged (Role role)
 

Public Member Functions

Role getCurrentRole () const
 
double getFrameRate (Role role) const
 
const QList< QPixmap > & getFrames (Role role) const
 
const QPixmap & getIcon (Role role) const
 
bool popCurrentRole ()
 
void pushCurrentRole ()
 
void setCurrentRole (Role role, const QString &toolTip=QString())
 
void setFrameRate (Role role, double frameRate)
 
void setFrames (Role role, const QPixmap &frames, size_t numFrames, double frameRate=10.0)
 
void setFrames (Role role, const QList< QPixmap > &frameList, double frameRate=10.0)
 
void setIcon (Role role, const QPixmap &icon)
 
 StatusWidget (QWidget *parent=0, Role role=Okay)
 
virtual ~StatusWidget ()
 

Private Slots

void timerTimeout ()
 

Private Member Functions

void start ()
 
void step ()
 
void stop ()
 

Private Attributes

size_t currentFrame_
 
Role currentRole_
 
QMap< Role, double > frameRates_
 
QMap< Role, QList< QPixmap > > frames_
 
QLabel * labelIcon_
 
QGridLayout * layout_
 
QList< RoleroleStack_
 
QTimer * timer_
 
QList< QString > toolTipStack_
 

Detailed Description

Definition at line 32 of file StatusWidget.h.

Member Enumeration Documentation

Enumerator
Okay 
Error 
Busy 

Definition at line 36 of file StatusWidget.h.

Constructor & Destructor Documentation

rqt_multiplot::StatusWidget::StatusWidget ( QWidget *  parent = 0,
Role  role = Okay 
)

Definition at line 27 of file StatusWidget.cpp.

rqt_multiplot::StatusWidget::~StatusWidget ( )
virtual

Definition at line 50 of file StatusWidget.cpp.

Member Function Documentation

void rqt_multiplot::StatusWidget::currentRoleChanged ( Role  role)
signal
StatusWidget::Role rqt_multiplot::StatusWidget::getCurrentRole ( ) const

Definition at line 143 of file StatusWidget.cpp.

double rqt_multiplot::StatusWidget::getFrameRate ( Role  role) const

Definition at line 124 of file StatusWidget.cpp.

const QList< QPixmap > & rqt_multiplot::StatusWidget::getFrames ( Role  role) const

Definition at line 100 of file StatusWidget.cpp.

const QPixmap & rqt_multiplot::StatusWidget::getIcon ( Role  role) const

Definition at line 61 of file StatusWidget.cpp.

bool rqt_multiplot::StatusWidget::popCurrentRole ( )

Definition at line 156 of file StatusWidget.cpp.

void rqt_multiplot::StatusWidget::pushCurrentRole ( )

Definition at line 151 of file StatusWidget.cpp.

void rqt_multiplot::StatusWidget::setCurrentRole ( Role  role,
const QString &  toolTip = QString() 
)

Definition at line 128 of file StatusWidget.cpp.

void rqt_multiplot::StatusWidget::setFrameRate ( Role  role,
double  frameRate 
)

Definition at line 111 of file StatusWidget.cpp.

void rqt_multiplot::StatusWidget::setFrames ( Role  role,
const QPixmap &  frames,
size_t  numFrames,
double  frameRate = 10.0 
)

Definition at line 70 of file StatusWidget.cpp.

void rqt_multiplot::StatusWidget::setFrames ( Role  role,
const QList< QPixmap > &  frameList,
double  frameRate = 10.0 
)

Definition at line 84 of file StatusWidget.cpp.

void rqt_multiplot::StatusWidget::setIcon ( Role  role,
const QPixmap &  icon 
)

Definition at line 57 of file StatusWidget.cpp.

void rqt_multiplot::StatusWidget::start ( )
private

Definition at line 169 of file StatusWidget.cpp.

void rqt_multiplot::StatusWidget::step ( )
private

Definition at line 183 of file StatusWidget.cpp.

void rqt_multiplot::StatusWidget::stop ( )
private

Definition at line 193 of file StatusWidget.cpp.

void rqt_multiplot::StatusWidget::timerTimeout ( )
privateslot

Definition at line 202 of file StatusWidget.cpp.

Member Data Documentation

size_t rqt_multiplot::StatusWidget::currentFrame_
private

Definition at line 74 of file StatusWidget.h.

Role rqt_multiplot::StatusWidget::currentRole_
private

Definition at line 73 of file StatusWidget.h.

QMap<Role, double> rqt_multiplot::StatusWidget::frameRates_
private

Definition at line 69 of file StatusWidget.h.

QMap<Role, QList<QPixmap> > rqt_multiplot::StatusWidget::frames_
private

Definition at line 68 of file StatusWidget.h.

QLabel* rqt_multiplot::StatusWidget::labelIcon_
private

Definition at line 65 of file StatusWidget.h.

QGridLayout* rqt_multiplot::StatusWidget::layout_
private

Definition at line 64 of file StatusWidget.h.

QList<Role> rqt_multiplot::StatusWidget::roleStack_
private

Definition at line 70 of file StatusWidget.h.

QTimer* rqt_multiplot::StatusWidget::timer_
private

Definition at line 66 of file StatusWidget.h.

QList<QString> rqt_multiplot::StatusWidget::toolTipStack_
private

Definition at line 71 of file StatusWidget.h.


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


rqt_multiplot
Author(s): Ralf Kaestner
autogenerated on Wed Jul 10 2019 03:49:44