QCPAxisTickerDateTime Class Reference

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

Inheritance diagram for QCPAxisTickerDateTime:
Collaboration diagram for QCPAxisTickerDateTime:

Public Member Functions

 QCPAxisTickerDateTime ()
 
QString dateTimeFormat () const
 
Qt::TimeSpec dateTimeSpec () const
 
void setDateTimeFormat (const QString &format)
 
void setDateTimeSpec (Qt::TimeSpec spec)
 
void setTickOrigin (double origin)
 
void setTickOrigin (const QDateTime &origin)
 
- 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)
 

Static Public Member Functions

static QDateTime keyToDateTime (double key)
 
static double dateTimeToKey (const QDateTime dateTime)
 
static double dateTimeToKey (const QDate date)
 

Protected Types

enum  DateStrategy { dsNone, dsUniformTimeInDay, dsUniformDayInMonth }
 

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

QString mDateTimeFormat
 
Qt::TimeSpec mDateTimeSpec
 
enum QCPAxisTickerDateTime::DateStrategy mDateStrategy
 
- Protected Attributes inherited from QCPAxisTicker
TickStepStrategy mTickStepStrategy
 
int mTickCount
 
double mTickOrigin
 

Additional Inherited Members

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

Member Enumeration Documentation

◆ DateStrategy

Enumerator
dsNone 
dsUniformTimeInDay 
dsUniformDayInMonth 

Constructor & Destructor Documentation

◆ QCPAxisTickerDateTime()

QCPAxisTickerDateTime::QCPAxisTickerDateTime ( )

Member Function Documentation

◆ createTickVector()

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

Reimplemented from QCPAxisTicker.

◆ dateTimeFormat()

QString QCPAxisTickerDateTime::dateTimeFormat ( ) const
inline

◆ dateTimeSpec()

Qt::TimeSpec QCPAxisTickerDateTime::dateTimeSpec ( ) const
inline

◆ dateTimeToKey() [1/2]

static double QCPAxisTickerDateTime::dateTimeToKey ( const QDateTime  dateTime)
static

◆ dateTimeToKey() [2/2]

static double QCPAxisTickerDateTime::dateTimeToKey ( const QDate  date)
static

◆ getSubTickCount()

virtual int QCPAxisTickerDateTime::getSubTickCount ( double  tickStep)
protectedvirtual

Reimplemented from QCPAxisTicker.

◆ getTickLabel()

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

Reimplemented from QCPAxisTicker.

◆ getTickStep()

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

Reimplemented from QCPAxisTicker.

◆ keyToDateTime()

static QDateTime QCPAxisTickerDateTime::keyToDateTime ( double  key)
static

◆ setDateTimeFormat()

void QCPAxisTickerDateTime::setDateTimeFormat ( const QString &  format)

◆ setDateTimeSpec()

void QCPAxisTickerDateTime::setDateTimeSpec ( Qt::TimeSpec  spec)

◆ setTickOrigin() [1/2]

void QCPAxisTickerDateTime::setTickOrigin ( double  origin)

◆ setTickOrigin() [2/2]

void QCPAxisTickerDateTime::setTickOrigin ( const QDateTime &  origin)

Member Data Documentation

◆ mDateStrategy

enum QCPAxisTickerDateTime::DateStrategy QCPAxisTickerDateTime::mDateStrategy
protected

◆ mDateTimeFormat

QString QCPAxisTickerDateTime::mDateTimeFormat
protected

◆ mDateTimeSpec

Qt::TimeSpec QCPAxisTickerDateTime::mDateTimeSpec
protected

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