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 );
87 QRectF boundingRect( 1.0, 1.0, -2.0, -2.0 );
93 to = series.
size() - 1;
99 for ( i = from; i <= to; i++ )
102 if ( rect.width() >= 0.0 && rect.height() >= 0.0 )
110 for ( ; i <= to; i++ )
113 if ( rect.width() >= 0.0 && rect.height() >= 0.0 )
115 boundingRect.setLeft( qMin( boundingRect.left(), rect.left() ) );
116 boundingRect.setRight( qMax( boundingRect.right(), rect.right() ) );
117 boundingRect.setTop( qMin( boundingRect.top(), rect.top() ) );
118 boundingRect.setBottom( qMax( boundingRect.bottom(), rect.bottom() ) );
138 return qwtBoundingRectT< QPointF >( series, from, to );
155 return qwtBoundingRectT< QwtPoint3D >( series, from, to );
175 return qwtBoundingRectT< QwtPointPolar >( series, from, to );
192 return qwtBoundingRectT< QwtIntervalSample >( series, from, to );
209 return qwtBoundingRectT< QwtOHLCSample >( series, from, to );
226 return qwtBoundingRectT< QwtSetSample >( series, from, to );
243 return qwtBoundingRectT< QwtVectorFieldSample >( series, from, to );
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 >())
double radius() const
Returns the radius.
A class representing an interval.
virtual QRectF boundingRect() const QWT_OVERRIDE
Calculate the bounding rectangle.
Abstract interface for iterating over samples.
virtual QRectF boundingRect() const QWT_OVERRIDE
Calculate the bounding rectangle.
const QVector< QPointF > samples() const
double x
x coordinate of the position
A sample of the types (x1...xn, y) or (x, y1..yn)
QRectF cachedBoundingRect
Can be used to cache a calculated bounding rectangle.
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)
Sample used in vector fields.
QwtSetSeriesData(const QVector< QwtSetSample > &=QVector< QwtSetSample >())
Template class for data, that is organized as QVector.
double azimuth() const
Returns the azimuth.
double width() const
Return the width of an interval.
double y
y coordinate of the position
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 >())
QVector< double > set
Vector of values associated to value.
QwtInterval boundingInterval() const
Calculate the bounding interval of the OHLC values.
virtual QRectF boundingRect() const QWT_OVERRIDE
Calculate the bounding rectangle.
QwtInterval interval
Interval.