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

#include <PlotWidget.h>

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

Public Types

enum  State { Normal, Maximized }
 

Signals

void cleared ()
 
void currentScaleChanged (const BoundingRectangle &bounds)
 
void pausedChanged (bool paused)
 
void preferredScaleChanged (const BoundingRectangle &bounds)
 
void stateChanged (int state)
 

Public Member Functions

bool canChangeState () const
 
void clear ()
 
void forceReplot ()
 
MessageBrokergetBroker () const
 
PlotConfiggetConfig () const
 
const BoundingRectanglegetCurrentScale () const
 
PlotCursorgetCursor () const
 
BoundingRectangle getPreferredScale () const
 
State getState () const
 
bool isPaused () const
 
bool isReplotRequested () const
 
void pause ()
 
 PlotWidget (QWidget *parent=0)
 
void renderToPixmap (QPixmap &pixmap, const QRectF &bounds=QRectF())
 
void requestReplot ()
 
void run ()
 
void saveToImageFile (const QString &fileName)
 
void saveToTextFile (const QString &fileName)
 
void setBroker (MessageBroker *broker)
 
void setCanChangeState (bool can)
 
void setConfig (PlotConfig *config)
 
void setCurrentScale (const BoundingRectangle &bounds)
 
void setState (State state)
 
void writeFormattedCurveAxisTitles (QStringList &formattedAxisTitles)
 
void writeFormattedCurveData (QList< QStringList > &formattedData)
 
virtual ~PlotWidget ()
 

Protected Member Functions

void dragEnterEvent (QDragEnterEvent *event)
 
void dropEvent (QDropEvent *event)
 
bool eventFilter (QObject *object, QEvent *event)
 

Private Slots

void configCurveAdded (size_t index)
 
void configCurveConfigChanged (size_t index)
 
void configCurveRemoved (size_t index)
 
void configCurvesCleared ()
 
void configLegendConfigChanged ()
 
void configPlotRateChanged (double rate)
 
void configTitleChanged (const QString &title)
 
void configXAxisConfigChanged ()
 
void configYAxisConfigChanged ()
 
void curveReplotRequested ()
 
void lineEditTitleEditingFinished ()
 
void lineEditTitleTextChanged (const QString &text)
 
void menuExportImageFileTriggered ()
 
void menuExportTextFileTriggered ()
 
void plotXBottomScaleDivChanged ()
 
void plotYLeftScaleDivChanged ()
 
void pushButtonClearClicked ()
 
void pushButtonImportExportClicked ()
 
void pushButtonRunPauseClicked ()
 
void pushButtonSetupClicked ()
 
void pushButtonStateClicked ()
 
void timerTimeout ()
 

Private Member Functions

void updateAxisTitle (PlotAxesConfig::Axis axis)
 

Private Attributes

MessageBrokerbroker_
 
PlotConfigconfig_
 
BoundingRectangle currentBounds_
 
PlotCursorcursor_
 
QVector< PlotCurve * > curves_
 
PlotLegendlegend_
 
PlotMagnifiermagnifier_
 
QIcon maximizedIcon_
 
QMenu * menuImportExport_
 
QIcon normalIcon_
 
PlotPannerpanner_
 
bool paused_
 
QIcon pauseIcon_
 
bool replot_
 
bool rescale_
 
QIcon runIcon_
 
State state_
 
QTimer * timer_
 
Ui::PlotWidget * ui_
 
PlotZoomerzoomer_
 

Detailed Description

Definition at line 47 of file PlotWidget.h.

Member Enumeration Documentation

Enumerator
Normal 
Maximized 

Definition at line 51 of file PlotWidget.h.

Constructor & Destructor Documentation

rqt_multiplot::PlotWidget::PlotWidget ( QWidget *  parent = 0)

Definition at line 57 of file PlotWidget.cpp.

rqt_multiplot::PlotWidget::~PlotWidget ( )
virtual

Definition at line 181 of file PlotWidget.cpp.

Member Function Documentation

bool rqt_multiplot::PlotWidget::canChangeState ( ) const

Definition at line 332 of file PlotWidget.cpp.

void rqt_multiplot::PlotWidget::clear ( )

Definition at line 366 of file PlotWidget.cpp.

void rqt_multiplot::PlotWidget::cleared ( )
signal
void rqt_multiplot::PlotWidget::configCurveAdded ( size_t  index)
privateslot

Definition at line 605 of file PlotWidget.cpp.

void rqt_multiplot::PlotWidget::configCurveConfigChanged ( size_t  index)
privateslot

Definition at line 651 of file PlotWidget.cpp.

void rqt_multiplot::PlotWidget::configCurveRemoved ( size_t  index)
privateslot

Definition at line 623 of file PlotWidget.cpp.

