|
| | QwtDateScaleEngine (Qt::TimeSpec=Qt::LocalTime) |
| | Constructor.
|
| |
|
virtual | ~QwtDateScaleEngine () |
| | Destructor.
|
| |
| void | setTimeSpec (Qt::TimeSpec) |
| | Set the time specification used by the engine.
|
| |
| Qt::TimeSpec | timeSpec () const |
| |
| void | setUtcOffset (int seconds) |
| | Set the offset in seconds from Coordinated Universal Time.
|
| |
| int | utcOffset () const |
| |
| void | setWeek0Type (QwtDate::Week0Type) |
| | Sets how to identify the first week of a year.
|
| |
| QwtDate::Week0Type | week0Type () const |
| |
| void | setMaxWeeks (int) |
| | Set a upper limit for the number of weeks, when an interval can be classified as Qt::Week.
|
| |
| int | maxWeeks () const |
| |
| virtual void | autoScale (int maxNumSteps, double &x1, double &x2, double &stepSize) const QWT_OVERRIDE |
| | Align and divide an interval.
|
| |
| virtual QwtScaleDiv | divideScale (double x1, double x2, int maxMajorSteps, int maxMinorSteps, double stepSize=0.0) const QWT_OVERRIDE |
| | Calculate a scale division for a date/time interval.
|
| |
| virtual QwtDate::IntervalType | intervalType (const QDateTime &, const QDateTime &, int maxSteps) const |
| | Classification of a date/time interval division.
|
| |
| QDateTime | toDateTime (double) const |
| | Translate a double value into a QDateTime object.
|
| |
| | QwtLinearScaleEngine (uint base=10) |
| | Constructor.
|
| |
|
virtual | ~QwtLinearScaleEngine () |
| | Destructor.
|
| |
| | QwtScaleEngine (uint base=10) |
| | Constructor.
|
| |
|
virtual | ~QwtScaleEngine () |
| | Destructor.
|
| |
| void | setBase (uint base) |
| | Set the base of the scale engine.
|
| |
| uint | base () const |
| |
| void | setAttribute (Attribute, bool on=true) |
| | Change a scale attribute.
|
| |
| bool | testAttribute (Attribute) const |
| |
| void | setAttributes (Attributes) |
| | Change the scale attribute.
|
| |
| Attributes | attributes () const |
| |
| void | setReference (double) |
| | Specify a reference point.
|
| |
| double | reference () const |
| |
| void | setMargins (double lower, double upper) |
| | Specify margins at the scale's endpoints.
|
| |
| double | lowerMargin () const |
| |
| double | upperMargin () const |
| |
| void | setTransformation (QwtTransform *) |
| | Assign a transformation.
|
| |
| QwtTransform * | transformation () const |
| | Create and return a clone of the transformation of the engine.
|
| |
|
| virtual QDateTime | alignDate (const QDateTime &, double stepSize, QwtDate::IntervalType, bool up) const |
| | Align a date/time value for a step size.
|
| |
| QwtInterval | align (const QwtInterval &, double stepSize) const |
| | Align an interval to a step size.
|
| |
| void | buildTicks (const QwtInterval &, double stepSize, int maxMinorSteps, QList< double > ticks[QwtScaleDiv::NTickTypes]) const |
| | Calculate ticks for an interval.
|
| |
| QList< double > | buildMajorTicks (const QwtInterval &interval, double stepSize) const |
| | Calculate major ticks for an interval.
|
| |
| void | buildMinorTicks (const QList< double > &majorTicks, int maxMinorSteps, double stepSize, QList< double > &minorTicks, QList< double > &mediumTicks) const |
| | Calculate minor/medium ticks for major ticks.
|
| |
| bool | contains (const QwtInterval &, double value) const |
| | Check if an interval "contains" a value.
|
| |
| QList< double > | strip (const QList< double > &, const QwtInterval &) const |
| | Remove ticks from a list, that are not inside an interval.
|
| |
| double | divideInterval (double intervalSize, int numSteps) const |
| | Calculate a step size for an interval size.
|
| |
| QwtInterval | buildInterval (double value) const |
| | Build an interval around a value.
|
| |
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()