SETestKCL  1.0.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
QCPAxisPainterPrivate Class Reference

#include <qcustomplot.h>

Collaboration diagram for QCPAxisPainterPrivate:
Collaboration graph
[legend]

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 1321 of file qcustomplot.h.

Constructor & Destructor Documentation

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 6062 of file qcustomplot.cpp.

~QCPAxisPainterPrivate ( )
virtual

Definition at line 6087 of file qcustomplot.cpp.

Member Function Documentation

QRect axisSelectionBox ( ) const
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.

void draw ( QCPPainter painter)
virtual
void drawTickLabel ( QCPPainter painter,
double  x,
double  y,
const TickLabelData labelData 
) const
protectedvirtual
QByteArray generateLabelParameterHash ( ) const
protectedvirtual
void getMaxTickLabelSize ( const QFont &  font,
const QString &  text,
QSize *  tickLabelsSize 
) const
protectedvirtual
QCPAxisPainterPrivate::TickLabelData getTickLabelData ( const QFont &  font,
const QString &  text 
) const
protectedvirtual
QPointF getTickLabelDrawOffset ( const TickLabelData labelData) const
protectedvirtual
QRect labelSelectionBox ( ) const
inline

Definition at line 1333 of file qcustomplot.h.

Referenced by QCPAxis::getPartAt().

void placeTickLabel ( QCPPainter painter,
double  position,
int  distanceToAxis,
const QString &  text,
QSize *  tickLabelsSize 
)
protectedvirtual
int size ( ) const
virtual
QRect tickLabelsSelectionBox ( ) const
inline

Definition at line 1332 of file qcustomplot.h.

Referenced by QCPAxis::getPartAt().

Member Data Documentation

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().

QRect mAxisSelectionBox
protected

Definition at line 1376 of file qcustomplot.h.

Referenced by draw().

QCache<QString, CachedLabel> mLabelCache
protected

Definition at line 1375 of file qcustomplot.h.

Referenced by clearCache(), draw(), getMaxTickLabelSize(), and placeTickLabel().

QByteArray mLabelParameterHash
protected

Definition at line 1374 of file qcustomplot.h.

Referenced by draw().

QRect mLabelSelectionBox
protected

Definition at line 1376 of file qcustomplot.h.

Referenced by draw().

QCustomPlot* mParentPlot
protected

Definition at line 1373 of file qcustomplot.h.

Referenced by draw(), getMaxTickLabelSize(), and placeTickLabel().

QRect mTickLabelsSelectionBox
protected

Definition at line 1376 of file qcustomplot.h.

Referenced by draw().

bool numberMultiplyCross
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
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
int tickLabelPadding
double tickLabelRotation
QVector<QString> tickLabels

Definition at line 1359 of file qcustomplot.h.

Referenced by QCPAxis::calculateMargin(), QCPAxis::draw(), draw(), and size().

QCPAxis::LabelSide 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().

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().


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