wxFreeChart
|
Used to combine axes. More...
#include <axis.h>
Public Member Functions | |
AxisShare (Axis *axis) | |
void | SetShareVisible (bool shareVisible) |
Sets axis share visible or not. More... | |
virtual void | GetDataBounds (double &minValue, double &maxValue) const |
Returns data bounds. More... | |
virtual wxCoord | GetExtent (wxDC &dc) |
Used to determine minimal size needed to draw axis contents, minimal width for vertical axes, minimal height for horizontal. More... | |
virtual bool | IsVisible (double value) |
Checks whether data value is visible. More... | |
virtual double | BoundValue (double value) |
Returns nearest boundary value. More... | |
virtual wxCoord | ToGraphics (wxDC &dc, int minCoord, int gRange, double value) |
Transforms coordinate from data space to graphics space. More... | |
virtual double | ToData (wxDC &dc, int minCoord, int gRange, wxCoord g) |
Transforms coordinate from graphics space to data space. More... | |
virtual bool | UpdateBounds () wxOVERRIDE |
Performs axis bounds update after dataset/s change. | |
virtual void | Draw (wxDC &dc, wxRect rc) |
Performs axis drawing. More... | |
virtual void | DrawGridLines (wxDC &dc, wxRect rcData) |
Draws grid lines for axis. More... | |
Public Member Functions inherited from Axis | |
Axis (AXIS_LOCATION location) | |
Constructs new axis. More... | |
AXIS_LOCATION | GetLocation () |
Returns axis location. More... | |
bool | IsVertical () |
Checks whether axis is vertical. More... | |
bool | IsHorizontal () |
Checks whether axis is horizontal. More... | |
void | SetMargins (wxCoord marginMin, wxCoord marginMax) |
Sets minimal/maximal margins for axis. More... | |
void | SetMajorGridlinePen (const wxPen &pen) |
Sets the pen to be used for drawing major gridlines. More... | |
void | SetMinorGridlinePen (const wxPen &pen) |
Sets the pen to be used for drawing minor gridlines. More... | |
const wxPen & | GetMajorGridlinePen () |
Gets the pen that is currently used to draw major gridlines on this axis. More... | |
const wxPen & | GetMinorGridlinePen () |
Gets the pen that is currently used to draw minor gridlines on this axis. More... | |
size_t | GetDatasetCount () |
Returns dataset counts, linked with this axis. More... | |
Dataset * | GetDataset (size_t index) |
Returns dataset, linked with this axis at specified index. More... | |
void | SetZoomPanMode () |
void | SetWindowWidth (double winWidth) |
Sets window width. More... | |
double | GetWindowWidth () |
Returns window width. More... | |
void | SetWindowPosition (double winPos) |
Sets window position. More... | |
double | GetWindowPosition () |
Returns window position. More... | |
void | SetUseWindow (bool useWin) |
Sets whether to use window. More... | |
void | SetWindow (double winPos, double winWidth) |
Sets window params (position and width). More... | |
bool | IntersectsWindow (double v0, double v1) |
Checks whether line in data space intersects window. More... | |
void | GetWindowBounds (double &winMin, double &winMax) |
Returns window bounds. More... | |
void | AddDataset (Dataset *dataset) |
internal. More... | |
Protected Member Functions | |
virtual bool | AcceptDataset (Dataset *dataset) |
Checks whether dataset can be accepted by this axis. More... | |
Additional Inherited Members | |
Protected Attributes inherited from Axis | |
DatasetArray | m_datasets |
wxPen | m_majorGridlinePen |
wxPen | m_minorGridlinePen |
wxCoord | m_marginMin |
wxCoord | m_marginMax |
double | m_winPos |
double | m_winWidth |
bool | m_useWin |
|
protectedvirtual |
Checks whether dataset can be accepted by this axis.
Must be implemented by derivative classes. XXX: maybe remove this method later.
dataset | dataset to be checked |
Implements Axis.
Referenced by Axis::AddDataset().
|
virtual |
Returns nearest boundary value.
value | out of bounds value, for which will be returned boundary value |
Reimplemented from Axis.
Referenced by Axis::AddDataset().
|
virtual |
Performs axis drawing.
dc | device context |
rc | rectangle where to draw |
Implements Axis.
Referenced by Axis::AddDataset().
|
virtual |
Draws grid lines for axis.
dc | device context |
rc | data area rectangle of plot |
Implements Axis.
Referenced by Axis::AddDataset().
|
virtual |
Returns data bounds.
minValue | output minimal data value |
maxValue | output maximal data value |
Implements Axis.
Referenced by Axis::AddDataset(), and Axis::GetWindowBounds().
|
virtual |
Used to determine minimal size needed to draw axis contents, minimal width for vertical axes, minimal height for horizontal.
dc | device context |
Implements Axis.
Referenced by Axis::AddDataset().
|
virtual |
Checks whether data value is visible.
value | value in data space |
Reimplemented from Axis.
Referenced by Axis::AddDataset().
void AxisShare::SetShareVisible | ( | bool | shareVisible | ) |
Sets axis share visible or not.
Note: by default axis share is invisible.
shareVisible | true to set share visible |
|
virtual |
Transforms coordinate from graphics space to data space.
dc | device context |
minCoord | minimal graphics space coordinate |
gRange | graphics space range |
value | value in data space |
Reimplemented from Axis.
Referenced by Axis::AddDataset().
|
virtual |
Transforms coordinate from data space to graphics space.
dc | device context |
minCoord | minimal graphics space coordinate |
gRange | graphics space range |
value | value in data space |
Reimplemented from Axis.
Referenced by Axis::AddDataset().