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

QRect axisSelectionBox () const
 
void clearCache ()
 
virtual void draw (QCPPainter *painter)
 
QRect labelSelectionBox () const
 
 QCPAxisPainterPrivate (QCustomPlot *parentPlot)
 
virtual int size () const
 
QRect tickLabelsSelectionBox () const
 
virtual ~QCPAxisPainterPrivate ()
 

Public Attributes

bool abbreviateDecimalPowers
 
QRect axisRect
 
QPen basePen
 
QString label
 
QColor labelColor
 
QFont labelFont
 
int labelPadding
 
QCPLineEnding lowerEnding
 
bool numberMultiplyCross
 
double offset
 
bool reversedEndings
 
bool substituteExponent
 
int subTickLengthIn
 
int subTickLengthOut
 
QPen subTickPen
 
QVector< double > subTickPositions
 
QColor tickLabelColor
 
QFont tickLabelFont
 
int tickLabelPadding
 
double tickLabelRotation
 
QVector< QString > tickLabels
 
QCPAxis::LabelSide tickLabelSide
 
int tickLengthIn
 
int tickLengthOut
 
QPen tickPen
 
QVector< double > tickPositions
 
QCPAxis::AxisType type
 
QCPLineEnding upperEnding
 
QRect viewportRect
 

Protected Member Functions

virtual void drawTickLabel (QCPPainter *painter, double x, double y, const TickLabelData &labelData) const
 
virtual QByteArray generateLabelParameterHash () const
 
virtual void getMaxTickLabelSize (const QFont &font, const QString &text, QSize *tickLabelsSize) const
 
virtual TickLabelData getTickLabelData (const QFont &font, const QString &text) const
 
virtual QPointF getTickLabelDrawOffset (const TickLabelData &labelData) const
 
virtual void placeTickLabel (QCPPainter *painter, double position, int distanceToAxis, const QString &text, QSize *tickLabelsSize)
 

Protected Attributes

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

Detailed Description

Definition at line 2224 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 9187 of file qcustomplot.cpp.

◆ ~QCPAxisPainterPrivate()

QCPAxisPainterPrivate::~QCPAxisPainterPrivate ( )
virtual

Definition at line 9212 of file qcustomplot.cpp.

Member Function Documentation

◆ axisSelectionBox()

QRect QCPAxisPainterPrivate::axisSelectionBox ( ) const
inline

Definition at line 2234 of file qcustomplot.h.

◆ clearCache()

void QCPAxisPainterPrivate::clearCache ( )

Definition at line 9455 of file qcustomplot.cpp.

◆ draw()

void QCPAxisPainterPrivate::draw ( QCPPainter painter)
virtual

Definition at line 9223 of file qcustomplot.cpp.

◆ drawTickLabel()

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

Definition at line 9588 of file qcustomplot.cpp.

◆ generateLabelParameterHash()

QByteArray QCPAxisPainterPrivate::generateLabelParameterHash ( ) const
protectedvirtual

Definition at line 9467 of file qcustomplot.cpp.

◆ getMaxTickLabelSize()

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

Definition at line 9809 of file qcustomplot.cpp.

◆ getTickLabelData()

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

Definition at line 9627 of file qcustomplot.cpp.

◆ getTickLabelDrawOffset()

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

Definition at line 9709 of file qcustomplot.cpp.

◆ labelSelectionBox()

QRect QCPAxisPainterPrivate::labelSelectionBox ( ) const
inline

Definition at line 2236 of file qcustomplot.h.

◆ placeTickLabel()

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

Definition at line 9499 of file qcustomplot.cpp.

◆ size()

int QCPAxisPainterPrivate::size ( ) const
virtual

Definition at line 9416 of file qcustomplot.cpp.

◆ tickLabelsSelectionBox()

QRect QCPAxisPainterPrivate::tickLabelsSelectionBox ( ) const
inline

Definition at line 2235 of file qcustomplot.h.

Member Data Documentation

◆ abbreviateDecimalPowers

bool QCPAxisPainterPrivate::abbreviateDecimalPowers

Definition at line 2257 of file qcustomplot.h.

◆ axisRect

QRect QCPAxisPainterPrivate::axisRect

Definition at line 2255 of file qcustomplot.h.

◆ basePen

QPen QCPAxisPainterPrivate::basePen

Definition at line 2240 of file qcustomplot.h.

◆ label

QString QCPAxisPainterPrivate::label

Definition at line 2245 of file qcustomplot.h.

◆ labelColor

QColor QCPAxisPainterPrivate::labelColor

Definition at line 2244 of file qcustomplot.h.

