Version: 0.6.0

#include <ohlcdataset.h>

Inheritance diagram for OHLCDataset:
Collaboration diagram for OHLCDataset:

Public Member Functions

OHLCRendererGetRenderer ()
 
void SetSerieName (const wxString &serieName)
 
virtual OHLCItemGetItem (size_t index)=0
 
virtual size_t GetCount ()=0
 
virtual double GetMinValue (bool verticalAxis)
 
virtual double GetMaxValue (bool verticalAxis)
 
virtual size_t GetSerieCount ()
 
virtual wxString GetSerieName (size_t serie)
 
virtual size_t GetCount (size_t serie)
 
virtual DateTimeDatasetAsDateTimeDataset ()
 
virtual time_t GetDate (size_t index)
 
- 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)
 

Protected Member Functions

virtual bool AcceptRenderer (Renderer *r)
 
- Protected Member Functions inherited from Dataset
void DatasetChanged ()
 

Protected Attributes

wxString m_serieName
 
- Protected Attributes inherited from Dataset
Rendererm_renderer
 
- Protected Attributes inherited from Observable< DatasetObserver >
std::vector< DatasetObserver * > observers
 

Additional Inherited Members

- Public Types inherited from Observable< DatasetObserver >
typedef DatasetObserver Observer
 
- Public Attributes inherited from Observable< DatasetObserver >
std::vector< DatasetObserver * >
::iterator 
OIt
 

Detailed Description

Open-High-Low-Close datasets base class.

Member Function Documentation

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.

Here is the caller graph for this function:

virtual size_t OHLCDataset::GetCount ( size_t  serie)
virtual

Returns value count in serie specified by index.

Parameters
serieindex
Returns
value count

Implements Dataset.

time_t OHLCDataset::GetDate ( size_t  index)
virtual

Returns date/time for specified index.

Parameters
indexindex
Returns
date/time for specified index

Implements DateTimeDataset.

Here is the call graph for this function:

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

Returns item on index.

Parameters
indexindex of item

Implemented in OHLCSimpleDataset.

Here is the caller graph for this function:

double OHLCDataset::GetMaxValue ( bool  vertical)
virtual

Returns maximal value.

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

Implements Dataset.

Here is the call graph for this function:

double OHLCDataset::GetMinValue ( bool  vertical)
virtual

Returns minimal value.

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

Implements Dataset.

Here is the call graph for this function:

size_t OHLCDataset::GetSerieCount ( )
virtual

Returns serie count in this dataset.

Returns
serie count

Implements Dataset.

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

Here is the call graph for this function:


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