#include <logarithmicnumberaxis.h>
Public Member Functions | |
LogarithmicNumberAxis (AXIS_LOCATION location) | |
void | SetLogBase (double logBase) |
void | EnableLongLabelExponent (bool enable=true) |
virtual wxCoord | ToGraphics (wxDC &dc, int minCoord, int gRange, double value) |
virtual double | ToData (wxDC &dc, int minCoord, int gRange, wxCoord g) |
Protected Member Functions | |
virtual void | GetLabel (size_t step, wxString &label) |
virtual double | GetValue (size_t step) |
void LogarithmicNumberAxis::EnableLongLabelExponent | ( | bool | enable = true |
) |
Truncates exponent in scientific labels to 2 digits
virtual void LogarithmicNumberAxis::GetLabel | ( | size_t | step, | |
wxString & | label | |||
) | [protected, virtual] |
Returns label on step.
step | step index | |
label | output label |
Reimplemented from NumberAxis.
virtual double LogarithmicNumberAxis::GetValue | ( | size_t | step | ) | [protected, virtual] |
Returns value on step.
step | step index |
Reimplemented from NumberAxis.
void LogarithmicNumberAxis::SetLogBase | ( | double | logBase | ) |
Sets logarithmic base.
logBase | A value used as logarithmic base. |
virtual double LogarithmicNumberAxis::ToData | ( | wxDC & | dc, | |
int | minCoord, | |||
int | gRange, | |||
wxCoord | g | |||
) | [virtual] |
Overwrites Axis::ToData to invert logarithmic scaling.
Reimplemented from Axis.
virtual wxCoord LogarithmicNumberAxis::ToGraphics | ( | wxDC & | dc, | |
int | minCoord, | |||
int | gRange, | |||
double | value | |||
) | [virtual] |
Overwrites Axis::ToGraphics to get logarithmic scaling.
Reimplemented from Axis.