◆ labelFont

QFont QCPAxisPainterPrivate::labelFont

Definition at line 2243 of file qcustomplot.h.

◆ labelPadding

int QCPAxisPainterPrivate::labelPadding

Definition at line 2242 of file qcustomplot.h.

◆ lowerEnding

QCPLineEnding QCPAxisPainterPrivate::lowerEnding

Definition at line 2241 of file qcustomplot.h.

◆ mAxisSelectionBox

QRect QCPAxisPainterPrivate::mAxisSelectionBox
protected

Definition at line 2279 of file qcustomplot.h.

◆ mLabelCache

QCache<QString, CachedLabel> QCPAxisPainterPrivate::mLabelCache
protected

Definition at line 2278 of file qcustomplot.h.

◆ mLabelParameterHash

QByteArray QCPAxisPainterPrivate::mLabelParameterHash
protected

Definition at line 2277 of file qcustomplot.h.

◆ mLabelSelectionBox

QRect QCPAxisPainterPrivate::mLabelSelectionBox
protected

Definition at line 2279 of file qcustomplot.h.

◆ mParentPlot

QCustomPlot* QCPAxisPainterPrivate::mParentPlot
protected

Definition at line 2276 of file qcustomplot.h.

◆ mTickLabelsSelectionBox

QRect QCPAxisPainterPrivate::mTickLabelsSelectionBox
protected

Definition at line 2279 of file qcustomplot.h.

◆ numberMultiplyCross

bool QCPAxisPainterPrivate::numberMultiplyCross

Definition at line 2250 of file qcustomplot.h.

◆ offset

double QCPAxisPainterPrivate::offset

Definition at line 2256 of file qcustomplot.h.

◆ reversedEndings

bool QCPAxisPainterPrivate::reversedEndings

Definition at line 2258 of file qcustomplot.h.

◆ substituteExponent

bool QCPAxisPainterPrivate::substituteExponent

Definition at line 2249 of file qcustomplot.h.

◆ subTickLengthIn

int QCPAxisPainterPrivate::subTickLengthIn

Definition at line 2251 of file qcustomplot.h.

◆ subTickLengthOut

int QCPAxisPainterPrivate::subTickLengthOut

Definition at line 2251 of file qcustomplot.h.

◆ subTickPen

QPen QCPAxisPainterPrivate::subTickPen

Definition at line 2252 of file qcustomplot.h.

◆ subTickPositions

QVector<double> QCPAxisPainterPrivate::subTickPositions

Definition at line 2260 of file qcustomplot.h.

◆ tickLabelColor

QColor QCPAxisPainterPrivate::tickLabelColor

Definition at line 2254 of file qcustomplot.h.

◆ tickLabelFont

QFont QCPAxisPainterPrivate::tickLabelFont

Definition at line 2253 of file qcustomplot.h.

◆ tickLabelPadding

int QCPAxisPainterPrivate::tickLabelPadding

Definition at line 2246 of file qcustomplot.h.

◆ tickLabelRotation

double QCPAxisPainterPrivate::tickLabelRotation

Definition at line 2247 of file qcustomplot.h.

◆ tickLabels

QVector<QString> QCPAxisPainterPrivate::tickLabels

Definition at line 2262 of file qcustomplot.h.

◆ tickLabelSide

QCPAxis::LabelSide QCPAxisPainterPrivate::tickLabelSide

Definition at line 2248 of file qcustomplot.h.

◆ tickLengthIn

int QCPAxisPainterPrivate::tickLengthIn

Definition at line 2251 of file qcustomplot.h.

◆ tickLengthOut

int QCPAxisPainterPrivate::tickLengthOut

Definition at line 2251 of file qcustomplot.h.

◆ tickPen

QPen QCPAxisPainterPrivate::tickPen

Definition at line 2252 of file qcustomplot.h.

◆ tickPositions

QVector<double> QCPAxisPainterPrivate::tickPositions

Definition at line 2261 of file qcustomplot.h.

◆ type

QCPAxis::AxisType QCPAxisPainterPrivate::type

Definition at line 2239 of file qcustomplot.h.

◆ upperEnding

QCPLineEnding QCPAxisPainterPrivate::upperEnding

Definition at line 2241 of file qcustomplot.h.

◆ viewportRect

QRect QCPAxisPainterPrivate::viewportRect

Definition at line 2255 of file qcustomplot.h.


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


graph_rviz_plugin
Author(s): Édouard Pronier, Victor Lamoine - Institut Maupertuis
autogenerated on Mon Feb 28 2022 22:27:30