LogarithmicNumberAxis Class Reference

#include <logarithmicnumberaxis.h>

Inheritance diagram for LogarithmicNumberAxis:

Inheritance graph
[legend]
Collaboration diagram for LogarithmicNumberAxis:

Collaboration graph
[legend]

List of all members.

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)


Detailed Description

An axis for displaying and logarithmically scaling numerical data.

Member Function Documentation

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.

Parameters:
step step index
label output label

Reimplemented from NumberAxis.

virtual double LogarithmicNumberAxis::GetValue ( size_t  step  )  [protected, virtual]

Returns value on step.

Parameters:
step step index
Returns:
value on step

Reimplemented from NumberAxis.

void LogarithmicNumberAxis::SetLogBase ( double  logBase  ) 

Sets logarithmic base.

Parameters:
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.


The documentation for this class was generated from the following file:

Generated on Mon Feb 15 21:32:26 2010 for wxFreeChart by  doxygen 1.5.8