30#include "qwt_global.h"
31#include "qwt_interval.h"
73 , interval( min, max )
86 return !( *
this == other );
138 return !( *
this == other );
145 for (
int i = 0; i <
set.size(); i++ )
164 double open = 0.0,
double high = 0.0,
165 double low = 0.0,
double close = 0.0 );
169 bool isValid()
const;
200 double t,
double o,
double h,
double l,
double c )
240 minY = qMin( minY,
high );
241 minY = qMin( minY,
low );
242 minY = qMin( minY,
close );
245 maxY = qMax( maxY,
high );
246 maxY = qMax( maxY,
low );
247 maxY = qMax( maxY,
close );
264 double vx = 0.0,
double vy = 0.0 );
267 double vx = 0.0,
double vy = 0.0 );
295 double posX,
double posY,
double vectorX,
double vectorY )
311 const QPointF& pos,
double vectorX,
double vectorY )
322 return QPointF(
x,
y );
328 return (
vx == 0.0 ) && (
vy == 0.0 );
A sample of the types (x1-x2, y) or (x, y1-y2)
Definition qwt_samples.h:38
QwtInterval interval
Interval.
Definition qwt_samples.h:51
bool operator==(const QwtIntervalSample &) const
Compare operator.
Definition qwt_samples.h:78
bool operator!=(const QwtIntervalSample &) const
Compare operator.
Definition qwt_samples.h:84
QwtIntervalSample()
Constructor The value is set to 0.0, the interval is invalid.
Definition qwt_samples.h:58
double value
Value.
Definition qwt_samples.h:48
A class representing an interval.
Definition qwt_interval.h:40
Open-High-Low-Close sample used in financial charts.
Definition qwt_samples.h:161
double high
Highest price.
Definition qwt_samples.h:181
bool isValid() const
Check if a sample is valid.
Definition qwt_samples.h:220
double open
Opening price.
Definition qwt_samples.h:178
double close
Closing price.
Definition qwt_samples.h:187
double time
Time of the sample, usually a number representing a specific interval - like a day.
Definition qwt_samples.h:175
QwtInterval boundingInterval() const
Calculate the bounding interval of the OHLC values.
Definition qwt_samples.h:237
QwtOHLCSample(double time=0.0, double open=0.0, double high=0.0, double low=0.0, double close=0.0)
Constructor.
Definition qwt_samples.h:199
double low
Lowest price.
Definition qwt_samples.h:184
A sample of the types (x1...xn, y) or (x, y1..yn)
Definition qwt_samples.h:91
double added() const
Definition qwt_samples.h:142
double value
value
Definition qwt_samples.h:102
QVector< double > set
Vector of values associated to value.
Definition qwt_samples.h:105
bool operator!=(const QwtSetSample &other) const
Compare operator.
Definition qwt_samples.h:136
bool operator==(const QwtSetSample &other) const
Compare operator.
Definition qwt_samples.h:130
QwtSetSample()
Constructor The value is set to 0.0.
Definition qwt_samples.h:112
Sample used in vector fields.
Definition qwt_samples.h:261
double y
y coordinate of the position
Definition qwt_samples.h:277
QwtVectorFieldSample(double x=0.0, double y=0.0, double vx=0.0, double vy=0.0)
Constructor.
Definition qwt_samples.h:294
QPointF pos() const
Definition qwt_samples.h:320
bool isNull() const
Definition qwt_samples.h:326
double vx
x coordinate of the vector
Definition qwt_samples.h:280
double x
x coordinate of the position
Definition qwt_samples.h:274
double vy
y coordinate of the vector
Definition qwt_samples.h:283