|
SETestKCL
1.0.
|
#include <qcustomplot.h>

Classes | |
| struct | CachedLabel |
| struct | TickLabelData |
Public Member Functions | |
| QCPAxisPainterPrivate (QCustomPlot *parentPlot) | |
| virtual | ~QCPAxisPainterPrivate () |
| virtual void | draw (QCPPainter *painter) |
| virtual int | size () const |
| void | clearCache () |
| QRect | axisSelectionBox () const |
| QRect | tickLabelsSelectionBox () const |
| QRect | labelSelectionBox () const |
Public Attributes | |
| QCPAxis::AxisType | type |
| QPen | basePen |
| QCPLineEnding | lowerEnding |
| QCPLineEnding | upperEnding |
| int | labelPadding |
| QFont | labelFont |
| QColor | labelColor |
| QString | label |
| int | tickLabelPadding |
| double | tickLabelRotation |
| QCPAxis::LabelSide | tickLabelSide |
| bool | substituteExponent |
| bool | numberMultiplyCross |
| int | tickLengthIn |
| int | tickLengthOut |
| int | subTickLengthIn |
| int | subTickLengthOut |
| QPen | tickPen |
| QPen | subTickPen |
| QFont | tickLabelFont |
| QColor | tickLabelColor |
| QRect | axisRect |
| QRect | viewportRect |
| double | offset |
| bool | abbreviateDecimalPowers |
| bool | reversedEndings |
| QVector< double > | subTickPositions |
| QVector< double > | tickPositions |
| QVector< QString > | tickLabels |
Protected Member Functions | |
| virtual QByteArray | generateLabelParameterHash () const |
| virtual void | placeTickLabel (QCPPainter *painter, double position, int distanceToAxis, const QString &text, QSize *tickLabelsSize) |
| virtual void | drawTickLabel (QCPPainter *painter, double x, double y, const TickLabelData &labelData) const |
| virtual TickLabelData | getTickLabelData (const QFont &font, const QString &text) const |
| virtual QPointF | getTickLabelDrawOffset (const TickLabelData &labelData) const |
| virtual void | getMaxTickLabelSize (const QFont &font, const QString &text, QSize *tickLabelsSize) const |
Protected Attributes | |
| QCustomPlot * | mParentPlot |
| QByteArray | mLabelParameterHash |
| QCache< QString, CachedLabel > | mLabelCache |
| QRect | mAxisSelectionBox |
| QRect | mTickLabelsSelectionBox |
| QRect | mLabelSelectionBox |
Definition at line 1321 of file qcustomplot.h.
|
explicit |
Constructs a QCPAxisPainterPrivate instance. Make sure to not create a new instance on every redraw, to utilize the caching mechanisms.
Definition at line 6062 of file qcustomplot.cpp.
|
virtual |
Definition at line 6087 of file qcustomplot.cpp.
|
inline |
Definition at line 1331 of file qcustomplot.h.
Referenced by QCPAxis::getPartAt().
| void clearCache | ( | ) |
Definition at line 6330 of file qcustomplot.cpp.
References mLabelCache.
|
virtual |
Definition at line 6098 of file qcustomplot.cpp.
References QCPPainter::antialiasing(), QCPAxis::atBottom, QCPAxis::atLeft, QCPAxis::atRight, QCPAxis::atTop, axisRect, basePen, QCPLineEnding::draw(), QCPPainter::drawLine(), QCPLineEnding::esNone, generateLabelParameterHash(), QCPLineEnding::inverted(), label, labelColor, labelFont, labelPadding, lowerEnding, QCPAxis::lsInside, QCPAxis::lsOutside, mAxisSelectionBox, mLabelCache, mLabelParameterHash, mLabelSelectionBox, mParentPlot, mTickLabelsSelectionBox, offset, QCPAxis::orientation(), placeTickLabel(), QCPLineEnding::realLength(), reversedEndings, QCustomPlot::selectionTolerance(), QCPPainter::setAntialiasing(), QCPPainter::setPen(), QCPLineEnding::style(), subTickLengthIn, subTickLengthOut, subTickPen, subTickPositions, tickLabelColor, tickLabelFont, tickLabelPadding, tickLabels, tickLabelSide, tickLengthIn, tickLengthOut, tickPen, tickPositions, type, and upperEnding.
Referenced by QCPAxis::draw().
|
protectedvirtual |
Definition at line 6451 of file qcustomplot.cpp.
References QCPAxisPainterPrivate::TickLabelData::baseBounds, QCPAxisPainterPrivate::TickLabelData::baseFont, QCPAxisPainterPrivate::TickLabelData::basePart, QCPAxisPainterPrivate::TickLabelData::expBounds, QCPAxisPainterPrivate::TickLabelData::expFont, QCPAxisPainterPrivate::TickLabelData::expPart, tickLabelRotation, and QCPAxisPainterPrivate::TickLabelData::totalBounds.
Referenced by placeTickLabel().
|
protectedvirtual |
Definition at line 6342 of file qcustomplot.cpp.
References numberMultiplyCross, substituteExponent, tickLabelColor, tickLabelFont, tickLabelRotation, and tickLabelSide.
Referenced by draw().
|
protectedvirtual |
Definition at line 6667 of file qcustomplot.cpp.
References getTickLabelData(), mLabelCache, mParentPlot, QCP::phCacheLabels, QCPAxisPainterPrivate::CachedLabel::pixmap, QCustomPlot::plottingHints(), and QCPAxisPainterPrivate::TickLabelData::rotatedTotalBounds.
Referenced by size().
|
protectedvirtual |
Definition at line 6488 of file qcustomplot.cpp.
References abbreviateDecimalPowers, QCPAxisPainterPrivate::TickLabelData::baseBounds, QCPAxisPainterPrivate::TickLabelData::baseFont, QCPAxisPainterPrivate::TickLabelData::basePart, QCPAxisPainterPrivate::TickLabelData::expBounds, QCPAxisPainterPrivate::TickLabelData::expFont, QCPAxisPainterPrivate::TickLabelData::expPart, numberMultiplyCross, QCPAxisPainterPrivate::TickLabelData::rotatedTotalBounds, substituteExponent, tickLabelRotation, and QCPAxisPainterPrivate::TickLabelData::totalBounds.
Referenced by getMaxTickLabelSize(), and placeTickLabel().
|
protectedvirtual |
Definition at line 6567 of file qcustomplot.cpp.
References QCPAxis::atBottom, QCPAxis::atLeft, QCPAxis::atRight, QCPAxis::atTop, QCPAxis::lsInside, QCPAxis::lsOutside, tickLabelRotation, tickLabelSide, QCPAxisPainterPrivate::TickLabelData::totalBounds, and type.
Referenced by placeTickLabel().
|
inline |
Definition at line 1333 of file qcustomplot.h.
Referenced by QCPAxis::getPartAt().
|
protectedvirtual |
Definition at line 6373 of file qcustomplot.cpp.
References QCPAxis::atBottom, QCPAxis::atLeft, QCPAxis::atRight, QCPAxis::atTop, axisRect, drawTickLabel(), getTickLabelData(), getTickLabelDrawOffset(), QCPAxis::lsOutside, mLabelCache, QCPPainter::modes(), mParentPlot, offset, QCPAxisPainterPrivate::CachedLabel::offset, QCPAxis::orientation(), QCP::phCacheLabels, QCPAxisPainterPrivate::CachedLabel::pixmap, QCustomPlot::plottingHints(), QCPPainter::pmNoCaching, QCPAxisPainterPrivate::TickLabelData::rotatedTotalBounds, QCPPainter::setPen(), tickLabelSide, type, and viewportRect.
Referenced by draw().
|
virtual |
Definition at line 6291 of file qcustomplot.cpp.
References getMaxTickLabelSize(), label, labelFont, labelPadding, QCPAxis::lsOutside, QCPAxis::orientation(), subTickLengthOut, tickLabelFont, tickLabelPadding, tickLabels, tickLabelSide, tickLengthOut, tickPositions, and type.
Referenced by QCPAxis::calculateMargin().
|
inline |
Definition at line 1332 of file qcustomplot.h.
Referenced by QCPAxis::getPartAt().
| bool abbreviateDecimalPowers |
Definition at line 1354 of file qcustomplot.h.
Referenced by QCPAxis::draw(), and getTickLabelData().
| QRect axisRect |
Definition at line 1352 of file qcustomplot.h.
Referenced by QCPAxis::calculateMargin(), QCPAxis::draw(), draw(), and placeTickLabel().
| QPen basePen |
Definition at line 1337 of file qcustomplot.h.
Referenced by QCPAxis::draw(), and draw().
| QString label |
Definition at line 1342 of file qcustomplot.h.
Referenced by QCPAxis::calculateMargin(), QCPAxis::draw(), draw(), and size().
| QColor labelColor |
Definition at line 1341 of file qcustomplot.h.
Referenced by QCPAxis::draw(), and draw().
| QFont labelFont |
Definition at line 1340 of file qcustomplot.h.
Referenced by QCPAxis::calculateMargin(), QCPAxis::draw(), draw(), and size().
| int labelPadding |
Definition at line 1339 of file qcustomplot.h.
Referenced by draw(), QCPAxis::labelPadding(), QCPAxis::setLabelPadding(), and size().
| QCPLineEnding lowerEnding |
Definition at line 1338 of file qcustomplot.h.
Referenced by draw(), QCPAxis::lowerEnding(), and QCPAxis::setLowerEnding().
|
protected |
Definition at line 1376 of file qcustomplot.h.
Referenced by draw().
|
protected |
Definition at line 1375 of file qcustomplot.h.
Referenced by clearCache(), draw(), getMaxTickLabelSize(), and placeTickLabel().
|
protected |
Definition at line 1374 of file qcustomplot.h.
Referenced by draw().
|
protected |
Definition at line 1376 of file qcustomplot.h.
Referenced by draw().
|
protected |
Definition at line 1373 of file qcustomplot.h.
Referenced by draw(), getMaxTickLabelSize(), and placeTickLabel().
|
protected |
Definition at line 1376 of file qcustomplot.h.
Referenced by draw().
| bool numberMultiplyCross |
Definition at line 1347 of file qcustomplot.h.
Referenced by generateLabelParameterHash(), getTickLabelData(), QCPAxis::numberFormat(), and QCPAxis::setNumberFormat().
| double offset |
Definition at line 1353 of file qcustomplot.h.
Referenced by draw(), QCPAxis::offset(), placeTickLabel(), and QCPAxis::setOffset().
| bool reversedEndings |
Definition at line 1355 of file qcustomplot.h.
Referenced by QCPAxis::draw(), and draw().
| bool substituteExponent |
Definition at line 1346 of file qcustomplot.h.
Referenced by QCPAxis::draw(), generateLabelParameterHash(), and getTickLabelData().
| int subTickLengthIn |
Definition at line 1348 of file qcustomplot.h.
Referenced by draw(), QCPAxis::setSubTickLengthIn(), and QCPAxis::subTickLengthIn().
| int subTickLengthOut |
Definition at line 1348 of file qcustomplot.h.
Referenced by draw(), QCPAxis::setSubTickLengthOut(), size(), and QCPAxis::subTickLengthOut().
| QPen subTickPen |
Definition at line 1349 of file qcustomplot.h.
Referenced by QCPAxis::draw(), and draw().
| QVector<double> subTickPositions |
Definition at line 1357 of file qcustomplot.h.
Referenced by QCPAxis::draw(), and draw().
| QColor tickLabelColor |
Definition at line 1351 of file qcustomplot.h.
Referenced by QCPAxis::draw(), draw(), and generateLabelParameterHash().
| QFont tickLabelFont |
Definition at line 1350 of file qcustomplot.h.
Referenced by QCPAxis::calculateMargin(), QCPAxis::draw(), draw(), generateLabelParameterHash(), and size().
| int tickLabelPadding |
Definition at line 1343 of file qcustomplot.h.
Referenced by draw(), QCPAxis::setTickLabelPadding(), size(), and QCPAxis::tickLabelPadding().
| double tickLabelRotation |
Definition at line 1344 of file qcustomplot.h.
Referenced by drawTickLabel(), generateLabelParameterHash(), getTickLabelData(), getTickLabelDrawOffset(), QCPAxis::setTickLabelRotation(), and QCPAxis::tickLabelRotation().
| QVector<QString> tickLabels |
Definition at line 1359 of file qcustomplot.h.
Referenced by QCPAxis::calculateMargin(), QCPAxis::draw(), draw(), and size().
| QCPAxis::LabelSide tickLabelSide |
Definition at line 1345 of file qcustomplot.h.
Referenced by draw(), generateLabelParameterHash(), getTickLabelDrawOffset(), placeTickLabel(), QCPAxis::setTickLabelSide(), size(), and QCPAxis::tickLabelSide().
| int tickLengthIn |
Definition at line 1348 of file qcustomplot.h.
Referenced by draw(), QCPAxis::setTickLengthIn(), and QCPAxis::tickLengthIn().
| int tickLengthOut |
Definition at line 1348 of file qcustomplot.h.
Referenced by draw(), QCPAxis::setTickLengthOut(), size(), and QCPAxis::tickLengthOut().
| QPen tickPen |
Definition at line 1349 of file qcustomplot.h.
Referenced by QCPAxis::draw(), and draw().
| QVector<double> tickPositions |
Definition at line 1358 of file qcustomplot.h.
Referenced by QCPAxis::calculateMargin(), QCPAxis::draw(), draw(), and size().
| QCPAxis::AxisType type |
Definition at line 1336 of file qcustomplot.h.
Referenced by QCPAxis::calculateMargin(), QCPAxis::draw(), draw(), getTickLabelDrawOffset(), placeTickLabel(), and size().
| QCPLineEnding upperEnding |
Definition at line 1338 of file qcustomplot.h.
Referenced by draw(), QCPAxis::setUpperEnding(), and QCPAxis::upperEnding().
| QRect viewportRect |
Definition at line 1352 of file qcustomplot.h.
Referenced by QCPAxis::calculateMargin(), QCPAxis::draw(), and placeTickLabel().
1.8.5