138 setPen( QPen( color, width, style ) );
264 if ( !rect.isValid() )
269 rect = QRectF( rect.y(), rect.x(),
270 rect.height(), rect.width() );
299 const QVector<QwtIntervalSample> &samples )
335 const QRectF &,
int from,
int to )
const 349 drawLines( painter, xMap, yMap, from, to );
375 int from,
int to )
const 387 for (
int i = from;
i <= to;
i++ )
416 if ( polygon.size() == 0 )
417 polygon += QPointF( x1, v0 );
419 polygon += QPointF( x1, y );
420 polygon += QPointF( x2, y );
434 if ( polygon.size() == 0 )
435 polygon += QPointF( v0, y1 );
437 polygon += QPointF( x, y1 );
438 polygon += QPointF( x, y2 );
460 int from,
int to )
const 467 for (
int i = from;
i <= to;
i++ )
492 int from,
int to )
const 497 painter->setBrush( Qt::NoBrush );
501 for (
int i = from;
i <= to;
i++ )
511 r.setLeft( qRound( r.left() ) );
512 r.setRight( qRound( r.right() ) );
513 r.setTop( qRound( r.top() ) );
514 r.setBottom( qRound( r.bottom() ) );
522 r.topRight(), r.bottomRight() );
528 r.topLeft(), r.bottomLeft() );
534 r.bottomRight(), r.bottomLeft() );
540 r.topRight(), r.topLeft() );
550 double baseLine, QPolygonF &polygon )
const 552 if ( polygon.size() == 0 )
556 polygon += QPointF( baseLine, polygon.last().y() );
558 polygon += QPointF( polygon.last().x(), baseLine );
562 painter->setPen( Qt::NoPen );
567 polygon += QPointF( polygon.last().x(), baseLine );
568 polygon += QPointF( polygon.first().x(), baseLine );
572 polygon += QPointF( baseLine, polygon.last().y() );
573 polygon += QPointF( baseLine, polygon.first().y() );
583 painter->setBrush( Qt::NoBrush );
665 r.setLeft( qRound( r.left() ) );
666 r.setRight( qRound( r.right() ) );
667 r.setTop( qRound( r.top() ) );
668 r.setBottom( qRound( r.bottom() ) );
686 const QSizeF &size )
const static bool qwtIsCombinable(const QwtInterval &d1, const QwtInterval &d2)
virtual void legendChanged()
virtual size_t dataSize() const
Qt::Orientation orientation() const
QwtInterval vInterval
Interval for the vertical coordinates.
static void drawLine(QPainter *, double x1, double y1, double x2, double y2)
Wrapper for QPainter::drawLine()
void setStyle(HistogramStyle style)
virtual QRectF boundingRect() const =0
A class representing an interval.
void setPen(const QColor &, qreal width=0.0, Qt::PenStyle=Qt::SolidLine)
Max value is not included in the interval.
virtual void drawColumn(QPainter *, const QwtColumnRect &, const QwtIntervalSample &) const
virtual QwtGraphic legendIcon(int index, const QSizeF &) const
A drawing primitive for columns.
void drawLines(QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, int from, int to) const
void setData(QwtSeriesData< QwtIntervalSample > *series)
const QwtColumnSymbol * symbol
Direction direction
Direction.
void setSamples(const QVector< QwtIntervalSample > &)
virtual ~QwtPlotHistogram()
Destructor.
QwtSeriesData< QwtIntervalSample > * data()
QwtGraphic defaultIcon(const QBrush &, const QSizeF &) const
Return a default icon from a brush.
TFSIMD_FORCE_INLINE const tfScalar & y() const
No Style, the symbol draws nothing.
void drawColumns(QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, int from, int to) const
HistogramStyle style() const
void init()
Initialize data members.
The item is represented on the legend.
const QwtColumnSymbol * symbol() const
static void drawPolygon(QPainter *, const QPolygonF &)
Wrapper for QPainter::drawPolygon()
void setInterval(double minValue, double maxValue, BorderFlags=IncludeBorders)
static void drawRect(QPainter *, double x, double y, double w, double h)
Wrapper for QPainter::drawRect()
A sample of the types (x1-x2, y) or (x, y1-y2)
void setBaseline(double reference)
Set the value of the baseline.
A class representing a text.
void setZ(double z)
Set the z value.
Min value is not included in the interval.
A paint device for scalable graphics.
QwtPlotHistogram::HistogramStyle style
TFSIMD_FORCE_INLINE const tfScalar & x() const
virtual QRectF boundingRect() const
BorderFlags borderFlags() const
QwtIntervalSample sample(int index) const
virtual void itemChanged()
QwtPlotHistogram(const QString &title=QString())
void setBrush(const QBrush &)
Interface for iterating over an array of intervals.
static void drawPolyline(QPainter *, const QPolygonF &)
Wrapper for QPainter::drawPolyline()
void drawOutline(QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, int from, int to) const
Directed rectangle representing bounding rectangle and orientation of a column.
virtual void draw(QPainter *, const QwtColumnRect &) const
virtual QwtColumnRect columnRect(const QwtIntervalSample &, const QwtScaleMap &, const QwtScaleMap &) const
QwtInterval hInterval
Interval for the horizontal coordinates.
virtual T sample(size_t i) const =0
const QBrush & brush() const
Base class for plot items representing a series of samples.
void setItemAttribute(ItemAttribute, bool on=true)
double transform(double s) const
void setSymbol(const QwtColumnSymbol *)
Assign a symbol.
void flushPolygon(QPainter *, double baseLine, QPolygonF &) const
Internal, used by the Outline style.
static bool roundingAlignment()
virtual void drawSeries(QPainter *p, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect, int from, int to) const
const QwtText & title() const
QwtInterval interval
Interval.