Version: 0.6.0

#include <dataset.h>

Inheritance diagram for Dataset:
Collaboration diagram for Dataset:

Public Member Functions

void SetRenderer (Renderer *renderer)
 
RendererGetBaseRenderer ()
 
void BeginUpdate ()
 
void EndUpdate ()
 
virtual size_t GetSerieCount ()=0
 
virtual size_t GetCount (size_t serie)=0
 
virtual wxString GetSerieName (size_t serie)=0
 
virtual double GetMinValue (bool vertical)=0
 
virtual double GetMaxValue (bool vertical)=0
 
virtual DateTimeDatasetAsDateTimeDataset ()
 
void AddMarker (Marker *marker)
 
size_t GetMarkersCount ()
 
MarkerGetMarker (size_t index)
 
virtual void NeedRedraw (DrawObject *obj)
 
- Public Member Functions inherited from RefObject
void AddRef ()
 
void Unref ()
 
int RefCount ()
 
- Public Member Functions inherited from Observable< DatasetObserver >
void AddObserver (DatasetObserver *_observer)
 
void RemoveObserver (DatasetObserver *_observer)
 

Protected Member Functions

virtual bool AcceptRenderer (Renderer *r)=0
 
void DatasetChanged ()
 

Protected Attributes

Rendererm_renderer
 
- Protected Attributes inherited from Observable< DatasetObserver >
std::vector< DatasetObserver * > observers
 

Additional Inherited Members

- Public Types inherited from Observable< DatasetObserver >
typedef DatasetObserver Observer
 
- Public Attributes inherited from Observable< DatasetObserver >
std::vector< DatasetObserver * >
::iterator 
OIt
 

Detailed Description

Base class for all datasets (XYDatasets, XYZDatasets, CategoryDatasets, OHLCDatasets, etc).

Member Function Documentation

virtual bool Dataset::AcceptRenderer ( Renderer r)
protectedpure virtual

Checks whether renderer is acceptable by this dataset. TODO: this method must be removed, because acceptable renderer type depends on plot type.

Implemented in OHLCDataset, XYDataset, and CategoryDataset.

void Dataset::AddMarker ( Marker marker)

Adds marker to plot. Plot takes ownership of marker.

Parameters
markermarker to be added
void Dataset::BeginUpdate ( )

Called to begin dataset update. Each call must have corresponding EndUpdate call. Increment dataset update counter.

void Dataset::DatasetChanged ( )
protected

Called to indicate, that dataset is changed. For call by derivate classes.

Here is the caller graph for this function:

void Dataset::EndUpdate ( )

Called to end dataset update. Decrement dataset update counter, and fires DatasetChanged event when counter equal zero.

virtual size_t Dataset::GetCount ( size_t  serie)
pure virtual

Returns value count in serie specified by index.

Parameters
serieindex
Returns
value count

Implemented in XYDynamicDataset, XYSimpleDataset, GanttDataset, OHLCDataset, CategoryDataset, Polynom, VectorDataset, MovingAverage, SineFunction, JulianTimeSeriesDataset, and TimeSeriesDataset.

Here is the caller graph for this function:

Marker * Dataset::GetMarker ( size_t  index)

Returns marker at specified index.

Parameters
indexindex of marker
Returns
marker at specified index
size_t Dataset::GetMarkersCount ( )

Returns marker count.

Returns
marker count
virtual double Dataset::GetMaxValue ( bool  vertical)
pure virtual

Returns maximal value.

Parameters
verticalfor datasets with XY coordinates, specifies direction
Returns
maximal value

Implemented in XYDataset, OHLCDataset, and CategoryDataset.

virtual double Dataset::GetMinValue ( bool  vertical)
pure virtual

Returns minimal value.

Parameters
verticalfor datasets with XY coordinates, specifies direction
Returns
minimal value

Implemented in XYDataset, OHLCDataset, and CategoryDataset.

virtual size_t Dataset::GetSerieCount ( )
pure virtual

Returns serie count in this dataset.

Returns
serie count

Implemented in XYDynamicDataset, CategorySimpleDataset, XYSimpleDataset, OHLCDataset, GanttSimpleDataset, Polynom, SineFunction, VectorDataset, MovingAverage, JulianTimeSeriesDataset, and TimeSeriesDataset.

Here is the caller graph for this function:

virtual wxString Dataset::GetSerieName ( size_t  serie)
pure virtual

Returns serie name.

Parameters
serieindex
Returns
serie name

Implemented in XYDynamicDataset, CategorySimpleDataset, XYSimpleDataset, OHLCDataset, GanttSimpleDataset, Polynom, SineFunction, VectorDataset, MovingAverage, JulianTimeSeriesDataset, and TimeSeriesDataset.

Here is the caller graph for this function:

void Dataset::NeedRedraw ( DrawObject obj)
virtual

Called when object is need to be redrawed.

Parameters
objobject that need to be redrawed

Implements DrawObserver.

Here is the call graph for this function:

void Dataset::SetRenderer ( Renderer renderer)

Sets renderer for this dataset.

Parameters
renderernew renderer

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/dataset.h
  • /home/bishop/work/projects/nextgismanager/src/freechart/dataset.cpp