Main Page
Namespaces
Classes
Files
File List
include
rqt_multiplot
PlotTableWidget.h
Go to the documentation of this file.
1
/******************************************************************************
2
* Copyright (C) 2015 by Ralf Kaestner *
3
* ralf.kaestner@gmail.com *
4
* *
5
* This program is free software; you can redistribute it and/or modify *
6
* it under the terms of the Lesser GNU General Public License as published by*
7
* the Free Software Foundation; either version 3 of the License, or *
8
* (at your option) any later version. *
9
* *
10
* This program is distributed in the hope that it will be useful, *
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13
* Lesser GNU General Public License for more details. *
14
* *
15
* You should have received a copy of the Lesser GNU General Public License *
16
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
17
******************************************************************************/
18
19
#ifndef RQT_MULTIPLOT_PLOT_TABLE_WIDGET_H
20
#define RQT_MULTIPLOT_PLOT_TABLE_WIDGET_H
21
22
#include <QGridLayout>
23
#include <QVector>
24
#include <QWidget>
25
26
#include <
rqt_multiplot/BagReader.h
>
27
#include <
rqt_multiplot/BoundingRectangle.h
>
28
#include <
rqt_multiplot/MessageSubscriberRegistry.h
>
29
#include <
rqt_multiplot/PlotTableConfig.h
>
30
31
namespace
rqt_multiplot
{
32
class
PlotWidget;
33
34
class
PlotTableWidget
:
35
public
QWidget {
36
Q_OBJECT
37
public
:
38
PlotTableWidget
(QWidget* parent = 0);
39
virtual
~PlotTableWidget
();
40
41
void
setConfig
(
PlotTableConfig
*
config
);
42
PlotTableConfig
*
getConfig
()
const
;
43
size_t
getNumRows
()
const
;
44
size_t
getNumColumns
()
const
;
45
PlotWidget
*
getPlotWidget
(
size_t
row,
size_t
column)
const
;
46
MessageSubscriberRegistry
*
getRegistry
()
const
;
47
BagReader
*
getBagReader
()
const
;
48
49
void
runPlots
();
50
void
pausePlots
();
51
void
clearPlots
();
52
53
void
requestReplot
();
54
void
forceReplot
();
55
56
void
renderToPixmap
(QPixmap& pixmap);
57
void
writeFormattedCurveAxisTitles
(QStringList& formattedAxisTitles);
58
void
writeFormattedCurveData
(QList<QStringList>& formattedData);
59
60
void
loadFromBagFile
(
const
QString& fileName);
61
void
saveToImageFile
(
const
QString& fileName);
62
void
saveToTextFile
(
const
QString& fileName);
63
64
signals:
65
void
plotPausedChanged
();
66
void
jobStarted
(
const
QString& toolTip);
67
void
jobProgressChanged
(
double
progress);
68
void
jobFinished
(
const
QString& toolTip);
69
void
jobFailed
(
const
QString& toolTip);
70
71
private
:
72
QGridLayout*
layout_
;
73
QVector<QVector<PlotWidget*> >
plotWidgets_
;
74
75
PlotTableConfig
*
config_
;
76
77
MessageSubscriberRegistry
*
registry_
;
78
BagReader
*
bagReader_
;
79
80
void
updatePlotScale
(
const
BoundingRectangle
& bounds,
PlotWidget
*
81
excluded = 0);
82
83
private
slots:
84
void
configBackgroundColorChanged
(
const
QColor& color);
85
void
configForegroundColorChanged
(
const
QColor& color);
86
void
configNumPlotsChanged
(
size_t
numRows,
size_t
numColumns);
87
void
configLinkScaleChanged
(
bool
link);
88
void
configTrackPointsChanged
(
bool
track);
89
90
void
plotPreferredScaleChanged
(
const
BoundingRectangle
& bounds);
91
void
plotCurrentScaleChanged
(
const
BoundingRectangle
& bounds);
92
void
plotCursorActiveChanged
(
bool
active);
93
void
plotCursorCurrentPositionChanged
(
const
QPointF& position);
94
void
plotPausedChanged
(
bool
paused);
95
void
plotStateChanged
(
int
state);
96
97
void
bagReaderReadingStarted
();
98
void
bagReaderReadingProgressChanged
(
double
progress);
99
void
bagReaderReadingFinished
();
100
void
bagReaderReadingFailed
(
const
QString& error);
101
};
102
};
103
104
#endif
rqt_multiplot::PlotTableWidget::getRegistry
MessageSubscriberRegistry * getRegistry() const
Definition:
PlotTableWidget.cpp:120
PlotTableConfig.h
rqt_multiplot::PlotTableWidget::bagReaderReadingFailed
void bagReaderReadingFailed(const QString &error)
Definition:
PlotTableWidget.cpp:443
rqt_multiplot::PlotTableWidget::saveToTextFile
void saveToTextFile(const QString &fileName)
Definition:
PlotTableWidget.cpp:236
rqt_multiplot::PlotTableWidget::setConfig
void setConfig(PlotTableConfig *config)
Definition:
PlotTableWidget.cpp:63
rqt_multiplot::PlotTableWidget::plotCursorCurrentPositionChanged
void plotCursorCurrentPositionChanged(const QPointF &position)
Definition:
PlotTableWidget.cpp:486
rqt_multiplot::PlotTableWidget::configBackgroundColorChanged
void configBackgroundColorChanged(const QColor &color)
Definition:
PlotTableWidget.cpp:309
rqt_multiplot::PlotTableWidget::layout_
QGridLayout * layout_
Definition:
PlotTableWidget.h:72
BagReader.h
rqt_multiplot::PlotTableWidget::config_
PlotTableConfig * config_
Definition:
PlotTableWidget.h:75
rqt_multiplot::PlotTableWidget::forceReplot
void forceReplot()
Definition:
PlotTableWidget.cpp:156
config
config
rqt_multiplot::PlotTableWidget::updatePlotScale
void updatePlotScale(const BoundingRectangle &bounds, PlotWidget *excluded=0)
Definition:
PlotTableWidget.cpp:275
rqt_multiplot::PlotTableWidget::jobProgressChanged
void jobProgressChanged(double progress)
rqt_multiplot::PlotTableWidget::configForegroundColorChanged
void configForegroundColorChanged(const QColor &color)
Definition:
PlotTableWidget.cpp:320
rqt_multiplot::PlotTableWidget::plotCursorActiveChanged
void plotCursorActiveChanged(bool active)
Definition:
PlotTableWidget.cpp:477
rqt_multiplot::PlotTableWidget::loadFromBagFile
void loadFromBagFile(const QString &fileName)
Definition:
PlotTableWidget.cpp:215
rqt_multiplot::PlotTableWidget::requestReplot
void requestReplot()
Definition:
PlotTableWidget.cpp:150
rqt_multiplot::PlotTableWidget::writeFormattedCurveData
void writeFormattedCurveData(QList< QStringList > &formattedData)
Definition:
PlotTableWidget.cpp:199
rqt_multiplot::PlotTableWidget::jobFinished
void jobFinished(const QString &toolTip)
rqt_multiplot::PlotTableWidget::getPlotWidget
PlotWidget * getPlotWidget(size_t row, size_t column) const
Definition:
PlotTableWidget.cpp:116
rqt_multiplot::PlotTableWidget::PlotTableWidget
PlotTableWidget(QWidget *parent=0)
Definition:
PlotTableWidget.cpp:34
rqt_multiplot::PlotTableWidget::bagReaderReadingStarted
void bagReaderReadingStarted()
Definition:
PlotTableWidget.cpp:423
rqt_multiplot::PlotTableWidget::bagReaderReadingFinished
void bagReaderReadingFinished()
Definition:
PlotTableWidget.cpp:432
rqt_multiplot::PlotTableWidget::jobFailed
void jobFailed(const QString &toolTip)
rqt_multiplot::PlotTableWidget::~PlotTableWidget
virtual ~PlotTableWidget()
Definition:
PlotTableWidget.cpp:56
MessageSubscriberRegistry.h
rqt_multiplot::PlotTableWidget::plotPreferredScaleChanged
void plotPreferredScaleChanged(const BoundingRectangle &bounds)
Definition:
PlotTableWidget.cpp:454
rqt_multiplot::PlotTableWidget::bagReaderReadingProgressChanged
void bagReaderReadingProgressChanged(double progress)
Definition:
PlotTableWidget.cpp:428
rqt_multiplot::PlotTableWidget::bagReader_
BagReader * bagReader_
Definition:
PlotTableWidget.h:78
rqt_multiplot::PlotTableWidget::renderToPixmap
void renderToPixmap(QPixmap &pixmap)
Definition:
PlotTableWidget.cpp:162
rqt_multiplot::PlotTableWidget::pausePlots
void pausePlots()
Definition:
PlotTableWidget.cpp:138
rqt_multiplot::PlotTableWidget::configLinkScaleChanged
void configLinkScaleChanged(bool link)
Definition:
PlotTableWidget.cpp:405
rqt_multiplot::PlotTableWidget::getNumColumns
size_t getNumColumns() const
Definition:
PlotTableWidget.cpp:109
rqt_multiplot::BoundingRectangle
Definition:
BoundingRectangle.h:27
rqt_multiplot::PlotTableWidget::configNumPlotsChanged
void configNumPlotsChanged(size_t numRows, size_t numColumns)
Definition:
PlotTableWidget.cpp:329
rqt_multiplot::BagReader
Definition:
BagReader.h:32
rqt_multiplot::PlotTableWidget::jobStarted
void jobStarted(const QString &toolTip)
rqt_multiplot::PlotTableWidget::saveToImageFile
void saveToImageFile(const QString &fileName)
Definition:
PlotTableWidget.cpp:227
rqt_multiplot::PlotTableWidget::getConfig
PlotTableConfig * getConfig() const
Definition:
PlotTableWidget.cpp:101
rqt_multiplot::PlotTableWidget::plotStateChanged
void plotStateChanged(int state)
Definition:
PlotTableWidget.cpp:501
rqt_multiplot::PlotTableWidget::getBagReader
BagReader * getBagReader() const
Definition:
PlotTableWidget.cpp:124
rqt_multiplot::PlotTableWidget
Definition:
PlotTableWidget.h:34
rqt_multiplot::PlotTableWidget::registry_
MessageSubscriberRegistry * registry_
Definition:
PlotTableWidget.h:77
rqt_multiplot::PlotTableWidget::writeFormattedCurveAxisTitles
void writeFormattedCurveAxisTitles(QStringList &formattedAxisTitles)
Definition:
PlotTableWidget.cpp:183
rqt_multiplot::PlotTableWidget::clearPlots
void clearPlots()
Definition:
PlotTableWidget.cpp:144
rqt_multiplot
Definition:
BagQuery.h:33
rqt_multiplot::PlotTableWidget::plotWidgets_
QVector< QVector< PlotWidget * > > plotWidgets_
Definition:
PlotTableWidget.h:73
rqt_multiplot::PlotWidget
Definition:
PlotWidget.h:47
rqt_multiplot::MessageSubscriberRegistry
Definition:
MessageSubscriberRegistry.h:29
rqt_multiplot::PlotTableWidget::runPlots
void runPlots()
Definition:
PlotTableWidget.cpp:132
rqt_multiplot::PlotTableWidget::configTrackPointsChanged
void configTrackPointsChanged(bool track)
Definition:
PlotTableWidget.cpp:417
rqt_multiplot::PlotTableWidget::plotCurrentScaleChanged
void plotCurrentScaleChanged(const BoundingRectangle &bounds)
Definition:
PlotTableWidget.cpp:471
rqt_multiplot::PlotTableWidget::plotPausedChanged
void plotPausedChanged()
rqt_multiplot::PlotTableWidget::getNumRows
size_t getNumRows() const
Definition:
PlotTableWidget.cpp:105
rqt_multiplot::PlotTableConfig
Definition:
PlotTableConfig.h:29
BoundingRectangle.h
rqt_multiplot
Author(s): Ralf Kaestner
autogenerated on Wed Jul 10 2019 03:49:44