#include <ganttdataset.h>
Public Member Functions | |
GanttDataset (size_t dateCount) | |
virtual DateTimeDataset * | AsDateTimeDataset () |
virtual size_t | GetCount ()=0 |
virtual time_t | GetStart (size_t index, size_t serie)=0 |
virtual time_t | GetEnd (size_t index, size_t serie)=0 |
virtual size_t | GetCount (size_t serie) |
virtual time_t | GetMinStart () |
virtual time_t | GetMaxEnd () |
time_t | GetDateInterval () |
size_t | GetDateCount () |
GanttRenderer * | GetRenderer () |
Public Member Functions inherited from CategoryDataset | |
virtual double | GetValue (size_t index, size_t serie)=0 |
virtual wxString | GetName (size_t index)=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) |
BarRenderer * | GetRenderer () |
Public Member Functions inherited from XYDataset | |
XYRenderer * | GetRenderer () |
virtual double | GetMaxY () |
virtual double | GetMinY () |
virtual double | GetMaxX () |
virtual double | GetMinX () |
Public Member Functions inherited from Dataset | |
void | SetRenderer (Renderer *renderer) |
Renderer * | GetBaseRenderer () |
void | BeginUpdate () |
void | EndUpdate () |
virtual size_t | GetSerieCount ()=0 |
virtual wxString | GetSerieName (size_t serie)=0 |
void | AddMarker (Marker *marker) |
size_t | GetMarkersCount () |
Marker * | GetMarker (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 | |
Renderer * | m_renderer |
Protected Attributes inherited from Observable< DatasetObserver > | |
std::vector< DatasetObserver * > | observers |
Gantt chart dataset base class.
GanttDataset::GanttDataset | ( | size_t | dateCount | ) |
Constructs new gantt dataset.
dateCount | count of dates for date axis. TODO: this looks bad: date count must be set to axis, not to dataset. |
|
pure virtual |
Returns task count.
Implements CategoryDataset.
Implemented in GanttSimpleDataset.
|
virtual |
Returns task count in specified serie.
serie | serie index |
Reimplemented from CategoryDataset.
|
pure virtual |
Returns task end time.
index | task index |
serie | serie index |
Implemented in GanttSimpleDataset.
|
pure virtual |
Returns task start time.
index | task index |
serie | serie index |
Implemented in GanttSimpleDataset.