Version: 0.6.0

#include <axis.h>

Inheritance diagram for AxisShare:
Collaboration diagram for AxisShare:

Public Member Functions

 AxisShare (Axis *axis)
 
void SetShareVisible (bool shareVisible)
 
virtual void GetDataBounds (double &minValue, double &maxValue) const
 
virtual wxCoord GetExtent (wxDC &dc)
 
virtual bool IsVisible (double value)
 
virtual double BoundValue (double value)
 
virtual wxCoord ToGraphics (wxDC &dc, int minCoord, int gRange, double value)
 
virtual double ToData (wxDC &dc, int minCoord, int gRange, wxCoord g)
 
virtual void UpdateBounds ()
 
virtual void Draw (wxDC &dc, wxRect rc)
 
virtual void DrawGridLines (wxDC &dc, wxRect rcData)
 
- 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 ()
 
DatasetGetDataset (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 bool AcceptDataset (Dataset *dataset)
 
- 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 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
 

Detailed Description

Used to combine axes. Shares axis between plots.

Member Function Documentation

bool AxisShare::AcceptDataset ( Dataset dataset)
protectedvirtual

Checks whether dataset can be accepted by this axis. Must be implemented by derivative classes. XXX: maybe remove this method later.

Parameters
datasetdataset to be checked
Returns
true - if dataset can be accepted, false overwise

Implements Axis.

Here is the call graph for this function:

Here is the caller graph for this function:

double AxisShare::BoundValue ( double  value)
virtual

Returns nearest boundary value.

Parameters
valueout of bounds value, for which will be returned boundary value
Returns
nearest boundary value

Reimplemented from Axis.

Here is the call graph for this function:

void AxisShare::Draw ( wxDC &  dc,
wxRect  rc 
)
virtual

Performs axis drawing.

Parameters
dcdevice context
rcrectangle where to draw

Implements Axis.

Here is the call graph for this function:

void AxisShare::DrawGridLines ( wxDC &  dc,
wxRect  rcData 
)
virtual

Draws grid lines for axis.

Parameters
dcdevice context
rcdata area rectangle of plot

Implements Axis.

Here is the call graph for this function:

void AxisShare::GetDataBounds ( double &  minValue,
double &  maxValue 
) const
virtual

Returns data bounds.

Parameters
minValueoutput minimal data value
maxValueoutput maximal data value

Implements Axis.

Here is the call graph for this function:

Here is the caller graph for this function:

wxCoord AxisShare::GetExtent ( wxDC &  dc)
virtual

Used to determine minimal size needed to draw axis contents, minimal width for vertical axes, minimal height for horizontal.

Parameters
dcdevice context
Returns
extent

Implements Axis.

Here is the call graph for this function:

bool AxisShare::IsVisible ( double  value)
virtual

Checks whether data value is visible.

Parameters
valuevalue in data space
Returns
true if data value is visible

Reimplemented from Axis.

Here is the call graph for this function:

void AxisShare::SetShareVisible ( bool  shareVisible)

Sets axis share visible or not. Note: by default axis share is invisible.

Parameters
shareVisibletrue to set share visible
double AxisShare::ToData ( wxDC &  dc,
int  minCoord,
int  gRange,
wxCoord  g 
)
virtual

Transforms coordinate from graphics space to data space.

Parameters
dcdevice context
minCoordminimal graphics space coordinate
gRangegraphics space range
valuevalue in data space
Returns
coordinate in data space

Reimplemented from Axis.

Here is the call graph for this function:

wxCoord AxisShare::ToGraphics ( wxDC &  dc,
int  minCoord,
int  gRange,
double  value 
)
virtual

Transforms coordinate from data space to graphics space.

Parameters
dcdevice context
minCoordminimal graphics space coordinate
gRangegraphics space range
valuevalue in data space
Returns
value in graphics space

Reimplemented from Axis.

Here is the call graph for this function:

void AxisShare::UpdateBounds ( )
virtual

Performs axis bounds update after dataset/s change.

Implements Axis.

Here is the call graph for this function:


The documentation for this class was generated from the following files:
  • /home/bishop/work/projects/nextgismanager/include/freechart/wx/axis/axis.h
  • /home/bishop/work/projects/nextgismanager/src/freechart/axis/axis.cpp