27#ifndef QWT_PLOT_ITEM_H
28#define QWT_PLOT_ITEM_H
30#include "qwt_global.h"
31#include "qwt_axis_id.h"
201 Rtti_PlotUserItem = 1000
243 Q_DECLARE_FLAGS(ItemAttributes, ItemAttribute)
276 ScaleInterest = 0x01,
295 LegendInterest = 0x02
298 Q_DECLARE_FLAGS(ItemInterests, ItemInterest)
312 RenderAntialiased = 0x1
315 Q_DECLARE_FLAGS(RenderHints, RenderHint)
336 void setTitle(
const QString& title);
338 void setTitle(
const QwtText& title);
343 virtual int rtti()
const;
346 void setItemAttribute(ItemAttribute,
bool on =
true);
348 bool testItemAttribute(ItemAttribute)
const;
351 void setItemInterest(ItemInterest,
bool on =
true);
353 bool testItemInterest(ItemInterest)
const;
356 void setRenderHint(RenderHint,
bool on =
true);
358 bool testRenderHint(RenderHint)
const;
361 void setRenderThreadCount(uint numThreads);
363 uint renderThreadCount()
const;
366 void setLegendIconSize(
const QSize&);
368 QSize legendIconSize()
const;
380 virtual void setVisible(
bool);
382 bool isVisible()
const;
385 void setAxes(QwtAxisId xAxis, QwtAxisId yAxis);
388 void setXAxis(QwtAxisId);
390 QwtAxisId xAxis()
const;
393 void setYAxis(QwtAxisId);
395 QwtAxisId yAxis()
const;
398 virtual void itemChanged();
400 virtual void legendChanged();
424 virtual QRectF boundingRect()
const;
427 virtual void getCanvasMarginHint(
const QwtScaleMap& xMap,
429 const QRectF& canvasRect,
433 double& bottom)
const;
450 virtual QwtGraphic legendIcon(
int index,
const QSizeF&)
const;
454 QwtGraphic defaultIcon(
const QBrush&,
const QSizeF&)
const;
463Q_DECLARE_OPERATORS_FOR_FLAGS(QwtPlotItem::ItemAttributes)
464Q_DECLARE_OPERATORS_FOR_FLAGS(QwtPlotItem::ItemInterests)
465Q_DECLARE_OPERATORS_FOR_FLAGS(QwtPlotItem::RenderHints)
Definition qwt_dyngrid_layout.h:33
A paint device for scalable graphics.
Definition qwt_graphic.h:128
Attributes of an entry on a legend.
Definition qwt_legend_data.h:60
Base class for items on the plot canvas.
Definition qwt_plot_item.h:119
virtual void draw(QPainter *painter, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect) const =0
Draw the item.
RttiValues
Runtime type information.
Definition qwt_plot_item.h:136
@ Rtti_PlotVectorField
For QwtPlotVectorField.
Definition qwt_plot_item.h:189
@ Rtti_PlotLegend
For QwtPlotLegendItem.
Definition qwt_plot_item.h:147
@ Rtti_PlotMarker
For QwtPlotMarker.
Definition qwt_plot_item.h:150
@ Rtti_PlotSpectroCurve
For QwtPlotSpectroCurve.
Definition qwt_plot_item.h:156
@ Rtti_PlotScale
For QwtPlotScaleItem.
Definition qwt_plot_item.h:144
@ Rtti_PlotArrowMarker
For QwtPlotArrowMarker.
Definition qwt_plot_item.h:192
@ Rtti_PlotHistogram
For QwtPlotHistogram.
Definition qwt_plot_item.h:162
@ Rtti_PlotZone
For QwtPlotZoneItem.
Definition qwt_plot_item.h:186
@ Rtti_PlotIntervalCurve
For QwtPlotIntervalCurve.
Definition qwt_plot_item.h:159
@ Rtti_PlotMultiBarChart
For QwtPlotMultiBarChart.
Definition qwt_plot_item.h:177
@ Rtti_PlotBarChart
For QwtPlotBarChart.
Definition qwt_plot_item.h:174
@ Rtti_PlotTradingCurve
For QwtPlotTradingCurve.
Definition qwt_plot_item.h:171
@ Rtti_PlotBoxChart
Boxplot chart item.
Definition qwt_plot_item.h:195
@ Rtti_PlotSpectrogram
For QwtPlotSpectrogram.
Definition qwt_plot_item.h:165
@ Rtti_PlotTextLabel
For QwtPlotTextLabel.
Definition qwt_plot_item.h:183
@ Rtti_PlotShape
For QwtPlotShapeItem.
Definition qwt_plot_item.h:180
@ Rtti_PlotGrid
For QwtPlotGrid.
Definition qwt_plot_item.h:141
@ Rtti_PlotCurve
For QwtPlotCurve.
Definition qwt_plot_item.h:153
@ Rtti_PlotGraphic
For QwtPlotGraphicItem, QwtPlotSvgItem.
Definition qwt_plot_item.h:168
RenderHint
Render hints .
Definition qwt_plot_item.h:310
ItemAttribute
Plot Item Attributes.
Definition qwt_plot_item.h:224
ItemInterest
Plot Item Interests.
Definition qwt_plot_item.h:264
A 2-D plotting widget.
Definition qwt_plot.h:138
A class representing a scale division/表示刻度划分的类
Definition qwt_scale_div.h:53
A scale map.
Definition qwt_scale_map.h:52
A class representing a text.
Definition qwt_text.h:93