SimCenterCommon
Common functionality used within different SimCenter projects
QCPAxisPainterPrivate Class Reference

#include <qcustomplot.h>

Collaboration diagram for QCPAxisPainterPrivate:

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

QCPAxisPainterPrivate::~QCPAxisPainterPrivate ( )
virtual

Definition at line 8953 of file qcustomplot.cpp.

Member Function Documentation

QRect QCPAxisPainterPrivate::axisSelectionBox ( ) const
inline

Definition at line 2196 of file qcustomplot.h.

void QCPAxisPainterPrivate::clearCache ( )

Definition at line 9196 of file qcustomplot.cpp.

void QCPAxisPainterPrivate::draw ( QCPPainter painter)
virtual

Definition at line 8964 of file qcustomplot.cpp.

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

Definition at line 9326 of file qcustomplot.cpp.

QByteArray QCPAxisPainterPrivate::generateLabelParameterHash ( ) const
protectedvirtual

Definition at line 9208 of file qcustomplot.cpp.

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

Definition at line 9547 of file qcustomplot.cpp.

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

Definition at line 9365 of file qcustomplot.cpp.

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

Definition at line 9447 of file qcustomplot.cpp.

QRect QCPAxisPainterPrivate::labelSelectionBox ( ) const
inline

Definition at line 2198 of file qcustomplot.h.

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

Definition at line 9240 of file qcustomplot.cpp.

int QCPAxisPainterPrivate::size ( ) const
virtual

Definition at line 9157 of file qcustomplot.cpp.

QRect QCPAxisPainterPrivate::tickLabelsSelectionBox ( ) const
inline

Definition at line 2197 of file qcustomplot.h.

Member Data Documentation

bool QCPAxisPainterPrivate::abbreviateDecimalPowers

Definition at line 2219 of file qcustomplot.h.

QRect QCPAxisPainterPrivate::axisRect

Definition at line 2217 of file qcustomplot.h.

QPen QCPAxisPainterPrivate::basePen

Definition at line 2202 of file qcustomplot.h.

QString QCPAxisPainterPrivate::label

Definition at line 2207 of file qcustomplot.h.

QColor QCPAxisPainterPrivate::labelColor

Definition at line 2206 of file qcustomplot.h.

QFont QCPAxisPainterPrivate::labelFont

Definition at line 2205 of file qcustomplot.h.

int QCPAxisPainterPrivate::labelPadding

Definition at line 2204 of file qcustomplot.h.

QCPLineEnding QCPAxisPainterPrivate::lowerEnding

Definition at line 2203 of file qcustomplot.h.

QRect QCPAxisPainterPrivate::mAxisSelectionBox
protected

Definition at line 2241 of file qcustomplot.h.

QCache<QString, CachedLabel> QCPAxisPainterPrivate::mLabelCache
protected

Definition at line 2240 of file qcustomplot.h.

QByteArray QCPAxisPainterPrivate::mLabelParameterHash
protected

Definition at line 2239 of file qcustomplot.h.

QRect QCPAxisPainterPrivate::mLabelSelectionBox
protected

Definition at line 2241 of file qcustomplot.h.

QCustomPlot* QCPAxisPainterPrivate::mParentPlot
protected

Definition at line 2238 of file qcustomplot.h.

QRect QCPAxisPainterPrivate::mTickLabelsSelectionBox
protected

Definition at line 2241 of file qcustomplot.h.

bool QCPAxisPainterPrivate::numberMultiplyCross

Definition at line 2212 of file qcustomplot.h.

double QCPAxisPainterPrivate::offset

Definition at line 2218 of file qcustomplot.h.

bool QCPAxisPainterPrivate::reversedEndings

Definition at line 2220 of file qcustomplot.h.

bool QCPAxisPainterPrivate::substituteExponent

Definition at line 2211 of file qcustomplot.h.

int QCPAxisPainterPrivate::subTickLengthIn

Definition at line 2213 of file qcustomplot.h.

int QCPAxisPainterPrivate::subTickLengthOut

Definition at line 2213 of file qcustomplot.h.

QPen QCPAxisPainterPrivate::subTickPen

Definition at line 2214 of file qcustomplot.h.

QVector<double> QCPAxisPainterPrivate::subTickPositions

Definition at line 2222 of file qcustomplot.h.

QColor QCPAxisPainterPrivate::tickLabelColor

Definition at line 2216 of file qcustomplot.h.

QFont QCPAxisPainterPrivate::tickLabelFont

Definition at line 2215 of file qcustomplot.h.

int QCPAxisPainterPrivate::tickLabelPadding

Definition at line 2208 of file qcustomplot.h.

double QCPAxisPainterPrivate::tickLabelRotation

Definition at line 2209 of file qcustomplot.h.

QVector<QString> QCPAxisPainterPrivate::tickLabels

Definition at line 2224 of file qcustomplot.h.

QCPAxis::LabelSide QCPAxisPainterPrivate::tickLabelSide

Definition at line 2210 of file qcustomplot.h.

int QCPAxisPainterPrivate::tickLengthIn

Definition at line 2213 of file qcustomplot.h.

int QCPAxisPainterPrivate::tickLengthOut

Definition at line 2213 of file qcustomplot.h.

QPen QCPAxisPainterPrivate::tickPen

Definition at line 2214 of file qcustomplot.h.

QVector<double> QCPAxisPainterPrivate::tickPositions

Definition at line 2223 of file qcustomplot.h.

QCPAxis::AxisType QCPAxisPainterPrivate::type

Definition at line 2201 of file qcustomplot.h.

QCPLineEnding QCPAxisPainterPrivate::upperEnding

Definition at line 2203 of file qcustomplot.h.

QRect QCPAxisPainterPrivate::viewportRect

Definition at line 2217 of file qcustomplot.h.


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