wxFreeChart
Public Member Functions | List of all members
GanttDataset Class Referenceabstract

Gantt chart dataset base class. More...

#include <ganttdataset.h>

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

Public Member Functions

 GanttDataset (size_t dateCount)
 Constructs new gantt dataset. More...
 
virtual DateTimeDatasetAsDateTimeDataset ()
 
virtual size_t GetCount ()=0
 Returns task count. More...
 
virtual time_t GetStart (size_t index, size_t serie)=0
 Returns task start time. More...
 
virtual time_t GetEnd (size_t index, size_t serie)=0
 Returns task end time. More...
 
virtual size_t GetCount (size_t serie)
 Returns task count in specified serie. More...
 
virtual time_t GetMinStart ()
 
virtual time_t GetMaxEnd ()
 
time_t GetDateInterval ()
 
size_t GetDateCount ()
 
GanttRendererGetRenderer ()
 
- Public Member Functions inherited from CategoryDataset
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 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...
 
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...
 
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 ()
 

Additional Inherited Members

- Protected Member Functions inherited from CategoryDataset
virtual bool AcceptRenderer (Renderer *r)
 Checks whether renderer is acceptable by this dataset. More...
 
- Protected Attributes inherited from Dataset
Rendererm_renderer
 

Detailed Description

Gantt chart dataset base class.

Definition at line 40 of file ganttdataset.h.

Constructor & Destructor Documentation

GanttDataset::GanttDataset ( size_t  dateCount)

Constructs new gantt dataset.

Parameters
dateCountcount of dates for date axis. TODO: this looks bad: date count must be set to axis, not to dataset.

Member Function Documentation

virtual size_t GanttDataset::GetCount ( )
pure virtual

Returns task count.

Returns
task count

Implements CategoryDataset.

Implemented in GanttSimpleDataset.

virtual size_t GanttDataset::GetCount ( size_t  serie)
virtual

Returns task count in specified serie.

Parameters
serieserie index
Returns
task count

Reimplemented from CategoryDataset.

virtual time_t GanttDataset::GetEnd ( size_t  index,
size_t  serie 
)
pure virtual

Returns task end time.

Parameters
indextask index
serieserie index
Returns
task end time

Implemented in GanttSimpleDataset.

virtual time_t GanttDataset::GetStart ( size_t  index,
size_t  serie 
)
pure virtual

Returns task start time.

Parameters
indextask index
serieserie index
Returns
task start time

Implemented in GanttSimpleDataset.


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