Version: 0.6.0
CategorySimpleDataset Class Reference

#include <categorysimpledataset.h>

Inheritance diagram for CategorySimpleDataset:
Collaboration diagram for CategorySimpleDataset:

Public Member Functions

 CategorySimpleDataset (wxString *names, size_t count)
 
void AddSerie (const wxString &name, double *values, size_t count)
 
void AddSerie (CategorySerie *serie)
 
virtual double GetValue (size_t index, size_t serie)
 
virtual size_t GetSerieCount ()
 
virtual wxString GetName (size_t index)
 
virtual size_t GetCount ()
 
virtual wxString GetSerieName (size_t serie)
 
- Public Member Functions inherited from CategoryDataset
virtual bool HasValue (size_t index, size_t serie)
 
virtual double GetMinValue (bool verticalAxis)
 
virtual double GetMaxValue (bool verticalAxis)
 
virtual double GetX (size_t index, size_t serie)
 
virtual double GetY (size_t index, size_t serie)
 
virtual size_t GetCount (size_t serie)
 
BarRendererGetRenderer ()
 
- Public Member Functions inherited from XYDataset
XYRendererGetRenderer ()
 
virtual double GetMaxY ()
 
virtual double GetMinY ()
 
virtual double GetMaxX ()
 
virtual double GetMinX ()
 
- Public Member Functions inherited from Dataset
void SetRenderer (Renderer *renderer)
 
RendererGetBaseRenderer ()
 
void BeginUpdate ()
 
void EndUpdate ()
 
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)
 

Additional Inherited Members

- Public Types inherited from Observable< DatasetObserver >
typedef DatasetObserver Observer
 
- Public Attributes inherited from Observable< DatasetObserver >
std::vector< DatasetObserver * >
::iterator 
OIt
 
- Protected Member Functions inherited from CategoryDataset
virtual bool AcceptRenderer (Renderer *r)
 
- Protected Member Functions inherited from Dataset
void DatasetChanged ()
 
- Protected Attributes inherited from Dataset
Rendererm_renderer
 
- Protected Attributes inherited from Observable< DatasetObserver >
std::vector< DatasetObserver * > observers
 

Detailed Description

Simple category dataset implementation. It's general purpose implementation, and useful for many applications.

Constructor & Destructor Documentation

CategorySimpleDataset::CategorySimpleDataset ( wxString *  names,
size_t  count 
)

Constructs new category simple dataset.

Parameters
namescategory names array
countnames count

Member Function Documentation

void CategorySimpleDataset::AddSerie ( const wxString &  name,
double *  values,
size_t  count 
)

Adds serie.

Parameters
nameserie name
valueserie values array
countvalues array elements count
void CategorySimpleDataset::AddSerie ( CategorySerie serie)

Adds serie.

Parameters
serieserie to be added

Here is the call graph for this function:

size_t CategorySimpleDataset::GetCount ( )
virtual

Returns category count.

Returns
category count

Implements CategoryDataset.

wxString CategorySimpleDataset::GetName ( size_t  index)
virtual

Returns category name at index.

Parameters
indexindex of category name
Returns
category name

Implements CategoryDataset.

size_t CategorySimpleDataset::GetSerieCount ( )
virtual

Returns serie count in this dataset.

Returns
serie count

Implements Dataset.

wxString CategorySimpleDataset::GetSerieName ( size_t  serie)
virtual

Returns serie name.

Parameters
serieindex
Returns
serie name

Implements Dataset.

double CategorySimpleDataset::GetValue ( size_t  index,
size_t  serie 
)
virtual

Returns value associated with category at index.

Parameters
indexvalue associated with category
Returns
value associated with category

Implements CategoryDataset.


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