void rqt_multiplot::PlotWidget::configCurvesCleared ( )
privateslot

Definition at line 636 of file PlotWidget.cpp.

void rqt_multiplot::PlotWidget::configLegendConfigChanged ( )
privateslot

Definition at line 664 of file PlotWidget.cpp.

void rqt_multiplot::PlotWidget::configPlotRateChanged ( double  rate)
privateslot

Definition at line 675 of file PlotWidget.cpp.

void rqt_multiplot::PlotWidget::configTitleChanged ( const QString &  title)
privateslot

Definition at line 601 of file PlotWidget.cpp.

void rqt_multiplot::PlotWidget::configXAxisConfigChanged ( )
privateslot

Definition at line 656 of file PlotWidget.cpp.

void rqt_multiplot::PlotWidget::configYAxisConfigChanged ( )
privateslot

Definition at line 660 of file PlotWidget.cpp.

void rqt_multiplot::PlotWidget::currentScaleChanged ( const BoundingRectangle bounds)
signal
void rqt_multiplot::PlotWidget::curveReplotRequested ( )
privateslot

Definition at line 679 of file PlotWidget.cpp.

void rqt_multiplot::PlotWidget::dragEnterEvent ( QDragEnterEvent *  event)
protected

Definition at line 512 of file PlotWidget.cpp.

void rqt_multiplot::PlotWidget::dropEvent ( QDropEvent *  event)
protected

Definition at line 520 of file PlotWidget.cpp.

bool rqt_multiplot::PlotWidget::eventFilter ( QObject *  object,
QEvent *  event 
)
protected

Definition at line 538 of file PlotWidget.cpp.

void rqt_multiplot::PlotWidget::forceReplot ( )

Definition at line 379 of file PlotWidget.cpp.

MessageBroker * rqt_multiplot::PlotWidget::getBroker ( ) const

Definition at line 261 of file PlotWidget.cpp.

PlotConfig * rqt_multiplot::PlotWidget::getConfig ( ) const

Definition at line 248 of file PlotWidget.cpp.

const BoundingRectangle & rqt_multiplot::PlotWidget::getCurrentScale ( ) const

Definition at line 299 of file PlotWidget.cpp.

PlotCursor * rqt_multiplot::PlotWidget::getCursor ( ) const

Definition at line 265 of file PlotWidget.cpp.

BoundingRectangle rqt_multiplot::PlotWidget::getPreferredScale ( ) const

Definition at line 269 of file PlotWidget.cpp.

PlotWidget::State rqt_multiplot::PlotWidget::getState ( ) const

Definition at line 324 of file PlotWidget.cpp.

bool rqt_multiplot::PlotWidget::isPaused ( ) const

Definition at line 303 of file PlotWidget.cpp.

bool rqt_multiplot::PlotWidget::isReplotRequested ( ) const

Definition at line 307 of file PlotWidget.cpp.

void rqt_multiplot::PlotWidget::lineEditTitleEditingFinished ( )
privateslot

Definition at line 692 of file PlotWidget.cpp.

void rqt_multiplot::PlotWidget::lineEditTitleTextChanged ( const QString &  text)
privateslot

Definition at line 685 of file PlotWidget.cpp.

void rqt_multiplot::PlotWidget::menuExportImageFileTriggered ( )
privateslot

Definition at line 733 of file PlotWidget.cpp.

void rqt_multiplot::PlotWidget::menuExportTextFileTriggered ( )
privateslot

Definition at line 745 of file PlotWidget.cpp.

void rqt_multiplot::PlotWidget::pause ( )

Definition at line 353 of file PlotWidget.cpp.

void rqt_multiplot::PlotWidget::pausedChanged ( bool  paused)
signal
void rqt_multiplot::PlotWidget::plotXBottomScaleDivChanged ( )
privateslot

Definition at line 757 of file PlotWidget.cpp.

void rqt_multiplot::PlotWidget::plotYLeftScaleDivChanged ( )
privateslot

Definition at line 772 of file PlotWidget.cpp.

void rqt_multiplot::PlotWidget::preferredScaleChanged ( const BoundingRectangle bounds)
signal
void rqt_multiplot::PlotWidget::pushButtonClearClicked ( )
privateslot

Definition at line 704 of file PlotWidget.cpp.

void rqt_multiplot::PlotWidget::pushButtonImportExportClicked ( )
privateslot

Definition at line 722 of file PlotWidget.cpp.

void rqt_multiplot::PlotWidget::pushButtonRunPauseClicked ( )
privateslot

Definition at line 697 of file PlotWidget.cpp.

void rqt_multiplot::PlotWidget::pushButtonSetupClicked ( )
privateslot

Definition at line 708 of file PlotWidget.cpp.

