QCPAxisTickerText Class Reference

#include </home/florent/devel/release/src/gepetto-viewer/plugins/pyqcustomplot/qcustomplot-2.0.1/qcustomplot.h>

Inheritance diagram for QCPAxisTickerText:
Collaboration diagram for QCPAxisTickerText:

Public Member Functions

 QCPAxisTickerText ()
 
QMap< double, QString > & ticks ()
 
int subTickCount () const
 
void setTicks (const QMap< double, QString > &ticks)
 
void setTicks (const QVector< double > &positions, const QVector< QString > &labels)
 
void setSubTickCount (int subTicks)
 
void clear ()
 
void addTick (double position, const QString &label)
 
void addTicks (const QMap< double, QString > &ticks)
 
void addTicks (const QVector< double > &positions, const QVector< QString > &labels)
 
- Public Member Functions inherited from QCPAxisTicker
 QCPAxisTicker ()
 
virtual ~QCPAxisTicker ()
 
TickStepStrategy tickStepStrategy () const
 
int tickCount () const
 
double tickOrigin () const
 
void setTickStepStrategy (TickStepStrategy strategy)
 
void setTickCount (int count)
 
void setTickOrigin (double origin)
 
virtual void generate (const QCPRange &range, const QLocale &locale, QChar formatChar, int precision, QVector< double > &ticks, QVector< double > *subTicks, QVector< QString > *tickLabels)
 

Protected Member Functions

virtual double getTickStep (const QCPRange &range) Q_DECL_OVERRIDE
 
virtual int getSubTickCount (double tickStep) Q_DECL_OVERRIDE
 
virtual QString getTickLabel (double tick, const QLocale &locale, QChar formatChar, int precision) Q_DECL_OVERRIDE
 
virtual QVector< double > createTickVector (double tickStep, const QCPRange &range) Q_DECL_OVERRIDE
 
- Protected Member Functions inherited from QCPAxisTicker
virtual QVector< double > createSubTickVector (int subTickCount, const QVector< double > &ticks)
 
virtual QVector< QString > createLabelVector (const QVector< double > &ticks, const QLocale &locale, QChar formatChar, int precision)
 
void trimTicks (const QCPRange &range, QVector< double > &ticks, bool keepOneOutlier) const
 
double pickClosest (double target, const QVector< double > &candidates) const
 
double getMantissa (double input, double *magnitude=0) const
 
double cleanMantissa (double input) const
 

Protected Attributes

QMap< double, QString > mTicks
 
int mSubTickCount
 
- Protected Attributes inherited from QCPAxisTicker
TickStepStrategy mTickStepStrategy
 
int mTickCount
 
double mTickOrigin
 

Additional Inherited Members

- Public Types inherited from QCPAxisTicker
enum  TickStepStrategy { tssReadability, tssMeetTickCount }
 

Constructor & Destructor Documentation

◆ QCPAxisTickerText()

QCPAxisTickerText::QCPAxisTickerText ( )

Member Function Documentation

◆ addTick()

void QCPAxisTickerText::addTick ( double  position,
const QString &  label 
)

◆ addTicks() [1/2]

void QCPAxisTickerText::addTicks ( const QMap< double, QString > &  ticks)

◆ addTicks() [2/2]

void QCPAxisTickerText::addTicks ( const QVector< double > &  positions,
const QVector< QString > &  labels 
)

◆ clear()

void QCPAxisTickerText::clear ( )

◆ createTickVector()

virtual QVector<double> QCPAxisTickerText::createTickVector ( double  tickStep,
const QCPRange range 
)
protectedvirtual

Reimplemented from QCPAxisTicker.

◆ getSubTickCount()

virtual int QCPAxisTickerText::getSubTickCount ( double  tickStep)
protectedvirtual

Reimplemented from QCPAxisTicker.

◆ getTickLabel()

virtual QString QCPAxisTickerText::getTickLabel ( double  tick,
const QLocale &  locale,
QChar  formatChar,
int  precision 
)
protectedvirtual

Reimplemented from QCPAxisTicker.

◆ getTickStep()

virtual double QCPAxisTickerText::getTickStep ( const QCPRange range)
protectedvirtual

Reimplemented from QCPAxisTicker.

◆ setSubTickCount()

void QCPAxisTickerText::setSubTickCount ( int  subTicks)

◆ setTicks() [1/2]

void QCPAxisTickerText::setTicks ( const QMap< double, QString > &  ticks)

◆ setTicks() [2/2]

void QCPAxisTickerText::setTicks ( const QVector< double > &  positions,
const QVector< QString > &  labels 
)

◆ subTickCount()

int QCPAxisTickerText::subTickCount ( ) const
inline

◆ ticks()

QMap<double, QString>& QCPAxisTickerText::ticks ( )
inline

Member Data Documentation

◆ mSubTickCount

int QCPAxisTickerText::mSubTickCount
protected

◆ mTicks

QMap<double, QString> QCPAxisTickerText::mTicks
protected

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