|
| QwtDateScaleEngine (Qt::TimeSpec=Qt::LocalTime) |
| Constructor. More...
|
|
virtual | ~QwtDateScaleEngine () |
| Destructor.
|
|
void | setTimeSpec (Qt::TimeSpec) |
|
Qt::TimeSpec | timeSpec () const |
|
void | setUtcOffset (int seconds) |
|
int | utcOffset () const |
|
void | setWeek0Type (QwtDate::Week0Type) |
|
QwtDate::Week0Type | week0Type () const |
|
void | setMaxWeeks (int) |
|
int | maxWeeks () const |
|
virtual void | autoScale (int maxNumSteps, double &x1, double &x2, double &stepSize) const |
|
virtual QwtScaleDiv | divideScale (double x1, double x2, int maxMajorSteps, int maxMinorSteps, double stepSize=0.0) const |
| Calculate a scale division for a date/time interval. More...
|
|
virtual QwtDate::IntervalType | intervalType (const QDateTime &, const QDateTime &, int maxSteps) const |
|
QDateTime | toDateTime (double) const |
|
| QwtLinearScaleEngine (uint base=10) |
|
virtual | ~QwtLinearScaleEngine () |
| Destructor.
|
|
| QwtScaleEngine (uint base=10) |
|
virtual | ~QwtScaleEngine () |
| Destructor.
|
|
void | setBase (uint base) |
|
uint | base () const |
|
void | setAttribute (Attribute, bool on=true) |
|
bool | testAttribute (Attribute) const |
|
void | setAttributes (Attributes) |
|
Attributes | attributes () const |
|
void | setReference (double reference) |
| Specify a reference point. More...
|
|
double | reference () const |
|
void | setMargins (double lower, double upper) |
| Specify margins at the scale's endpoints. More...
|
|
double | lowerMargin () const |
|
double | upperMargin () const |
|
void | setTransformation (QwtTransform *) |
|
QwtTransform * | transformation () const |
|
|
virtual QDateTime | alignDate (const QDateTime &, double stepSize, QwtDate::IntervalType, bool up) const |
|
QwtInterval | align (const QwtInterval &, double stepSize) const |
| Align an interval to a step size. More...
|
|
void | buildTicks (const QwtInterval &, double stepSize, int maxMinSteps, QList< double > ticks[QwtScaleDiv::NTickTypes]) const |
| Calculate ticks for an interval. More...
|
|
QList< double > | buildMajorTicks (const QwtInterval &interval, double stepSize) const |
| Calculate major ticks for an interval. More...
|
|
void | buildMinorTicks (const QList< double > &majorTicks, int maxMinorSteps, double stepSize, QList< double > &minorTicks, QList< double > &mediumTicks) const |
| Calculate minor/medium ticks for major ticks. More...
|
|
bool | contains (const QwtInterval &, double val) const |
|
QList< double > | strip (const QList< double > &, const QwtInterval &) const |
|
double | divideInterval (double interval, int numSteps) const |
|
QwtInterval | buildInterval (double v) const |
| Build an interval around a value. More...
|
|
A scale engine for date/time values.
QwtDateScaleEngine builds scales from a time intervals. Together with QwtDateScaleDraw it can be used for axes according to date/time values.
Years, months, weeks, days, hours and minutes are organized in steps with non constant intervals. QwtDateScaleEngine classifies intervals and aligns the boundaries and tick positions according to this classification.
QwtDateScaleEngine supports representations depending on Qt::TimeSpec specifications. The valid range for scales is limited by the range of QDateTime, that differs between Qt4 and Qt5.
Datetime values are expected as the number of milliseconds since 1970-01-01T00:00:00 Universal Coordinated Time - also known as "The Epoch", that can be converted to QDateTime using QwtDate::toDateTime().
- See Also
- QwtDate, QwtPlot::setAxisScaleEngine(), QwtAbstractScale::setScaleEngine()