wxFreeChart
Public Member Functions | Protected Member Functions | List of all members
CategoryDataset Class Referenceabstract

Dataset for data values in form [category name, value]. More...

#include <categorydataset.h>

Inheritance diagram for CategoryDataset:
Inheritance graph
[legend]
Collaboration diagram for CategoryDataset:
Collaboration graph
[legend]

Public Member Functions

virtual double GetValue (size_t index, size_t serie)=0
 Returns value associated with category at index. More...
 
virtual wxString GetName (size_t index)=0
 Returns category name at index. More...
 
virtual size_t GetCount ()=0
 Returns category count. More...
 
virtual bool HasValue (size_t index, size_t serie)
 
virtual double GetMinValue (bool verticalAxis)
 Returns minimal value. More...
 
virtual double GetMaxValue (bool verticalAxis)
 Returns maximal value. More...
 
virtual double GetX (size_t index, size_t serie)
 Returns x value at index. More...
 
virtual double GetY (size_t index, size_t serie)
 Returns y value at index. More...
 
virtual size_t GetCount (size_t serie)
 Returns value count in serie specified by index. More...
 
BarRendererGetRenderer ()
 
- Public Member Functions inherited from XYDataset
XYRendererGetRenderer ()
 
virtual double GetMaxY ()
 Returns maximal y value. More...
 
virtual double GetMinY ()
 Returns minimal y value. More...
 
virtual double GetMaxX ()
 Returns maximal x value. More...
 
virtual double GetMinX ()
 Returns minimal x value. More...
 
- Public Member Functions inherited from Dataset
void SetRenderer (Renderer *renderer)
 Sets renderer for this dataset. More...
 
RendererGetBaseRenderer ()
 
void BeginUpdate ()
 Called to begin dataset update. More...
 
void EndUpdate ()
 Called to end dataset update. More...
 
virtual size_t GetSerieCount ()=0
 Returns serie count in this dataset. More...
 
virtual wxString GetSerieName (size_t serie)=0
 Returns serie name. More...
 
virtual DateTimeDatasetAsDateTimeDataset ()
 
void AddMarker (Marker *marker)
 Adds marker to plot. More...
 
size_t GetMarkersCount ()
 Returns marker count. More...
 
MarkerGetMarker (size_t index)
 Returns marker at specified index. More...
 
virtual void NeedRedraw (DrawObject *obj)
 
void DatasetChanged ()
 Called to indicate, that dataset is changed. More...
 
- Public Member Functions inherited from RefObject
void AddRef ()
 
void Unref ()
 
int RefCount ()
 

Protected Member Functions

virtual bool AcceptRenderer (Renderer *r)
 Checks whether renderer is acceptable by this dataset. More...
 

Additional Inherited Members

- Protected Attributes inherited from Dataset
Rendererm_renderer
 

Detailed Description

Dataset for data values in form [category name, value].

Definition at line 19 of file categorydataset.h.

Member Function Documentation

virtual bool CategoryDataset::AcceptRenderer ( Renderer r)
protectedvirtual

Checks whether renderer is acceptable by this dataset.

TODO: this method must be removed, because acceptable renderer type depends on plot type.

Reimplemented from XYDataset.

virtual size_t CategoryDataset::GetCount ( )
pure virtual

Returns category count.

Returns
category count

Implemented in CategorySimpleDataset, GanttSimpleDataset, and GanttDataset.

virtual size_t CategoryDataset::GetCount ( size_t  serie)
virtual

Returns value count in serie specified by index.

Parameters
serieindex
Returns
value count

Implements Dataset.

Reimplemented in GanttDataset.

virtual double CategoryDataset::GetMaxValue ( bool  vertical)
virtual

Returns maximal value.

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

Reimplemented from XYDataset.

virtual double CategoryDataset::GetMinValue ( bool  vertical)
virtual

Returns minimal value.

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

Reimplemented from XYDataset.

virtual wxString CategoryDataset::GetName ( size_t  index)
pure virtual

Returns category name at index.

Parameters
indexindex of category name
Returns
category name

Implemented in CategorySimpleDataset, and GanttSimpleDataset.

virtual double CategoryDataset::GetValue ( size_t  index,
size_t  serie 
)
pure virtual

Returns value associated with category at index.

Parameters
indexvalue associated with category
Returns
value associated with category

Implemented in CategorySimpleDataset, and GanttSimpleDataset.

virtual double CategoryDataset::GetX ( size_t  index,
size_t  serie 
)
virtual

Returns x value at index.

Parameters
indexindex
Returns
x value

Implements XYDataset.

virtual double CategoryDataset::GetY ( size_t  index,
size_t  serie 
)
virtual

Returns y value at index.

Parameters
indexindex
Returns
y value

Implements XYDataset.


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