KPlotting
kplotobject.cpp
342 << QPointF(q.x() + size(), q.y() - 0.309 * size()) << QPointF(q.x() + 0.363 * size(), q.y() + 0.118 * size())
344 << QPointF(q.x() - 0.588 * size(), q.y() + size()) << QPointF(q.x() - 0.363 * size(), q.y() + 0.118 * size())
void draw(QPainter *p, KPlotWidget *pw)
Draw this KPlotObject on the given QPainter.
Definition kplotobject.cpp:209
void setSize(double s)
Set the size for plotted points in this object, in pixels.
Definition kplotobject.cpp:95
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:175
void setBarPen(const QPen &p)
Set the pen to use for drawing bars for this object The pen to use.
Definition kplotobject.cpp:135
void removePoint(int index)
Remove the QPointF at position index from the list of points.
Definition kplotobject.cpp:193
void setLinePen(const QPen &p)
Set the pen to use for drawing lines for this object The pen to use.
Definition kplotobject.cpp:125
void setPointStyle(PointStyle p)
Set a new style for drawing the points in this object.
Definition kplotobject.cpp:105
void setPen(const QPen &p)
Set the default pen for this object The pen to use.
Definition kplotobject.cpp:115
void setShowBars(bool b)
Set whether bars will be drawn for this object.
Definition kplotobject.cpp:81
void setBrush(const QBrush &b)
Set the default brush to use for this object The brush to use.
Definition kplotobject.cpp:155
void setBarBrush(const QBrush &b)
Set the brush to use for drawing bars for this object The brush to use.
Definition kplotobject.cpp:165
void setLabelPen(const QPen &p)
Set the pen to use for labels for this object The pen to use.
Definition kplotobject.cpp:145
void setShowLines(bool b)
Set whether lines will be drawn for this object.
Definition kplotobject.cpp:72
void setShowPoints(bool b)
Set whether points will be drawn for this object.
Definition kplotobject.cpp:63
KPlotObject(const QColor &color=Qt::white, PlotType otype=Points, double size=2.0, PointStyle ps=Circle)
Constructor.
Definition kplotobject.cpp:40
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:452
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:467
void placeLabel(QPainter *painter, KPlotPoint *pp)
Place an object label optimally in the plot.
Definition kplotwidget.cpp:530
void drawEllipse(const QPoint ¢er, int rx, int ry)
void drawLine(const QLine &line)
void drawPolygon(const QPoint *points, int pointCount, Qt::FillRule fillRule)
void drawRect(const QRect &rectangle)
void drawText(const QPoint &position, const QString &text)
void setBrush(Qt::BrushStyle style)
void setPen(Qt::PenStyle style)
bool isNull() const const
QPoint toPoint() const const
qreal x() const const
qreal y() const const
bool contains(const QPoint &point, bool proper) const const
qreal left() const const
QRectF normalized() const const
AlignCenter
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:06:43 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:06:43 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.