Cute Chess  0.1
Classes | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
QCPAxisPainterPrivate Class Reference

Classes

struct  CachedLabel
 
struct  TickLabelData
 

Public Member Functions

QRect axisSelectionBox () const
 
void clearCache ()
 
virtual void draw (QCPPainter *painter)
 
QRect labelSelectionBox () const
 
 QCPAxisPainterPrivate (QCustomPlot *parentPlot)
 
virtual int size () const
 
QRect tickLabelsSelectionBox () const
 

Public Attributes

bool abbreviateDecimalPowers
 
QRect axisRect
 
QPen basePen
 
QString label
 
QColor labelColor
 
QFont labelFont
 
int labelPadding
 
QCPLineEnding lowerEnding
 
bool numberMultiplyCross
 
double offset
 
bool reversedEndings
 
bool substituteExponent
 
int subTickLengthIn
 
int subTickLengthOut
 
QPen subTickPen
 
QVector< double > subTickPositions
 
QColor tickLabelColor
 
QFont tickLabelFont
 
int tickLabelPadding
 
double tickLabelRotation
 
QVector< QStringtickLabels
 
QCPAxis::LabelSide tickLabelSide
 
int tickLengthIn
 
int tickLengthOut
 
QPen tickPen
 
QVector< double > tickPositions
 
QCPAxis::AxisType type
 
QCPLineEnding upperEnding
 
QRect viewportRect
 

Protected Member Functions

virtual void drawTickLabel (QCPPainter *painter, double x, double y, const TickLabelData &labelData) const
 
virtual QByteArray generateLabelParameterHash () const
 
virtual void getMaxTickLabelSize (const QFont &font, const QString &text, QSize *tickLabelsSize) const
 
virtual TickLabelData getTickLabelData (const QFont &font, const QString &text) const
 
virtual QPointF getTickLabelDrawOffset (const TickLabelData &labelData) const
 
virtual void placeTickLabel (QCPPainter *painter, double position, int distanceToAxis, const QString &text, QSize *tickLabelsSize)
 

Protected Attributes

QRect mAxisSelectionBox
 
QCache< QString, CachedLabelmLabelCache
 
QByteArray mLabelParameterHash
 
QRect mLabelSelectionBox
 
QCustomPlotmParentPlot
 
QRect mTickLabelsSelectionBox
 

Constructor & Destructor Documentation

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: