#include <ohlcdataset.h>
Public Member Functions | |
OHLCRenderer * | GetRenderer () |
void | SetSerieName (const wxString &serieName) |
virtual OHLCItem * | GetItem (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 DateTimeDataset * | AsDateTimeDataset () |
virtual time_t | GetDate (size_t index) |
Public Member Functions inherited from Dataset | |
void | SetRenderer (Renderer *renderer) |
Renderer * | GetBaseRenderer () |
void | BeginUpdate () |
void | EndUpdate () |
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) |
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 | |
Renderer * | m_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 |
Open-High-Low-Close datasets base class.
|
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.
|
pure virtual |
Returns item count.
Implements DateTimeDataset.
Implemented in OHLCSimpleDataset.
|
virtual |
Returns value count in serie specified by index.
serie | index |
Implements Dataset.
|
virtual |
Returns date/time for specified index.
index | index |
Implements DateTimeDataset.
|
pure virtual |
Returns item on index.
index | index of item |
Implemented in OHLCSimpleDataset.
|
virtual |
Returns maximal value.
vertical | for datasets with XY coordinates, specifies direction |
Implements Dataset.
|
virtual |
Returns minimal value.
vertical | for datasets with XY coordinates, specifies direction |
Implements Dataset.
|
virtual |
|
virtual |
|
inline |
Sets serie name. OHLC datasets contains only one serie.
serieName | new serie name |