29 template<
typename T >
class QList;
32 #define QWT_AXIS_COMPAT 1 82 Q_PROPERTY( QBrush canvasBackground
83 READ canvasBackground WRITE setCanvasBackground )
85 Q_PROPERTY(
bool autoReplot READ autoReplot WRITE setAutoReplot )
108 explicit QwtPlot( QWidget* = NULL );
113 void setAutoReplot(
bool =
true );
114 bool autoReplot()
const;
125 void setTitle(
const QString& );
126 void setTitle(
const QwtText& );
134 void setFooter(
const QString& );
135 void setFooter(
const QwtText& );
143 void setCanvas( QWidget* );
146 const QWidget* canvas()
const;
148 void setCanvasBackground(
const QBrush& );
149 QBrush canvasBackground()
const;
153 double invTransform(
QwtAxisId,
double pos )
const;
160 void setAxisVisible(
QwtAxisId,
bool on =
true );
169 void setAxisAutoScale(
QwtAxisId,
bool on =
true );
172 void setAxisFont(
QwtAxisId,
const QFont& );
175 void setAxisScale(
QwtAxisId,
double min,
double max,
double stepSize = 0 );
189 void setAxisLabelAlignment(
QwtAxisId, Qt::Alignment );
190 void setAxisLabelRotation(
QwtAxisId,
double rotation );
192 void setAxisTitle(
QwtAxisId,
const QString& );
196 void setAxisMaxMinor(
QwtAxisId,
int maxMinor );
199 void setAxisMaxMajor(
QwtAxisId,
int maxMajor );
218 virtual
void updateLayout();
219 virtual
void drawCanvas( QPainter* );
222 void updateCanvasMargins();
224 virtual
void getCanvasMarginsHint(
225 const
QwtScaleMap maps[], const QRectF& canvasRect,
226 double&
left,
double&
top,
double&
right,
double& bottom) const;
228 virtual
bool event( QEvent* ) QWT_OVERRIDE;
229 virtual
bool eventFilter( QObject*, QEvent* ) QWT_OVERRIDE;
231 virtual
void drawItems( QPainter*, const QRectF&,
235 virtual
QwtPlotItem* infoToItem( const QVariant& ) const;
250 setAxisVisible( axisId, on );
255 return isAxisVisible( axisId );
266 void itemAttached(
QwtPlotItem* plotItem,
bool on );
278 void legendDataChanged(
const QVariant& itemInfo,
282 virtual void replot();
290 void updateLegendItems(
const QVariant& itemInfo,
298 void deleteAxesData();
void enableAxis(int axisId, bool on=true)
const QwtText & title() const
A Widget which displays a QwtText.
A class representing an interval.
A class representing a scale division.
A dictionary for plot items.
The legend will be below the footer.
bool axisEnabled(int axisId) const
Y axis right of the canvas.
A class representing a text.
The legend will be right from the QwtAxis::YRight axis.
Y axis left of the canvas.
The legend will be left from the QwtAxis::YLeft axis.
int QwtAxisId
Axis identifier.
Abstract base class for legend widgets.
Layout engine for QwtPlot.
virtual void updateScaleDiv(const QwtScaleDiv &, const QwtScaleDiv &)
Update the item to changes of the axes scale division.
A class for drawing scales.
Base class for items on the plot canvas.
Base class for scale engines.