27#ifndef QWT_PLOT_VECTOR_FIELD_H
28#define QWT_PLOT_VECTOR_FIELD_H
30#include "qwt_global.h"
31#include "qwt_plot_seriesitem.h"
84 Q_DECLARE_FLAGS( PaintAttributes, PaintAttribute )
98 MagnitudeAsColor = 0x01,
104 MagnitudeAsLength = 0x02
107 Q_DECLARE_FLAGS( MagnitudeModes, MagnitudeMode )
114 void setPaintAttribute( PaintAttribute,
bool on =
true );
115 bool testPaintAttribute( PaintAttribute )
const;
117 void setMagnitudeMode( MagnitudeMode,
bool on =
true );
118 bool testMagnitudeMode( MagnitudeMode )
const;
123 void setPen(
const QPen& );
126 void setBrush(
const QBrush& );
127 QBrush brush()
const;
129 void setRasterSize(
const QSizeF& );
130 QSizeF rasterSize()
const;
132 void setIndicatorOrigin( IndicatorOrigin );
133 IndicatorOrigin indicatorOrigin()
const;
144 void setMinArrowLength(
double );
145 double minArrowLength()
const;
147 void setMaxArrowLength(
double );
148 double maxArrowLength()
const;
150 virtual double arrowLength(
double magnitude )
const;
154 virtual
void drawSeries( QPainter*,
156 const QRectF& canvasRect,
int from,
int to ) const QWT_OVERRIDE;
158 virtual
int rtti() const QWT_OVERRIDE;
161 int index, const QSizeF& ) const QWT_OVERRIDE;
163 void setMagnitudeScaleFactor(
double factor );
164 double magnitudeScaleFactor() const;
167 virtual
void drawSymbols( QPainter*,
169 const QRectF& canvasRect,
int from,
int to ) const;
171 virtual
void drawSymbol( QPainter*,
172 double x,
double y,
double vx,
double vy ) const;
174 virtual
void dataChanged() QWT_OVERRIDE;
QwtColorMap is used to map values into colors.
Definition qwt_color_map.h:56
A paint device for scalable graphics.
Definition qwt_graphic.h:93
A class representing an interval.
Definition qwt_interval.h:40
Base class for plot items representing a series of samples.
Definition qwt_plot_seriesitem.h:43
virtual QRectF boundingRect() const QWT_OVERRIDE
Definition qwt_plot_seriesitem.cpp:114
A plot item, that represents a vector field.
Definition qwt_plot_vectorfield.h:50
IndicatorOrigin
Depending on the origin the indicator symbol ( usually an arrow ) will be to the position of the corr...
Definition qwt_plot_vectorfield.h:57
@ OriginHead
symbol points to the sample position
Definition qwt_plot_vectorfield.h:59
@ OriginTail
The arrow starts at the sample position.
Definition qwt_plot_vectorfield.h:62
MagnitudeMode
Depending on the MagnitudeMode the magnitude component will have an impact on the attributes of the s...
Definition qwt_plot_vectorfield.h:93
PaintAttribute
Attributes to modify the rendering.
Definition qwt_plot_vectorfield.h:73
A scale map.
Definition qwt_scale_map.h:44
Class storing a QwtSeriesData object.
Definition qwt_series_store.h:96
A class representing a text.
Definition qwt_text.h:69
Interface for iterating over an array of vector field samples.
Definition qwt_series_data.h:284
Defines abstract interface for arrow drawing routines.
Definition qwt_vectorfield_symbol.h:50