15 return QRectF( sample.x(), sample.y(), 0.0, 0.0 );
20 return QRectF( sample.
x(), sample.
y(), 0.0, 0.0 );
36 if ( sample.
set.empty() )
37 return QRectF( sample.
value, 0.0, 0.0, -1.0 );
39 double minY = sample.
set[0];
40 double maxY = sample.
set[0];
42 for (
int i = 1; i < sample.
set.size(); i++ )
44 if ( sample.
set[i] < minY )
47 if ( sample.
set[i] > maxY )
51 return QRectF( sample.
value, minY, 0.0, maxY - minY );
69 return QRectF( sample.
x, sample.
y, 0, 0 );
88 QRectF boundingRect( 1.0, 1.0, -2.0, -2.0 );
94 to = series.
size() - 1;
100 for ( i = from; i <= to; i++ )
103 if ( rect.width() >= 0.0 && rect.height() >= 0.0 )
111 for ( ; i <= to; i++ )
114 if ( rect.width() >= 0.0 && rect.height() >= 0.0 )
116 boundingRect.setLeft( qMin( boundingRect.left(), rect.left() ) );
117 boundingRect.setRight( qMax( boundingRect.right(), rect.right() ) );
118 boundingRect.setTop( qMin( boundingRect.top(), rect.top() ) );
119 boundingRect.setBottom( qMax( boundingRect.bottom(), rect.bottom() ) );
140 return qwtBoundingRectT<QPointF>( series, from, to );
157 return qwtBoundingRectT<QwtPoint3D>( series, from, to );
177 return qwtBoundingRectT<QwtPointPolar>( series, from, to );
194 return qwtBoundingRectT<QwtIntervalSample>( series, from, to );
211 return qwtBoundingRectT<QwtOHLCSample>( series, from, to );
228 return qwtBoundingRectT<QwtSetSample>( series, from, to );
245 return qwtBoundingRectT<QwtVectorFieldSample>( series, from, to );
333 d_maxMagnitude( -1.0 )
359 for ( uint i = 0; i <
size(); i++ )
363 const double l = s.
vx * s.
vx + s.
vy * s.
vy;
Open-High-Low-Close sample used in financial charts.
QwtTradingChartData(const QVector< QwtOHLCSample > &=QVector< QwtOHLCSample >())
A point in polar coordinates.
QwtIntervalSeriesData(const QVector< QwtIntervalSample > &=QVector< QwtIntervalSample >())
QwtInterval boundingInterval() const
Calculate the bounding interval of the OHLC values.
QRectF d_boundingRect
Can be used to cache a calculated bounding rectangle.
A class representing an interval.
const QVector< QPointF > samples() const
virtual QRectF boundingRect() const QWT_OVERRIDE
Calculate the bounding rectangle.
Abstract interface for iterating over samples.
double radius() const
Returns the radius.
virtual QRectF boundingRect() const QWT_OVERRIDE
Calculate the bounding rectangle.
double azimuth() const
Returns the azimuth.
virtual size_t size() const QWT_OVERRIDE
A sample of the types (x1...xn, y) or (x, y1..yn)
QwtPoint3D class defines a 3D point in double coordinates.
virtual QRectF boundingRect() const QWT_OVERRIDE
Calculate the bounding rectangle.
A sample of the types (x1-x2, y) or (x, y1-y2)
static QRectF qwtBoundingRect(const QPointF &sample)
virtual QwtVectorFieldSample sample(size_t index) const QWT_OVERRIDE
QwtSetSeriesData(const QVector< QwtSetSample > &=QVector< QwtSetSample >())
Template class for data, that is organized as QVector.
virtual double maxMagnitude() const
virtual QRectF boundingRect() const QWT_OVERRIDE
Calculate the bounding rectangle.
QwtVectorFieldData(const QVector< QwtVectorFieldSample > &=QVector< QwtVectorFieldSample >())
virtual size_t size() const =0
virtual T sample(size_t i) const =0
QwtPointSeriesData(const QVector< QPointF > &=QVector< QPointF >())
virtual QRectF boundingRect() const QWT_OVERRIDE
Calculate the bounding rectangle.
QRectF qwtBoundingRectT(const QwtSeriesData< T > &series, int from, int to)
Calculate the bounding rectangle of a series subset.
QwtPoint3DSeriesData(const QVector< QwtPoint3D > &=QVector< QwtPoint3D >())
double width() const
Return the width of an interval.
QVector< double > set
Vector of values associated to value.
virtual QRectF boundingRect() const QWT_OVERRIDE
Calculate the bounding rectangle.
QwtInterval interval
Interval.