11 #define QWT_SAMPLES_H 1    13 #include "qwt_global.h"    14 #include "qwt_interval.h"    55         double v, 
double min, 
double max ):
    72     return !( *
this == other );
    80     QwtSetSample( 
double, 
const QVector<double> & = QVector<double>() );
   124     return !( *
this == other );
   131     for ( 
int i = 0; i < 
set.size(); i++ )
   150         double open = 0.0, 
double high = 0.0,
   151         double low = 0.0, 
double close = 0.0 );
   155     bool isValid() 
const;
   187         double o, 
double h, 
double l, 
double c ):
   227     minY = qMin( minY, 
high );
   228     minY = qMin( minY, 
low );
   229     minY = qMin( minY, 
close );
   232     maxY = qMax( maxY, 
high );
   233     maxY = qMax( maxY, 
low );
   234     maxY = qMax( maxY, 
close );
 double open
Opening price. 
Definition: qwt_samples.h:164
bool operator!=(const QwtSetSample &other) const 
Compare operator. 
Definition: qwt_samples.h:122
bool operator==(const QwtSetSample &other) const 
Compare operator. 
Definition: qwt_samples.h:116
bool isValid() const 
Check if a sample is valid. 
Definition: qwt_samples.h:207
QwtInterval boundingInterval() const 
Calculate the bounding interval of the OHLC values. 
Definition: qwt_samples.h:224
QwtInterval interval
Interval. 
Definition: qwt_samples.h:33
QwtIntervalSample()
Definition: qwt_samples.h:40
double high
Highest price. 
Definition: qwt_samples.h:167
double time
Definition: qwt_samples.h:161
double close
Closing price. 
Definition: qwt_samples.h:173
A sample of the types (x1-x2, y) or (x, y1-y2) 
Definition: qwt_samples.h:19
bool operator!=(const QwtIntervalSample &) const 
Compare operator. 
Definition: qwt_samples.h:69
double value
Value. 
Definition: qwt_samples.h:30
double added() const 
Definition: qwt_samples.h:128
QwtOHLCSample(double time=0.0, double open=0.0, double high=0.0, double low=0.0, double close=0.0)
Definition: qwt_samples.h:186
bool operator==(const QwtIntervalSample &) const 
Compare operator. 
Definition: qwt_samples.h:62
Open-High-Low-Close sample used in financial charts. 
Definition: qwt_samples.h:146
QwtSetSample()
Definition: qwt_samples.h:98
A sample of the types (x1...xn, y) or (x, y1..yn) 
Definition: qwt_samples.h:76
double value
value 
Definition: qwt_samples.h:88
A class representing an interval. 
Definition: qwt_interval.h:26
double low
Lowest price. 
Definition: qwt_samples.h:170
QVector< double > set
Vector of values associated to value. 
Definition: qwt_samples.h:91