#include <logarithmicnumberaxis.h>
Public Member Functions | |
LogarithmicNumberAxis (AXIS_LOCATION location) | |
virtual void | UpdateBounds () |
virtual double | BoundValue (double value) |
virtual bool | IsVisible (double value) |
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) |
Public Member Functions inherited from NumberAxis | |
NumberAxis (AXIS_LOCATION location) | |
void | SetTickFormat (const wxString &tickFormat) |
void | SetLabelCount (size_t labelCount) |
void | IntegerValues (bool intValues=true) |
double | GetMultiplier () const |
void | SetMultiplier (double multiplier) |
void | SetFixedBounds (double minValue, double maxValue) |
virtual void | GetDataBounds (double &minValue, double &maxValue) const |
size_t | GetLabelCount () const |
Public Member Functions inherited from LabelAxis | |
LabelAxis (AXIS_LOCATION location) | |
void | SetTitle (const wxString &title) |
const wxString & | GetTitle () |
void | SetTitleLocation (int location) |
int | GetTitleLocation () |
void | SetTitleFont (wxFont &font) |
const wxFont & | GetTitleFont () |
void | SetTitleColour (wxColour &colour) |
wxColour | GetTitleColour () |
void | SetLabelPen (wxPen labelPen) |
void | SetLabelTextColour (wxColour labelTextColour) |
wxColour | GetLabelTextColour () |
void | SetLabelTextFont (wxFont labelTextFont) |
const wxFont & | GetLabelTextFont () |
void | SetVerticalLabelText (bool verticalLabelText) |
bool | GetVerticalLabelText () |
void | SetMajorLabelSteps (size_t step) |
void | SetLabelSkip (int blankLabels) |
int | GetLabelSkip () |
void | SetLabelColourer (LabelColourer *labelColourer) |
LabelColourer * | GetLabelColourer () |
void | SetAxisVisible (bool bVisible) |
virtual void | Draw (wxDC &dc, wxRect rc) |
virtual void | DrawGridLines (wxDC &dc, wxRect rc) |
virtual wxCoord | GetExtent (wxDC &dc) |
Public Member Functions inherited from Axis | |
Axis (AXIS_LOCATION location) | |
AXIS_LOCATION | GetLocation () |
bool | IsVertical () |
bool | IsHorizontal () |
void | SetMargins (wxCoord marginMin, wxCoord marginMax) |
size_t | GetDatasetCount () |
Dataset * | GetDataset (size_t index) |
void | SetZoomPanMode () |
void | SetWindowWidth (double winWidth) |
double | GetWindowWidth () |
void | SetWindowPosition (double winPos) |
double | GetWindowPosition () |
void | SetUseWindow (bool useWin) |
void | SetWindow (double winPos, double winWidth) |
bool | IntersectsWindow (double v0, double v1) |
void | GetWindowBounds (double &winMin, double &winMax) |
void | AddDataset (Dataset *dataset) |
Public Member Functions inherited from Observable< AxisObserver > | |
void | AddObserver (AxisObserver *_observer) |
void | RemoveObserver (AxisObserver *_observer) |
Protected Member Functions | |
virtual void | GetLabel (size_t step, wxString &label) |
virtual double | GetValue (size_t step) |
double | GetMinValue (Dataset *dataset) |
double | GetMaxValue (Dataset *dataset) |
Protected Member Functions inherited from NumberAxis | |
virtual bool | AcceptDataset (Dataset *dataset) |
void | UpdateTickValues () |
virtual bool | IsEnd (size_t step) |
virtual bool | HasLabels () |
virtual wxSize | GetLongestLabelExtent (wxDC &dc) |
Protected Member Functions inherited from Axis | |
FIRE_WITH_THIS (AxisChanged) | |
FIRE_WITH_THIS (BoundsChanged) | |
Additional Inherited Members | |
Public Types inherited from Observable< AxisObserver > | |
typedef AxisObserver | Observer |
Public Attributes inherited from Observable< AxisObserver > | |
std::vector< AxisObserver * > ::iterator | OIt |
Protected Attributes inherited from NumberAxis | |
bool | m_fixedBounds |
bool | m_hasLabels |
double | m_minValue |
double | m_maxValue |
Protected Attributes inherited from Axis | |
DatasetArray | m_datasets |
wxPen | m_gridLinesPen |
wxCoord | m_marginMin |
wxCoord | m_marginMax |
double | m_winPos |
double | m_winWidth |
bool | m_useWin |
Protected Attributes inherited from Observable< AxisObserver > | |
std::vector< AxisObserver * > | observers |
An axis for displaying and logarithmically scaling numerical data.
|
virtual |
Returns nearest boundary value.
value | out of bounds value, for which will be returned boundary value |
Reimplemented from Axis.
void LogarithmicNumberAxis::EnableLongLabelExponent | ( | bool | enable = true | ) |
Truncates exponent in scientific labels to 2 digits
|
protectedvirtual |
Returns label on step.
step | step index |
label | output label |
Reimplemented from NumberAxis.
|
protectedvirtual |
Returns value on step.
step | step index |
Reimplemented from NumberAxis.
|
virtual |
Checks whether data value is visible.
value | value in data space |
Reimplemented from Axis.
void LogarithmicNumberAxis::SetLogBase | ( | double | logBase | ) |
Sets logarithmic base.
logBase | A value used as logarithmic base. |
|
virtual |
Overwrites Axis::ToData to invert logarithmic scaling.
Reimplemented from Axis.
|
virtual |
Overwrites Axis::ToGraphics to get logarithmic scaling.
Reimplemented from Axis.
|
virtual |
Performs axis bounds update after dataset/s change.
Reimplemented from NumberAxis.