Version: 0.6.0
GanttDataset Class Referenceabstract

#include <ganttdataset.h>

Inheritance diagram for GanttDataset:
Collaboration diagram for GanttDataset:

Public Member Functions

 GanttDataset (size_t dateCount)
 
virtual DateTimeDatasetAsDateTimeDataset ()
 
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 ()
 
GanttRendererGetRenderer ()
 
- 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)
 
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
 
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

Gantt chart dataset base class.

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.

Here is the caller graph for this function:

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.

Here is the caller graph for this function:


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