Plasma
signalplotter.h
Go to the documentation of this file.
void drawTopBarFrame(QPainter *p, int separatorX, int height)
Definition signalplotter.cpp:756
void drawTopBarContents(QPainter *p, int x, int width, int height)
Definition signalplotter.cpp:768
double verticalMaxValue() const
Get the max value of the vertical axis.
Definition signalplotter.cpp:323
void drawHorizontalLines(QPainter *p, int top, int w, int h)
Definition signalplotter.cpp:1077
void setSvgBackground(const QString &filename)
The filename of the svg background.
Definition signalplotter.cpp:497
QPixmap getSnapshotImage(uint width, uint height)
Render the graph to the specified width and height, and return it as an image.
Definition signalplotter.cpp:571
void setVerticalLinesScroll(bool value)
Whether the vertical lines move with the data.
Definition signalplotter.cpp:386
void setHorizontalLinesColor(const QColor &color)
The color of the horizontal grid lines.
Definition signalplotter.cpp:424
Q_INVOKABLE void reorderPlots(const QList< uint > &newOrder)
Reorder the plots into the order given.
Definition signalplotter.cpp:222
double verticalMinValue() const
Get the min value of the vertical axis.
Definition signalplotter.cpp:318
virtual void setGeometry(const QRectF &geometry)
Overwritten to be notified of size changes.
Definition signalplotter.cpp:582
void setShowLabels(bool value)
Whether to show the vertical axis labels.
Definition signalplotter.cpp:453
double lastValue(uint i) const
Return the last value that we have for plot i.
Definition signalplotter.cpp:1087
void setShowVerticalLines(bool value)
Whether to draw the vertical grid lines.
Definition signalplotter.cpp:344
void drawWidget(QPainter *p, uint w, uint height, int horizontalScale)
Definition signalplotter.cpp:606
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
Definition signalplotter.cpp:589
QList< PlotColor > & plotColors()
Return the list of plot colors, in the order that the plots were added (or later reordered).
Definition signalplotter.cpp:258
Q_INVOKABLE void removePlot(uint pos)
Removes the plot at the specified index.
Definition signalplotter.cpp:263
SignalPlotter(QGraphicsItem *parent=0)
Definition signalplotter.cpp:116
void drawPlots(QPainter *p, int top, int w, int h, int horizontalScale)
Definition signalplotter.cpp:807
Q_INVOKABLE void addPlot(const QColor &color)
Add a new line to the graph plotter, with the specified color.
Definition signalplotter.cpp:169
void drawAxisText(QPainter *p, int top, int h)
Definition signalplotter.cpp:1038
void setUseAutoRange(bool value)
Set the minimum and maximum values on the vertical axis automatically from the data available.
Definition signalplotter.cpp:306
Q_INVOKABLE void addSample(const QList< double > &samples)
Add data to the graph, and advance the graph by one time period.
Definition signalplotter.cpp:182
void drawBackground(QPainter *p, int w, int h)
Definition signalplotter.cpp:699
void setBackgroundColor(const QColor &color)
The color to set the background.
Definition signalplotter.cpp:519
void drawThinFrame(QPainter *p, int w, int h)
Definition signalplotter.cpp:709
QString lastValueAsString(uint i) const
Return a translated string like: "34 %" or "100 KB" for plot i.
Definition signalplotter.cpp:1095
void setVerticalRange(double min, double max)
Change the minimum and maximum values drawn on the graph.
Definition signalplotter.cpp:251
void setHorizontalLinesCount(uint count)
The number of horizontal lines to draw.
Definition signalplotter.cpp:438
void drawVerticalLines(QPainter *p, int top, int w, int h)
Definition signalplotter.cpp:799
void setThinFrame(bool set)
Whether to show a white line on the left and bottom of the widget, for a 3D effect.
Definition signalplotter.cpp:533
void setVerticalLinesColor(const QColor &color)
The color of the vertical grid lines.
Definition signalplotter.cpp:358
void setVerticalLinesDistance(uint distance)
The horizontal distance between the vertical grid lines.
Definition signalplotter.cpp:372
void setShowHorizontalLines(bool value)
Whether to draw the horizontal grid lines.
Definition signalplotter.cpp:400
void setShowTopBar(bool value)
Whether to show the title etc at the top.
Definition signalplotter.cpp:467
void setFontColor(const QColor &color)
The color of the font used for the axis.
Definition signalplotter.cpp:414
void setStackPlots(bool stack)
Whether to stack the plots on top of each other.
Definition signalplotter.cpp:547
void setHorizontalScale(uint scale)
Set the number of pixels horizontally between data points.
Definition signalplotter.cpp:328
Definition signalplotter.h:35
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.