78 Q_PROPERTY( QBrush canvasBackground
79 READ canvasBackground WRITE setCanvasBackground )
80 Q_PROPERTY(
bool autoReplot READ autoReplot WRITE setAutoReplot )
87 Q_PROPERTY( QString propertiesDocument
88 READ grabProperties WRITE applyProperties )
131 explicit QwtPlot( QWidget * = NULL );
136 void applyProperties(
const QString & );
137 QString grabProperties()
const;
139 void setAutoReplot(
bool =
true );
140 bool autoReplot()
const;
151 void setTitle(
const QString & );
152 void setTitle(
const QwtText &t );
160 void setFooter(
const QString & );
161 void setFooter(
const QwtText &t );
169 void setCanvas( QWidget * );
172 const QWidget *canvas()
const;
174 void setCanvasBackground(
const QBrush & );
175 QBrush canvasBackground()
const;
179 double invTransform(
int axisId,
int pos )
const;
180 double transform(
int axisId,
double value )
const;
188 void setAxisAutoScale(
int axisId,
bool on =
true );
189 bool axisAutoScale(
int axisId )
const;
191 void enableAxis(
int axisId,
bool tf =
true );
192 bool axisEnabled(
int axisId )
const;
194 void setAxisFont(
int axisId,
const QFont &f );
195 QFont axisFont(
int axisId )
const;
197 void setAxisScale(
int axisId,
double min,
double max,
double step = 0 );
198 void setAxisScaleDiv(
int axisId,
const QwtScaleDiv & );
201 double axisStepSize(
int axisId )
const;
204 const QwtScaleDiv &axisScaleDiv(
int axisId )
const;
212 void setAxisLabelAlignment(
int axisId, Qt::Alignment );
213 void setAxisLabelRotation(
int axisId,
double rotation );
215 void setAxisTitle(
int axisId,
const QString & );
216 void setAxisTitle(
int axisId,
const QwtText & );
217 QwtText axisTitle(
int axisId )
const;
219 void setAxisMaxMinor(
int axisId,
int maxMinor );
220 int axisMaxMinor(
int axisId )
const;
222 void setAxisMaxMajor(
int axisId,
int maxMajor );
223 int axisMaxMajor(
int axisId )
const;
238 virtual QSize sizeHint()
const;
239 virtual QSize minimumSizeHint()
const;
241 virtual void updateLayout();
242 virtual void drawCanvas( QPainter * );
245 void updateCanvasMargins();
247 virtual void getCanvasMarginsHint(
248 const QwtScaleMap maps[],
const QRectF &canvasRect,
249 double &left,
double &top,
double &right,
double &bottom)
const;
251 virtual bool event( QEvent * );
252 virtual bool eventFilter( QObject *, QEvent * );
254 virtual void drawItems( QPainter *,
const QRectF &,
257 virtual QVariant itemToInfo(
QwtPlotItem * )
const;
258 virtual QwtPlotItem *infoToItem(
const QVariant & )
const;
267 void itemAttached(
QwtPlotItem *plotItem,
bool on );
279 void legendDataChanged(
const QVariant &itemInfo,
280 const QList<QwtLegendData> &data );
283 virtual void replot();
287 static bool axisValid(
int axisId );
289 virtual void resizeEvent( QResizeEvent *e );
292 void updateLegendItems(
const QVariant &itemInfo,
293 const QList<QwtLegendData> &data );
300 void deleteAxesData();
A Widget which displays a QwtText.
A class representing an interval.
Y axis right of the canvas.
A class representing a scale division.
Y axis left of the canvas.
A dictionary for plot items.
The legend will be below the footer.
A class representing a text.
The legend will be right from the QwtPlot::yRight axis.
The legend will be left from the QwtPlot::yLeft axis.
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.
const QwtText & title() const