EtherCAT Graphical User Interface Code 0.0.1
EtherCAT GUI that uses different communication protocols with EtherCAT Master server.
Loading...
Searching...
No Matches
QCPAxisPainterPrivate Class Reference
Collaboration diagram for QCPAxisPainterPrivate:
Collaboration graph

Classes

struct  CachedLabel
struct  TickLabelData

Public Member Functions

 QCPAxisPainterPrivate (QCustomPlot *parentPlot)
virtual void draw (QCPPainter *painter)
virtual int size ()
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
int 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

Constructor & Destructor Documentation

◆ QCPAxisPainterPrivate()

QCPAxisPainterPrivate::QCPAxisPainterPrivate ( QCustomPlot * parentPlot)
explicit

Constructs a QCPAxisPainterPrivate instance. Make sure to not create a new instance on every redraw, to utilize the caching mechanisms.


The documentation for this class was generated from the following files: