Version: 0.6.0
CategoryDataset Class Referenceabstract

#include <categorydataset.h>

Inheritance diagram for CategoryDataset:
Collaboration diagram for CategoryDataset:

Public Member Functions

virtual double GetValue (size_t index, size_t serie)=0
 
virtual wxString GetName (size_t index)=0
 
virtual size_t GetCount ()=0
 
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 size_t GetSerieCount ()=0
 
virtual wxString GetSerieName (size_t serie)=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)
 
- Protected Member Functions inherited from Dataset
void DatasetChanged ()
 

Additional Inherited Members

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

Detailed Description

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

Member Function Documentation

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.

Here is the caller graph for this function:

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.

double CategoryDataset::GetMaxValue ( bool  vertical)
virtual

Returns maximal value.

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

Reimplemented from XYDataset.

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.

Here is the caller graph for this function:

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.

Here is the caller graph for this function:

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

Returns x value at index.

Parameters
indexindex
Returns
x value

Implements XYDataset.

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

Returns y value at index.

Parameters
indexindex
Returns
y value

Implements XYDataset.

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