iCub-main
Classes | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
QCPAxisPainterPrivate Class Reference

#include <qcustomplot.h>

Classes

struct  CachedLabel
 
struct  TickLabelData
 

Public Member Functions

 QCPAxisPainterPrivate (QCustomPlot *parentPlot)
 Constructs a QCPAxisPainterPrivate instance. More...
 
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
 
bool substituteExponent
 
bool numberMultiplyCross
 
int tickLengthIn
 
int tickLengthOut
 
int subTickLengthIn
 
int subTickLengthOut
 
QPen tickPen
 
QPen subTickPen
 
QFont tickLabelFont
 
QColor tickLabelColor
 
QRect alignmentRect
 
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 1308 of file qcustomplot.h.

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.

Definition at line 6161 of file qcustomplot.cpp.

◆ ~QCPAxisPainterPrivate()

QCPAxisPainterPrivate::~QCPAxisPainterPrivate ( )
virtual

Definition at line 6185 of file qcustomplot.cpp.

Member Function Documentation

◆ axisSelectionBox()

QRect QCPAxisPainterPrivate::axisSelectionBox ( ) const
inline

Definition at line 1318 of file qcustomplot.h.

◆ clearCache()

void QCPAxisPainterPrivate::clearCache ( )

Definition at line 6404 of file qcustomplot.cpp.

◆ draw()

void QCPAxisPainterPrivate::draw ( QCPPainter painter)
virtual

Definition at line 6196 of file qcustomplot.cpp.

◆ drawTickLabel()

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

Definition at line 6526 of file qcustomplot.cpp.

◆ generateLabelParameterHash()

QByteArray QCPAxisPainterPrivate::generateLabelParameterHash ( ) const
protectedvirtual

Definition at line 6416 of file qcustomplot.cpp.

◆ getMaxTickLabelSize()

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

Definition at line 6732 of file qcustomplot.cpp.

◆ getTickLabelData()

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

Definition at line 6563 of file qcustomplot.cpp.

◆ getTickLabelDrawOffset()

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

Definition at line 6632 of file qcustomplot.cpp.

◆ labelSelectionBox()

QRect QCPAxisPainterPrivate::labelSelectionBox ( ) const
inline

Definition at line 1320 of file qcustomplot.h.

◆ placeTickLabel()

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

Definition at line 6446 of file qcustomplot.cpp.

◆ size()

int QCPAxisPainterPrivate::size ( ) const
virtual

Definition at line 6368 of file qcustomplot.cpp.

◆ tickLabelsSelectionBox()

QRect QCPAxisPainterPrivate::tickLabelsSelectionBox ( ) const
inline

Definition at line 1319 of file qcustomplot.h.

Member Data Documentation

◆ abbreviateDecimalPowers

bool QCPAxisPainterPrivate::abbreviateDecimalPowers

Definition at line 1340 of file qcustomplot.h.

◆ alignmentRect

QRect QCPAxisPainterPrivate::alignmentRect

Definition at line 1338 of file qcustomplot.h.

◆ basePen

QPen QCPAxisPainterPrivate::basePen

Definition at line 1324 of file qcustomplot.h.

◆ label

QString QCPAxisPainterPrivate::label

Definition at line 1329 of file qcustomplot.h.

◆ labelColor

QColor QCPAxisPainterPrivate::labelColor

Definition at line 1328 of file qcustomplot.h.

◆ labelFont

QFont QCPAxisPainterPrivate::labelFont

Definition at line 1327 of file qcustomplot.h.

◆ labelPadding

int QCPAxisPainterPrivate::labelPadding

Definition at line 1326 of file qcustomplot.h.

◆ lowerEnding

QCPLineEnding QCPAxisPainterPrivate::lowerEnding

Definition at line 1325 of file qcustomplot.h.

◆ mAxisSelectionBox

QRect QCPAxisPainterPrivate::mAxisSelectionBox
protected

Definition at line 1362 of file qcustomplot.h.

◆ mLabelCache

QCache<QString, CachedLabel> QCPAxisPainterPrivate::mLabelCache
protected

Definition at line 1361 of file qcustomplot.h.

◆ mLabelParameterHash

QByteArray QCPAxisPainterPrivate::mLabelParameterHash
protected

Definition at line 1360 of file qcustomplot.h.

◆ mLabelSelectionBox

QRect QCPAxisPainterPrivate::mLabelSelectionBox
protected

Definition at line 1362 of file qcustomplot.h.

◆ mParentPlot

QCustomPlot* QCPAxisPainterPrivate::mParentPlot
protected

Definition at line 1359 of file qcustomplot.h.

◆ mTickLabelsSelectionBox

QRect QCPAxisPainterPrivate::mTickLabelsSelectionBox
protected

Definition at line 1362 of file qcustomplot.h.

◆ numberMultiplyCross

bool QCPAxisPainterPrivate::numberMultiplyCross

Definition at line 1333 of file qcustomplot.h.

◆ offset

double QCPAxisPainterPrivate::offset

Definition at line 1339 of file qcustomplot.h.

◆ reversedEndings

bool QCPAxisPainterPrivate::reversedEndings

Definition at line 1341 of file qcustomplot.h.

◆ substituteExponent

bool QCPAxisPainterPrivate::substituteExponent

Definition at line 1332 of file qcustomplot.h.

◆ subTickLengthIn

int QCPAxisPainterPrivate::subTickLengthIn

Definition at line 1334 of file qcustomplot.h.

◆ subTickLengthOut

int QCPAxisPainterPrivate::subTickLengthOut

Definition at line 1334 of file qcustomplot.h.

◆ subTickPen

QPen QCPAxisPainterPrivate::subTickPen

Definition at line 1335 of file qcustomplot.h.

◆ subTickPositions

QVector<double> QCPAxisPainterPrivate::subTickPositions

Definition at line 1343 of file qcustomplot.h.

◆ tickLabelColor

QColor QCPAxisPainterPrivate::tickLabelColor

Definition at line 1337 of file qcustomplot.h.

◆ tickLabelFont

QFont QCPAxisPainterPrivate::tickLabelFont

Definition at line 1336 of file qcustomplot.h.

◆ tickLabelPadding

int QCPAxisPainterPrivate::tickLabelPadding

Definition at line 1330 of file qcustomplot.h.

◆ tickLabelRotation

double QCPAxisPainterPrivate::tickLabelRotation

Definition at line 1331 of file qcustomplot.h.

◆ tickLabels

QVector<QString> QCPAxisPainterPrivate::tickLabels

Definition at line 1345 of file qcustomplot.h.

◆ tickLengthIn

int QCPAxisPainterPrivate::tickLengthIn

Definition at line 1334 of file qcustomplot.h.

◆ tickLengthOut

int QCPAxisPainterPrivate::tickLengthOut

Definition at line 1334 of file qcustomplot.h.

◆ tickPen

QPen QCPAxisPainterPrivate::tickPen

Definition at line 1335 of file qcustomplot.h.

◆ tickPositions

QVector<double> QCPAxisPainterPrivate::tickPositions

Definition at line 1344 of file qcustomplot.h.

◆ type

QCPAxis::AxisType QCPAxisPainterPrivate::type

Definition at line 1323 of file qcustomplot.h.

◆ upperEnding

QCPLineEnding QCPAxisPainterPrivate::upperEnding

Definition at line 1325 of file qcustomplot.h.

◆ viewportRect

QRect QCPAxisPainterPrivate::viewportRect

Definition at line 1338 of file qcustomplot.h.


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