Version: 0.6.0
GanttSimpleDataset Class Reference

#include <ganttsimpledataset.h>

Inheritance diagram for GanttSimpleDataset:
Collaboration diagram for GanttSimpleDataset:

Public Member Functions

 GanttSimpleDataset (size_t dateCount, const wxChar **taskNames, size_t taskNamesCount)
 
void AddSerie (GanttSerie *serie)
 
virtual wxString GetName (size_t index)
 
virtual double GetValue (size_t index, size_t serie)
 
virtual size_t GetSerieCount ()
 
virtual wxString GetSerieName (size_t serie)
 
virtual size_t GetCount ()
 
virtual time_t GetStart (size_t index, size_t serie)
 
virtual time_t GetEnd (size_t index, size_t serie)
 
- Public Member Functions inherited from GanttDataset
 GanttDataset (size_t dateCount)
 
virtual DateTimeDatasetAsDateTimeDataset ()
 
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 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 ()
 
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 simple dataset.

Constructor & Destructor Documentation

GanttSimpleDataset::GanttSimpleDataset ( size_t  dateCount,
const wxChar **  taskNames,
size_t  taskNamesCount 
)

Construct new gantt demo dataset.

Parameters
dateCount
taskNamesnames for tasks
taskNamesCountcount of names

Member Function Documentation

void GanttSimpleDataset::AddSerie ( GanttSerie serie)

Add new serie to dataset.

Parameters
serienew serie

Here is the call graph for this function:

size_t GanttSimpleDataset::GetCount ( )
virtual

Returns task count.

Returns
task count

Implements GanttDataset.

time_t GanttSimpleDataset::GetEnd ( size_t  index,
size_t  serie 
)
virtual

Returns task end time.

Parameters
indextask index
serieserie index
Returns
task end time

Implements GanttDataset.

wxString GanttSimpleDataset::GetName ( size_t  index)
virtual

Returns category name at index.

Parameters
indexindex of category name
Returns
category name

Implements CategoryDataset.

size_t GanttSimpleDataset::GetSerieCount ( )
virtual

Returns serie count in this dataset.

Returns
serie count

Implements Dataset.

wxString GanttSimpleDataset::GetSerieName ( size_t  serie)
virtual

Returns serie name.

Parameters
serieindex
Returns
serie name

Implements Dataset.

time_t GanttSimpleDataset::GetStart ( size_t  index,
size_t  serie 
)
virtual

Returns task start time.

Parameters
indextask index
serieserie index
Returns
task start time

Implements GanttDataset.

double GanttSimpleDataset::GetValue ( size_t  index,
size_t  serie 
)
virtual

Returns value associated with category at index.

Parameters
indexvalue associated with category
Returns
value associated with category

Implements CategoryDataset.


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