void rqt_multiplot::PlotWidget::pushButtonStateClicked ( )
privateslot

Definition at line 726 of file PlotWidget.cpp.

void rqt_multiplot::PlotWidget::renderToPixmap ( QPixmap &  pixmap,
const QRectF &  bounds = QRectF() 
)

Definition at line 395 of file PlotWidget.cpp.

void rqt_multiplot::PlotWidget::requestReplot ( )

Definition at line 375 of file PlotWidget.cpp.

void rqt_multiplot::PlotWidget::run ( )

Definition at line 340 of file PlotWidget.cpp.

void rqt_multiplot::PlotWidget::saveToImageFile ( const QString &  fileName)

Definition at line 464 of file PlotWidget.cpp.

void rqt_multiplot::PlotWidget::saveToTextFile ( const QString &  fileName)

Definition at line 473 of file PlotWidget.cpp.

void rqt_multiplot::PlotWidget::setBroker ( MessageBroker broker)

Definition at line 252 of file PlotWidget.cpp.

void rqt_multiplot::PlotWidget::setCanChangeState ( bool  can)

Definition at line 328 of file PlotWidget.cpp.

void rqt_multiplot::PlotWidget::setConfig ( PlotConfig config)

Definition at line 189 of file PlotWidget.cpp.

void rqt_multiplot::PlotWidget::setCurrentScale ( const BoundingRectangle bounds)

Definition at line 278 of file PlotWidget.cpp.

void rqt_multiplot::PlotWidget::setState ( State  state)

Definition at line 311 of file PlotWidget.cpp.

void rqt_multiplot::PlotWidget::stateChanged ( int  state)
signal
void rqt_multiplot::PlotWidget::timerTimeout ( )
privateslot

Definition at line 596 of file PlotWidget.cpp.

void rqt_multiplot::PlotWidget::updateAxisTitle ( PlotAxesConfig::Axis  axis)
private

Definition at line 555 of file PlotWidget.cpp.

void rqt_multiplot::PlotWidget::writeFormattedCurveAxisTitles ( QStringList &  formattedAxisTitles)

Definition at line 436 of file PlotWidget.cpp.

void rqt_multiplot::PlotWidget::writeFormattedCurveData ( QList< QStringList > &  formattedData)

Definition at line 423 of file PlotWidget.cpp.

Member Data Documentation

MessageBroker* rqt_multiplot::PlotWidget::broker_
private

Definition at line 113 of file PlotWidget.h.

PlotConfig* rqt_multiplot::PlotWidget::config_
private

Definition at line 111 of file PlotWidget.h.

BoundingRectangle rqt_multiplot::PlotWidget::currentBounds_
private

Definition at line 128 of file PlotWidget.h.

PlotCursor* rqt_multiplot::PlotWidget::cursor_
private

Definition at line 118 of file PlotWidget.h.

QVector<PlotCurve*> rqt_multiplot::PlotWidget::curves_
private

Definition at line 115 of file PlotWidget.h.

PlotLegend* rqt_multiplot::PlotWidget::legend_
private

Definition at line 117 of file PlotWidget.h.

PlotMagnifier* rqt_multiplot::PlotWidget::magnifier_
private

Definition at line 120 of file PlotWidget.h.

QIcon rqt_multiplot::PlotWidget::maximizedIcon_
private

Definition at line 107 of file PlotWidget.h.

QMenu* rqt_multiplot::PlotWidget::menuImportExport_
private

Definition at line 109 of file PlotWidget.h.

QIcon rqt_multiplot::PlotWidget::normalIcon_
private

Definition at line 106 of file PlotWidget.h.

PlotPanner* rqt_multiplot::PlotWidget::panner_
private

Definition at line 119 of file PlotWidget.h.

bool rqt_multiplot::PlotWidget::paused_
private

Definition at line 123 of file PlotWidget.h.

QIcon rqt_multiplot::PlotWidget::pauseIcon_
private

Definition at line 105 of file PlotWidget.h.

bool rqt_multiplot::PlotWidget::replot_
private

Definition at line 125 of file PlotWidget.h.

bool rqt_multiplot::PlotWidget::rescale_
private

Definition at line 124 of file PlotWidget.h.

QIcon rqt_multiplot::PlotWidget::runIcon_
private

Definition at line 104 of file PlotWidget.h.

State rqt_multiplot::PlotWidget::state_
private

Definition at line 126 of file PlotWidget.h.

QTimer* rqt_multiplot::PlotWidget::timer_
private

Definition at line 108 of file PlotWidget.h.

Ui::PlotWidget* rqt_multiplot::PlotWidget::ui_
private

Definition at line 102 of file PlotWidget.h.

PlotZoomer* rqt_multiplot::PlotWidget::zoomer_
private

Definition at line 121 of file PlotWidget.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