15 return QRectF( sample.x(), sample.y(), 0.0, 0.0 );
20 return QRectF( sample.
x(), sample.
y(), 0.0, 0.0 );
36 double minY = sample.
set[0];
37 double maxY = sample.
set[0];
39 for (
int i = 1;
i < sample.
set.size();
i++ )
41 if ( sample.
set[
i] < minY )
43 if ( sample.
set[
i] > maxY )
47 double minX = sample.
value;
48 double maxX = sample.
value;
50 return QRectF( minX, minY, maxX - minX, maxY - minY );
75 QRectF boundingRect( 1.0, 1.0, -2.0, -2.0 );
81 to = series.
size() - 1;
87 for ( i = from; i <= to; i++ )
90 if ( rect.width() >= 0.0 && rect.height() >= 0.0 )
98 for ( ; i <= to; i++ )
101 if ( rect.width() >= 0.0 && rect.height() >= 0.0 )
103 boundingRect.setLeft( qMin( boundingRect.left(), rect.left() ) );
104 boundingRect.setRight( qMax( boundingRect.right(), rect.right() ) );
105 boundingRect.setTop( qMin( boundingRect.top(), rect.top() ) );
106 boundingRect.setBottom( qMax( boundingRect.bottom(), rect.bottom() ) );
127 return qwtBoundingRectT<QPointF>( series, from, to );
144 return qwtBoundingRectT<QwtPoint3D>( series, from, to );
164 return qwtBoundingRectT<QwtPointPolar>( series, from, to );
181 return qwtBoundingRectT<QwtIntervalSample>( series, from, to );
198 return qwtBoundingRectT<QwtOHLCSample>( series, from, to );
215 return qwtBoundingRectT<QwtSetSample>( series, from, to );
223 const QVector<QPointF> &samples ):
249 const QVector<QwtPoint3D> &
samples ):
275 const QVector<QwtIntervalSample> &
samples ):
301 const QVector<QwtSetSample> &
samples ):
327 const QVector<QwtOHLCSample> &
samples ):
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.
virtual QRectF boundingRect() const
Calculate the bounding rectangle.
const QVector< QPointF > samples() const
Abstract interface for iterating over samples.
double radius() const
Returns the radius.
virtual QRectF boundingRect() const
Calculate the bounding rectangle.
double azimuth() const
Returns the azimuth.
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
Calculate the bounding rectangle.
A sample of the types (x1-x2, y) or (x, y1-y2)
static QRectF qwtBoundingRect(const QPointF &sample)
QwtSetSeriesData(const QVector< QwtSetSample > &=QVector< QwtSetSample >())
Template class for data, that is organized as QVector.
virtual QRectF boundingRect() const
Calculate the bounding rectangle.
virtual size_t size() const =0
virtual T sample(size_t i) const =0
QwtPointSeriesData(const QVector< QPointF > &=QVector< QPointF >())
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.
virtual QRectF boundingRect() const
Calculate the bounding rectangle.
QVector< double > set
Vector of values associated to value.
QwtInterval interval
Interval.