KPlotting
kplotobject.cpp
345 << QPointF(q.x() + size(), q.y() - 0.309 * size()) << QPointF(q.x() + 0.363 * size(), q.y() + 0.118 * size())
347 << QPointF(q.x() - 0.588 * size(), q.y() + size()) << QPointF(q.x() - 0.363 * size(), q.y() + 0.118 * size())
void maskAlongLine(const QPointF &p1, const QPointF &p2, float value=1.0f)
Indicate that object labels should try to avoid the line joining the two given points (in pixel coord...
Definition: kplotwidget.cpp:470
AlignCenter
void setPen(const QColor &color)
void setBarPen(const QPen &p)
Set the pen to use for drawing bars for this object The pen to use.
Definition: kplotobject.cpp:138
Encapsulates a point in the plot. A KPlotPoint consists of X and Y coordinates (in Data units),...
Definition: kplotpoint.h:27
void drawEllipse(const QRectF &rectangle)
void maskRect(const QRectF &r, float value=1.0f)
Indicate that object labels should try to avoid the given rectangle in the plot.
Definition: kplotwidget.cpp:455
void removePoint(int index)
Remove the QPointF at position index from the list of points.
Definition: kplotobject.cpp:196
Type type(const QSqlDatabase &db)
void drawRect(const QRectF &rectangle)
void setSize(double s)
Set the size for plotted points in this object, in pixels.
Definition: kplotobject.cpp:98
void draw(QPainter *p, KPlotWidget *pw)
Draw this KPlotObject on the given QPainter.
Definition: kplotobject.cpp:212
void setLabelPen(const QPen &p)
Set the pen to use for labels for this object The pen to use.
Definition: kplotobject.cpp:148
bool contains(const QRect &rectangle, bool proper) const const
void drawText(const QPointF &position, const QString &text)
void setPen(const QPen &p)
Set the default pen for this object The pen to use.
Definition: kplotobject.cpp:118
void drawPolygon(const QPointF *points, int pointCount, Qt::FillRule fillRule)
void setLinePen(const QPen &p)
Set the pen to use for drawing lines for this object The pen to use.
Definition: kplotobject.cpp:128
void setShowPoints(bool b)
Set whether points will be drawn for this object.
Definition: kplotobject.cpp:66
void setShowBars(bool b)
Set whether bars will be drawn for this object.
Definition: kplotobject.cpp:84
KPlotObject(const QColor &color=Qt::white, PlotType otype=Points, double size=2.0, PointStyle ps=Circle)
Constructor.
Definition: kplotobject.cpp:40
void setBrush(const QBrush &brush)
void addPoint(const QPointF &p, const QString &label=QString(), double barWidth=0.0)
Add a point to the object's list of points, using input data to construct a KPlotPoint.
Definition: kplotobject.cpp:178
qreal x() const const
qreal y() const const
void setBrush(const QBrush &b)
Set the default brush to use for this object The brush to use.
Definition: kplotobject.cpp:158
void drawLine(const QLineF &line)
QPoint toPoint() const const
void placeLabel(QPainter *painter, KPlotPoint *pp)
Place an object label optimally in the plot.
Definition: kplotwidget.cpp:533
void setBarBrush(const QBrush &b)
Set the brush to use for drawing bars for this object The brush to use.
Definition: kplotobject.cpp:168
QRectF normalized() const const
bool isNull() const const
void setPointStyle(PointStyle p)
Set a new style for drawing the points in this object.
Definition: kplotobject.cpp:108
void setShowLines(bool b)
Set whether lines will be drawn for this object.
Definition: kplotobject.cpp:75
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Oct 3 2023 04:10:44 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Oct 3 2023 04:10:44 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.