gepetto-viewer 6.1.0
An user-friendly Graphical Interface
Loading...
Searching...
No Matches
QCPAxisTickerFixed Class Reference

#include </local/robotpkg/var/tmp/robotpkg/graphics/py-qt-gepetto-viewer/work/gepetto-viewer-6.1.0/plugins/pyqcustomplot/qcustomplot-2.0.1/qcustomplot.h>

Inheritance diagram for QCPAxisTickerFixed:
Collaboration diagram for QCPAxisTickerFixed:

Public Types

enum  ScaleStrategy { ssNone , ssMultiples , ssPowers }
Public Types inherited from QCPAxisTicker
enum  TickStepStrategy { tssReadability , tssMeetTickCount }

Public Member Functions

 QCPAxisTickerFixed ()
double tickStep () const
ScaleStrategy scaleStrategy () const
void setTickStep (double step)
void setScaleStrategy (ScaleStrategy strategy)
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
Protected Member Functions inherited from QCPAxisTicker
virtual int getSubTickCount (double tickStep)
virtual QString getTickLabel (double tick, const QLocale &locale, QChar formatChar, int precision)
virtual QVector< double > createTickVector (double tickStep, const QCPRange &range)
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

double mTickStep
ScaleStrategy mScaleStrategy
Protected Attributes inherited from QCPAxisTicker
TickStepStrategy mTickStepStrategy
int mTickCount
double mTickOrigin

Member Enumeration Documentation

◆ ScaleStrategy

Defines how the axis ticker may modify the specified tick step (setTickStep) in order to control the number of ticks in the axis range.

See also
setScaleStrategy
Enumerator
ssNone 

Modifications are not allowed, the specified tick step is absolutely fixed. This might cause a high tick density and overlapping labels if the axis range is zoomed out.

ssMultiples 

An integer multiple of the specified tick step is allowed. The used factor follows the base class properties of setTickStepStrategy and setTickCount.

ssPowers 

An integer power of the specified tick step is allowed.

Constructor & Destructor Documentation

◆ QCPAxisTickerFixed()

QCPAxisTickerFixed::QCPAxisTickerFixed ( )

Member Function Documentation

◆ getTickStep()

virtual double QCPAxisTickerFixed::getTickStep ( const QCPRange & range)
protectedvirtual

Reimplemented from QCPAxisTicker.

◆ scaleStrategy()

ScaleStrategy QCPAxisTickerFixed::scaleStrategy ( ) const
inline

◆ setScaleStrategy()

void QCPAxisTickerFixed::setScaleStrategy ( ScaleStrategy strategy)

◆ setTickStep()

void QCPAxisTickerFixed::setTickStep ( double step)

◆ tickStep()

double QCPAxisTickerFixed::tickStep ( ) const
inline

Member Data Documentation

◆ mScaleStrategy

ScaleStrategy QCPAxisTickerFixed::mScaleStrategy
protected

◆ mTickStep

double QCPAxisTickerFixed::mTickStep
protected

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