wxFreeChart
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
OHLCDataset Class Referenceabstract

Open-High-Low-Close datasets base class. More...

#include <ohlcdataset.h>

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

Public Member Functions

OHLCRendererGetRenderer ()
 
void SetSerieName (const wxString &serieName)
 Sets serie name. More...
 
virtual OHLCItemGetItem (size_t index)=0
 Returns item on index. More...
 
virtual size_t GetCount ()=0
 Returns item count. More...
 
virtual double GetMinValue (bool verticalAxis)
 Returns minimal value. More...
 
virtual double GetMaxValue (bool verticalAxis)
 Returns maximal value. More...
 
virtual size_t GetSerieCount ()
 Returns serie count in this dataset. More...
 
virtual wxString GetSerieName (size_t serie)
 Returns serie name. More...
 
virtual size_t GetCount (size_t serie)
 Returns value count in serie specified by index. More...
 
virtual DateTimeDatasetAsDateTimeDataset ()
 
virtual time_t GetDate (size_t index)
 Returns date/time for specified index. 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...
 
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 ()
 

Protected Member Functions

virtual bool AcceptRenderer (Renderer *r)
 Checks whether renderer is acceptable by this dataset. More...
 

Protected Attributes

wxString m_serieName
 
- Protected Attributes inherited from Dataset
Rendererm_renderer
 

Detailed Description

Open-High-Low-Close datasets base class.

Definition at line 31 of file ohlcdataset.h.

Member Function Documentation

virtual bool OHLCDataset::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.

Implements Dataset.

virtual size_t OHLCDataset::GetCount ( )
pure virtual

Returns item count.

Returns
item count

Implements DateTimeDataset.

Implemented in OHLCSimpleDataset.

virtual size_t OHLCDataset::GetCount ( size_t  serie)
virtual

Returns value count in serie specified by index.

Parameters
serieindex
Returns
value count

Implements Dataset.

virtual time_t OHLCDataset::GetDate ( size_t  index)
virtual

Returns date/time for specified index.

Parameters
indexindex
Returns
date/time for specified index

Implements DateTimeDataset.

virtual OHLCItem* OHLCDataset::GetItem ( size_t  index)
pure virtual

Returns item on index.

Parameters
indexindex of item

Implemented in OHLCSimpleDataset.

virtual double OHLCDataset::GetMaxValue ( bool  vertical)
virtual

Returns maximal value.

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

Implements Dataset.

virtual double OHLCDataset::GetMinValue ( bool  vertical)
virtual

Returns minimal value.

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

Implements Dataset.

virtual size_t OHLCDataset::GetSerieCount ( )
virtual

Returns serie count in this dataset.

Returns
serie count

Implements Dataset.

virtual wxString OHLCDataset::GetSerieName ( size_t  serie)
virtual

Returns serie name.

Parameters
serieindex
Returns
serie name

Implements Dataset.

void OHLCDataset::SetSerieName ( const wxString &  serieName)
inline

Sets serie name.

OHLC datasets contains only one serie.

Parameters
serieNamenew serie name

Definition at line 47 of file ohlcdataset.h.


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