Biomedical Image Analysis Library
The Biomedical Image Analysis Library is a poweful tool for developers, physicians, researchers, engineers, and so on.
QCPAxisPainterPrivate Class Reference

#include <qcustomplot.h>

Collaboration diagram for QCPAxisPainterPrivate:
Collaboration graph

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.


Class Documentation

struct QCPAxisPainterPrivate::CachedLabel

Definition at line 1362 of file qcustomplot.h.

Collaboration diagram for QCPAxisPainterPrivate::CachedLabel:
Collaboration graph
Class Members
QPointF offset
QPixmap pixmap
struct QCPAxisPainterPrivate::TickLabelData

Definition at line 1367 of file qcustomplot.h.

Collaboration diagram for QCPAxisPainterPrivate::TickLabelData:
Collaboration graph
Class Members
QRect baseBounds
QFont baseFont
QString basePart
QRect expBounds
QFont expFont
QString expPart
QRect rotatedTotalBounds
QRect totalBounds

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

QCPAxisPainterPrivate::~QCPAxisPainterPrivate ( )
virtual

Definition at line 6092 of file qcustomplot.cpp.

Member Function Documentation

QRect QCPAxisPainterPrivate::axisSelectionBox ( ) const
inline

Definition at line 1331 of file qcustomplot.h.

void QCPAxisPainterPrivate::clearCache ( )

Definition at line 6335 of file qcustomplot.cpp.

void QCPAxisPainterPrivate::draw ( QCPPainter painter)
virtual

Definition at line 6103 of file qcustomplot.cpp.

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

Definition at line 6456 of file qcustomplot.cpp.

QByteArray QCPAxisPainterPrivate::generateLabelParameterHash ( ) const
protectedvirtual

Definition at line 6347 of file qcustomplot.cpp.

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

Definition at line 6665 of file qcustomplot.cpp.

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

Definition at line 6493 of file qcustomplot.cpp.

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

Definition at line 6565 of file qcustomplot.cpp.

QRect QCPAxisPainterPrivate::labelSelectionBox ( ) const
inline

Definition at line 1333 of file qcustomplot.h.

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

Definition at line 6378 of file qcustomplot.cpp.

int QCPAxisPainterPrivate::size ( ) const
virtual

Definition at line 6296 of file qcustomplot.cpp.

QRect QCPAxisPainterPrivate::tickLabelsSelectionBox ( ) const
inline

Definition at line 1332 of file qcustomplot.h.

Member Data Documentation

bool QCPAxisPainterPrivate::abbreviateDecimalPowers

Definition at line 1354 of file qcustomplot.h.

QRect QCPAxisPainterPrivate::axisRect

Definition at line 1352 of file qcustomplot.h.

QPen QCPAxisPainterPrivate::basePen

Definition at line 1337 of file qcustomplot.h.

QString QCPAxisPainterPrivate::label

Definition at line 1342 of file qcustomplot.h.

QColor QCPAxisPainterPrivate::labelColor

Definition at line 1341 of file qcustomplot.h.

QFont QCPAxisPainterPrivate::labelFont

Definition at line 1340 of file qcustomplot.h.

int QCPAxisPainterPrivate::labelPadding

Definition at line 1339 of file qcustomplot.h.

QCPLineEnding QCPAxisPainterPrivate::lowerEnding

Definition at line 1338 of file qcustomplot.h.

QRect QCPAxisPainterPrivate::mAxisSelectionBox
protected

Definition at line 1376 of file qcustomplot.h.

QCache<QString, CachedLabel> QCPAxisPainterPrivate::mLabelCache
protected

Definition at line 1375 of file qcustomplot.h.

QByteArray QCPAxisPainterPrivate::mLabelParameterHash
protected

Definition at line 1374 of file qcustomplot.h.

QRect QCPAxisPainterPrivate::mLabelSelectionBox
protected

Definition at line 1376 of file qcustomplot.h.

QCustomPlot* QCPAxisPainterPrivate::mParentPlot
protected

Definition at line 1373 of file qcustomplot.h.

QRect QCPAxisPainterPrivate::mTickLabelsSelectionBox
protected

Definition at line 1376 of file qcustomplot.h.

bool QCPAxisPainterPrivate::numberMultiplyCross

Definition at line 1347 of file qcustomplot.h.

double QCPAxisPainterPrivate::offset

Definition at line 1353 of file qcustomplot.h.

bool QCPAxisPainterPrivate::reversedEndings

Definition at line 1355 of file qcustomplot.h.

bool QCPAxisPainterPrivate::substituteExponent

Definition at line 1346 of file qcustomplot.h.

int QCPAxisPainterPrivate::subTickLengthIn

Definition at line 1348 of file qcustomplot.h.

int QCPAxisPainterPrivate::subTickLengthOut

Definition at line 1348 of file qcustomplot.h.

QPen QCPAxisPainterPrivate::subTickPen

Definition at line 1349 of file qcustomplot.h.

QVector<double> QCPAxisPainterPrivate::subTickPositions

Definition at line 1357 of file qcustomplot.h.

QColor QCPAxisPainterPrivate::tickLabelColor

Definition at line 1351 of file qcustomplot.h.

QFont QCPAxisPainterPrivate::tickLabelFont

Definition at line 1350 of file qcustomplot.h.

int QCPAxisPainterPrivate::tickLabelPadding

Definition at line 1343 of file qcustomplot.h.

double QCPAxisPainterPrivate::tickLabelRotation

Definition at line 1344 of file qcustomplot.h.

QVector<QString> QCPAxisPainterPrivate::tickLabels

Definition at line 1359 of file qcustomplot.h.

QCPAxis::LabelSide QCPAxisPainterPrivate::tickLabelSide

Definition at line 1345 of file qcustomplot.h.

int QCPAxisPainterPrivate::tickLengthIn

Definition at line 1348 of file qcustomplot.h.

int QCPAxisPainterPrivate::tickLengthOut

Definition at line 1348 of file qcustomplot.h.

QPen QCPAxisPainterPrivate::tickPen

Definition at line 1349 of file qcustomplot.h.

QVector<double> QCPAxisPainterPrivate::tickPositions

Definition at line 1358 of file qcustomplot.h.

QCPAxis::AxisType QCPAxisPainterPrivate::type

Definition at line 1336 of file qcustomplot.h.

QCPLineEnding QCPAxisPainterPrivate::upperEnding

Definition at line 1338 of file qcustomplot.h.

QRect QCPAxisPainterPrivate::viewportRect

Definition at line 1352 of file qcustomplot.h.


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