|
SciDAVis
1.D4
|
Extension to QwtScaleDraw. More...
#include <ScaleDraw.h>
Public Types | |
| enum | TicksStyle { None = 0, Out = 1, Both = 2, In = 3 } |
Public Member Functions | |
| QString | formulaString () |
| virtual QwtText | label (double value) const |
| void | labelFormat (char &f, int &prec) const |
| Return the number format for the major scale labels. | |
| int | labelNumericPrecision () const |
| int | majorTicksStyle () const |
| int | minorTicksStyle () const |
| ScaleDraw (const QString &s=QString::null) | |
| ScaleDraw (const ScaleDraw &other, const QString &s=QString::null) | |
| void | setFormulaString (const QString &formula) |
| void | setLabelFormat (char f, int prec) |
| Set the number format for the major scale labels. | |
| void | setMajorTicksStyle (TicksStyle type) |
| void | setMinorTicksStyle (TicksStyle type) |
| double | transformValue (double value) const |
| virtual | ~ScaleDraw () |
Protected Member Functions | |
| void | drawTick (QPainter *p, double value, int len) const |
Private Attributes | |
| char | d_fmt |
| int | d_majTicks |
| int | d_minTicks |
| int | d_prec |
| QString | formula_string |
Extension to QwtScaleDraw.
| ScaleDraw::ScaleDraw | ( | const QString & | s = QString::null | ) |
| ScaleDraw::ScaleDraw | ( | const ScaleDraw & | other, |
| const QString & | s = QString::null |
||
| ) |
References d_fmt, d_prec, and labelFormat().
|
inlinevirtual |
|
protected |
References d_majTicks, d_minTicks, In, and None.
|
inline |
References formula_string.
|
inlinevirtual |
Reimplemented in QwtSupersciptsScaleDraw, MonthScaleDraw, WeekDayScaleDraw, DateTimeScaleDraw, DateScaleDraw, TimeScaleDraw, and QwtTextScaleDraw.
References d_fmt, d_prec, and transformValue().
| void ScaleDraw::labelFormat | ( | char & | f, |
| int & | prec | ||
| ) | const |
Return the number format for the major scale labels.
Format character and precision have the same meaning as for sprintf().
| f | format character 'e', 'f' or 'g' |
| prec |
|
Referenced by Plot::axisLabelFormat(), QwtSupersciptsScaleDraw::label(), and ScaleDraw().
|
inline |
References d_prec.
Referenced by Plot::axisLabelPrecision().
|
inline |
References d_majTicks.
Referenced by Plot::drawItems(), and Plot::getMajorTicksType().
|
inline |
References d_minTicks.
Referenced by Plot::drawItems(), and Plot::getMinorTicksType().
|
inline |
References formula_string.
Referenced by QwtSupersciptsScaleDraw::QwtSupersciptsScaleDraw().
| void ScaleDraw::setLabelFormat | ( | char | f, |
| int | prec | ||
| ) |
Set the number format for the major scale labels.
Format character and precision have the same meaning as for sprintf().
| f | format character 'e', 'f', 'g' |
| prec |
|
Referenced by Plot::setAxisLabelFormat(), and Graph::setLabelsNumericFormat().
|
inline |
References d_majTicks.
Referenced by Graph::setAxisTicksLength(), Plot::setMajorTicksType(), and Graph::setMajorTicksType().
|
inline |
References d_minTicks.
Referenced by Graph::setAxisTicksLength(), and Plot::setMinorTicksType().
| double ScaleDraw::transformValue | ( | double | value | ) | const |
References formula_string.
Referenced by label(), WeekDayScaleDraw::label(), MonthScaleDraw::label(), and QwtSupersciptsScaleDraw::label().
|
private |
Referenced by label(), labelFormat(), ScaleDraw(), and setLabelFormat().
|
private |
Referenced by drawTick(), majorTicksStyle(), and setMajorTicksStyle().
|
private |
Referenced by drawTick(), minorTicksStyle(), and setMinorTicksStyle().
|
private |
Referenced by label(), labelFormat(), labelNumericPrecision(), ScaleDraw(), and setLabelFormat().
|
private |
Referenced by formulaString(), setFormulaString(), and transformValue().
1.8.1