KPlotting
kplotwidget.cpp
418 QList<KPlotPoint *> pts = pointsUnderPoint(he->pos() - QPoint(leftPadding(), topPadding()) - contentsRect().topLeft());
447 float px = d->pixRect.left() + d->pixRect.width() * (p.x() - d->dataRect.x()) / d->dataRect.width();
448 float py = d->pixRect.top() + d->pixRect.height() * (d->dataRect.y() + d->dataRect.height() - p.y()) / d->dataRect.height();
789 QRect r(int(px) - BIGTICKSIZE, d->pixRect.height() + BIGTICKSIZE, 2 * BIGTICKSIZE, BIGTICKSIZE);
827 QRect r(-2 * BIGTICKSIZE - SMALLTICKSIZE, int(py) - SMALLTICKSIZE, 2 * BIGTICKSIZE, 2 * SMALLTICKSIZE);
923 QRect r(d->pixRect.width() + SMALLTICKSIZE, int(py) - SMALLTICKSIZE, 2 * BIGTICKSIZE, 2 * SMALLTICKSIZE);
void setTickMarks(double x0, double length)
Determine the positions of major and minor tickmarks for this axis.
Definition kplotaxis.cpp:96
void setTickLabelsShown(bool b)
Determine whether tick labels will be drawn for this axis.
Definition kplotaxis.cpp:59
void setAutoDeletePlotObjects(bool autoDelete)
Enables auto-deletion of plot objects if autoDelete is true; otherwise auto-deletion is disabled.
Definition kplotwidget.cpp:255
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 resizeEvent(QResizeEvent *) override
The resize event handler, called when the widget is resized.
Definition kplotwidget.cpp:430
void resetPlot()
Clear the object list, reset the data limits, and remove axis labels If auto-delete was not disabled,...
Definition kplotwidget.cpp:281
void setPixRect()
Synchronize the PixRect with the current widget size and padding settings.
Definition kplotwidget.cpp:437
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 setSecondaryLimits(double x1, double x2, double y1, double y2)
Reset the secondary data limits, which control the values displayed along the top and right axes.
Definition kplotwidget.cpp:168
void setRightPadding(int padding)
Set the number of pixels to the right of the plot area.
Definition kplotwidget.cpp:1008
void paintEvent(QPaintEvent *) override
The paint event handler, executed when update() or repaint() is called.
Definition kplotwidget.cpp:714
void setObjectToolTipShown(bool show)
Toggle the display of a tooltip for point objects.
Definition kplotwidget.cpp:376
void setShowGrid(bool show)
Toggle whether grid lines are drawn at major tickmarks.
Definition kplotwidget.cpp:370
QList< KPlotPoint * > pointsUnderPoint(const QPoint &p) const
Definition kplotwidget.cpp:398
void placeLabel(QPainter *painter, KPlotPoint *pp)
Place an object label optimally in the plot.
Definition kplotwidget.cpp:530
virtual void drawAxes(QPainter *p)
Draws the plot axes and axis labels.
Definition kplotwidget.cpp:744
void replacePlotObject(int i, KPlotObject *o)
Replace an item in the KPlotObject list.
Definition kplotwidget.cpp:300
void setLimits(double x1, double x2, double y1, double y2)
Set new data limits for the plot.
Definition kplotwidget.cpp:122
void addPlotObject(KPlotObject *object)
Add an item to the list of KPlotObjects to be plotted.
Definition kplotwidget.cpp:224
void setLeftPadding(int padding)
Set the number of pixels to the left of the plot area.
Definition kplotwidget.cpp:1003
void resetPlotMask()
Reset the mask used for non-overlapping labels so that all regions of the plot area are considered em...
Definition kplotwidget.cpp:273
void setDefaultPaddings()
Revert all four padding values to -1, so that they will be automatically determined.
Definition kplotwidget.cpp:1023
void setBottomPadding(int padding)
Set the number of pixels below the plot area.
Definition kplotwidget.cpp:1018
void addPlotObjects(const QList< KPlotObject * > &objects)
Add more than one KPlotObject at one time.
Definition kplotwidget.cpp:234
void clearSecondaryLimits()
Unset the secondary limits, so the top and right axes show the same tickmarks as the bottom and left ...
Definition kplotwidget.cpp:205
void setTopPadding(int padding)
Set the number of pixels above the plot area.
Definition kplotwidget.cpp:1013
void removeAllPlotObjects()
Removes all plot objects that were added to the widget.
Definition kplotwidget.cpp:260
int red() const const
QRgb rgb() const const
QRgb rgba() const const
void setAlpha(int alpha)
void setRed(int red)
ToolTip
void accept()
Type type() const const
int pointSize() const const
void setPointSize(int pointSize)
QRectF boundingRect(QChar ch) const const
virtual bool event(QEvent *e) override
virtual void paintEvent(QPaintEvent *) override
ConstIterator
Iterator
T value(const Key &key) const const
const QPoint & globalPos() const const
const QPoint & pos() const const
Format_ARGB32
QImage copy(const QRect &rectangle) const const
int height() const const
QRgb pixel(const QPoint &position) const const
int width() const const
void append(QList< T > &&value)
bool contains(const AT &value) const const
reference front()
bool isEmpty() const const
qsizetype size() const const
Antialiasing
bool begin(QPaintDevice *device)
QPaintDevice * device() const const
void drawLine(const QLine &line)
void drawRoundedRect(const QRect &rect, qreal xRadius, qreal yRadius, Qt::SizeMode mode)
void drawText(const QPoint &position, const QString &text)
bool end()
void fillRect(const QRect &rectangle, QGradient::Preset preset)
const QFont & font() const const
void restore()
void rotate(qreal angle)
void save()
void setBrush(Qt::BrushStyle style)
void setClipRect(const QRect &rectangle, Qt::ClipOperation operation)
void setClipping(bool enable)
void setFont(const QFont &font)
void setPen(Qt::PenStyle style)
void setRenderHint(RenderHint hint, bool on)
void translate(const QPoint &offset)
QPoint toPoint() const const
qreal x() const const
qreal y() const const
int bottom() const const
int height() const const
QRect intersected(const QRect &rectangle) const const
int left() const const
int right() const const
int top() const const
int width() const const
qreal bottom() const const
QPointF center() const const
qreal height() const const
bool isNull() const const
qreal left() const const
void moveLeft(qreal x)
void moveTop(qreal y)
qreal right() const const
QRect toRect() const const
qreal top() const const
qreal width() const const
qreal x() const const
qreal y() const const
bool isEmpty() const const
AlignCenter
NoBrush
black
RelativeSize
TextSingleLine
WA_OpaquePaintEvent
void showText(const QPoint &pos, const QString &text, QWidget *w, const QRect &rect, int msecDisplayTime)
QRect contentsRect() const const
pos
rect
virtual void resizeEvent(QResizeEvent *event)
void setAttribute(Qt::WidgetAttribute attribute, bool on)
void show()
size
void update()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 27 2024 11:55:56 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 27 2024 11:55:56 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.