![]() |
Stellarium 0.15.2
|
Public Types | |
enum | ChartStyle { csOhlc, csCandlestick } |
Public Member Functions | |
QCPFinancial (QCPAxis *keyAxis, QCPAxis *valueAxis) | |
QCPFinancialDataMap * | data () const |
ChartStyle | chartStyle () const |
double | width () const |
bool | twoColored () const |
QBrush | brushPositive () const |
QBrush | brushNegative () const |
QPen | penPositive () const |
QPen | penNegative () const |
void | setData (QCPFinancialDataMap *data, bool copy=false) |
void | setData (const QVector< double > &key, const QVector< double > &open, const QVector< double > &high, const QVector< double > &low, const QVector< double > &close) |
void | setChartStyle (ChartStyle style) |
void | setWidth (double width) |
void | setTwoColored (bool twoColored) |
void | setBrushPositive (const QBrush &brush) |
void | setBrushNegative (const QBrush &brush) |
void | setPenPositive (const QPen &pen) |
void | setPenNegative (const QPen &pen) |
void | addData (const QCPFinancialDataMap &dataMap) |
void | addData (const QCPFinancialData &data) |
void | addData (double key, double open, double high, double low, double close) |
void | addData (const QVector< double > &key, const QVector< double > &open, const QVector< double > &high, const QVector< double > &low, const QVector< double > &close) |
void | removeDataBefore (double key) |
void | removeDataAfter (double key) |
void | removeData (double fromKey, double toKey) |
void | removeData (double key) |
virtual void | clearData () |
virtual double | selectTest (const QPointF &pos, bool onlySelectable, QVariant *details=0) const |
![]() | |
QCPAbstractPlottable (QCPAxis *keyAxis, QCPAxis *valueAxis) | |
QString | name () const |
bool | antialiasedFill () const |
bool | antialiasedScatters () const |
bool | antialiasedErrorBars () const |
QPen | pen () const |
QPen | selectedPen () const |
QBrush | brush () const |
QBrush | selectedBrush () const |
QCPAxis * | keyAxis () const |
QCPAxis * | valueAxis () const |
bool | selectable () const |
bool | selected () const |
void | setName (const QString &name) |
void | setAntialiasedFill (bool enabled) |
void | setAntialiasedScatters (bool enabled) |
void | setAntialiasedErrorBars (bool enabled) |
void | setPen (const QPen &pen) |
void | setSelectedPen (const QPen &pen) |
void | setBrush (const QBrush &brush) |
void | setSelectedBrush (const QBrush &brush) |
void | setKeyAxis (QCPAxis *axis) |
void | setValueAxis (QCPAxis *axis) |
Q_SLOT void | setSelectable (bool selectable) |
Q_SLOT void | setSelected (bool selected) |
virtual bool | addToLegend () |
virtual bool | removeFromLegend () const |
void | rescaleAxes (bool onlyEnlarge=false) const |
void | rescaleKeyAxis (bool onlyEnlarge=false) const |
void | rescaleValueAxis (bool onlyEnlarge=false) const |
![]() | |
QCPLayerable (QCustomPlot *plot, QString targetLayer=QString(), QCPLayerable *parentLayerable=0) | |
bool | visible () const |
QCustomPlot * | parentPlot () const |
QCPLayerable * | parentLayerable () const |
QCPLayer * | layer () const |
bool | antialiased () const |
void | setVisible (bool on) |
Q_SLOT bool | setLayer (QCPLayer *layer) |
bool | setLayer (const QString &layerName) |
void | setAntialiased (bool enabled) |
bool | realVisibility () const |
Static Public Member Functions | |
static QCPFinancialDataMap | timeSeriesToOhlc (const QVector< double > &time, const QVector< double > &value, double timeBinSize, double timeBinOffset=0) |
Protected Member Functions | |
virtual void | draw (QCPPainter *painter) |
virtual void | drawLegendIcon (QCPPainter *painter, const QRectF &rect) const |
virtual QCPRange | getKeyRange (bool &foundRange, SignDomain inSignDomain=sdBoth) const |
virtual QCPRange | getValueRange (bool &foundRange, SignDomain inSignDomain=sdBoth) const |
void | drawOhlcPlot (QCPPainter *painter, const QCPFinancialDataMap::const_iterator &begin, const QCPFinancialDataMap::const_iterator &end) |
void | drawCandlestickPlot (QCPPainter *painter, const QCPFinancialDataMap::const_iterator &begin, const QCPFinancialDataMap::const_iterator &end) |
double | ohlcSelectTest (const QPointF &pos, const QCPFinancialDataMap::const_iterator &begin, const QCPFinancialDataMap::const_iterator &end) const |
double | candlestickSelectTest (const QPointF &pos, const QCPFinancialDataMap::const_iterator &begin, const QCPFinancialDataMap::const_iterator &end) const |
void | getVisibleDataBounds (QCPFinancialDataMap::const_iterator &lower, QCPFinancialDataMap::const_iterator &upper) const |
![]() | |
virtual QRect | clipRect () const |
virtual QCP::Interaction | selectionCategory () const |
void | applyDefaultAntialiasingHint (QCPPainter *painter) const |
virtual void | selectEvent (QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged) |
virtual void | deselectEvent (bool *selectionStateChanged) |
void | coordsToPixels (double key, double value, double &x, double &y) const |
const QPointF | coordsToPixels (double key, double value) const |
void | pixelsToCoords (double x, double y, double &key, double &value) const |
void | pixelsToCoords (const QPointF &pixelPos, double &key, double &value) const |
QPen | mainPen () const |
QBrush | mainBrush () const |
void | applyFillAntialiasingHint (QCPPainter *painter) const |
void | applyScattersAntialiasingHint (QCPPainter *painter) const |
void | applyErrorBarsAntialiasingHint (QCPPainter *painter) const |
double | distSqrToLine (const QPointF &start, const QPointF &end, const QPointF &point) const |
![]() | |
virtual void | parentPlotInitialized (QCustomPlot *parentPlot) |
void | initializeParentPlot (QCustomPlot *parentPlot) |
void | setParentLayerable (QCPLayerable *parentLayerable) |
bool | moveToLayer (QCPLayer *layer, bool prepend) |
void | applyAntialiasingHint (QCPPainter *painter, bool localAntialiased, QCP::AntialiasedElement overrideElement) const |
Protected Attributes | |
QCPFinancialDataMap * | mData |
ChartStyle | mChartStyle |
double | mWidth |
bool | mTwoColored |
QBrush | mBrushPositive |
QBrush | mBrushNegative |
QPen | mPenPositive |
QPen | mPenNegative |
![]() | |
QString | mName |
bool | mAntialiasedFill |
bool | mAntialiasedScatters |
bool | mAntialiasedErrorBars |
QPen | mPen |
QPen | mSelectedPen |
QBrush | mBrush |
QBrush | mSelectedBrush |
QPointer< QCPAxis > | mKeyAxis |
QPointer< QCPAxis > | mValueAxis |
bool | mSelectable |
bool | mSelected |
![]() | |
bool | mVisible |
QCustomPlot * | mParentPlot |
QPointer< QCPLayerable > | mParentLayerable |
QCPLayer * | mLayer |
bool | mAntialiased |
Friends | |
class | QCustomPlot |
class | QCPLegend |
Additional Inherited Members | |
![]() | |
void | selectionChanged (bool selected) |
void | selectableChanged (bool selectable) |
![]() | |
void | layerChanged (QCPLayer *newLayer) |
![]() | |
enum | SignDomain { sdNegative, sdBoth, sdPositive } |
Definition at line 3145 of file qcustomplot.h.
Defines the possible representations of OHLC data in the plot.
Enumerator | |
---|---|
csOhlc |
Open-High-Low-Close bar representation. |
csCandlestick |
Candlestick representation. |
Definition at line 3163 of file qcustomplot.h.