Vespucci  1.0.0
QCPAxisPainterPrivate Class Reference

#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

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

Detailed Description

Definition at line 1326 of file qcustomplot.h.

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.

Definition at line 6072 of file qcustomplot.cpp.

QCPAxisPainterPrivate::~QCPAxisPainterPrivate ( )
virtual

Definition at line 6097 of file qcustomplot.cpp.

Member Function Documentation

QRect QCPAxisPainterPrivate::axisSelectionBox ( ) const
inline

Definition at line 1336 of file qcustomplot.h.

void QCPAxisPainterPrivate::clearCache ( )

Definition at line 6341 of file qcustomplot.cpp.

void QCPAxisPainterPrivate::draw ( QCPPainter painter)
virtual

Definition at line 6108 of file qcustomplot.cpp.

void QCPAxisPainterPrivate::drawTickLabel ( QCPPainter painter,
double  x,
double  y,
const TickLabelData labelData 
) const
protectedvirtual

Definition at line 6469 of file qcustomplot.cpp.

QByteArray QCPAxisPainterPrivate::generateLabelParameterHash ( ) const
protectedvirtual

Definition at line 6353 of file qcustomplot.cpp.

void QCPAxisPainterPrivate::getMaxTickLabelSize ( const QFont &  font,
const QString &  text,
QSize *  tickLabelsSize 
) const
protectedvirtual

Definition at line 6675 of file qcustomplot.cpp.

QCPAxisPainterPrivate::TickLabelData QCPAxisPainterPrivate::getTickLabelData ( const QFont &  font,
const QString &  text 
) const
protectedvirtual

Definition at line 6506 of file qcustomplot.cpp.

QPointF QCPAxisPainterPrivate::getTickLabelDrawOffset ( const TickLabelData labelData) const
protectedvirtual

Definition at line 6575 of file qcustomplot.cpp.

QRect QCPAxisPainterPrivate::labelSelectionBox ( ) const
inline

Definition at line 1338 of file qcustomplot.h.

void QCPAxisPainterPrivate::placeTickLabel ( QCPPainter painter,
double  position,
int  distanceToAxis,
const QString &  text,
QSize *  tickLabelsSize 
)
protectedvirtual

Definition at line 6384 of file qcustomplot.cpp.

int QCPAxisPainterPrivate::size ( ) const
virtual

Definition at line 6302 of file qcustomplot.cpp.

QRect QCPAxisPainterPrivate::tickLabelsSelectionBox ( ) const
inline

Definition at line 1337 of file qcustomplot.h.

Member Data Documentation

bool QCPAxisPainterPrivate::abbreviateDecimalPowers

Definition at line 1359 of file qcustomplot.h.

QRect QCPAxisPainterPrivate::axisRect

Definition at line 1357 of file qcustomplot.h.

QPen QCPAxisPainterPrivate::basePen

Definition at line 1342 of file qcustomplot.h.

QString QCPAxisPainterPrivate::label

Definition at line 1347 of file qcustomplot.h.

QColor QCPAxisPainterPrivate::labelColor

Definition at line 1346 of file qcustomplot.h.

QFont QCPAxisPainterPrivate::labelFont

Definition at line 1345 of file qcustomplot.h.

int QCPAxisPainterPrivate::labelPadding

Definition at line 1344 of file qcustomplot.h.

QCPLineEnding QCPAxisPainterPrivate::lowerEnding

Definition at line 1343 of file qcustomplot.h.

QRect QCPAxisPainterPrivate::mAxisSelectionBox
protected

Definition at line 1381 of file qcustomplot.h.

QCache<QString, CachedLabel> QCPAxisPainterPrivate::mLabelCache
protected

Definition at line 1380 of file qcustomplot.h.

QByteArray QCPAxisPainterPrivate::mLabelParameterHash
protected

Definition at line 1379 of file qcustomplot.h.

QRect QCPAxisPainterPrivate::mLabelSelectionBox
protected

Definition at line 1381 of file qcustomplot.h.

QCustomPlot* QCPAxisPainterPrivate::mParentPlot
protected

Definition at line 1378 of file qcustomplot.h.

QRect QCPAxisPainterPrivate::mTickLabelsSelectionBox
protected

Definition at line 1381 of file qcustomplot.h.

bool QCPAxisPainterPrivate::numberMultiplyCross

Definition at line 1352 of file qcustomplot.h.

double QCPAxisPainterPrivate::offset

Definition at line 1358 of file qcustomplot.h.

bool QCPAxisPainterPrivate::reversedEndings

Definition at line 1360 of file qcustomplot.h.

bool QCPAxisPainterPrivate::substituteExponent

Definition at line 1351 of file qcustomplot.h.

int QCPAxisPainterPrivate::subTickLengthIn

Definition at line 1353 of file qcustomplot.h.

int QCPAxisPainterPrivate::subTickLengthOut

Definition at line 1353 of file qcustomplot.h.

QPen QCPAxisPainterPrivate::subTickPen

Definition at line 1354 of file qcustomplot.h.

QVector<double> QCPAxisPainterPrivate::subTickPositions

Definition at line 1362 of file qcustomplot.h.

QColor QCPAxisPainterPrivate::tickLabelColor

Definition at line 1356 of file qcustomplot.h.

QFont QCPAxisPainterPrivate::tickLabelFont

Definition at line 1355 of file qcustomplot.h.

int QCPAxisPainterPrivate::tickLabelPadding

Definition at line 1348 of file qcustomplot.h.

double QCPAxisPainterPrivate::tickLabelRotation

Definition at line 1349 of file qcustomplot.h.

QVector<QString> QCPAxisPainterPrivate::tickLabels

Definition at line 1364 of file qcustomplot.h.

QCPAxis::LabelSide QCPAxisPainterPrivate::tickLabelSide

Definition at line 1350 of file qcustomplot.h.

int QCPAxisPainterPrivate::tickLengthIn

Definition at line 1353 of file qcustomplot.h.

int QCPAxisPainterPrivate::tickLengthOut

Definition at line 1353 of file qcustomplot.h.

QPen QCPAxisPainterPrivate::tickPen

Definition at line 1354 of file qcustomplot.h.

QVector<double> QCPAxisPainterPrivate::tickPositions

Definition at line 1363 of file qcustomplot.h.

QCPAxis::AxisType QCPAxisPainterPrivate::type

Definition at line 1341 of file qcustomplot.h.

QCPLineEnding QCPAxisPainterPrivate::upperEnding

Definition at line 1343 of file qcustomplot.h.

QRect QCPAxisPainterPrivate::viewportRect

Definition at line 1357 of file qcustomplot.h.


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