QWT API (中文) 7.0.1
Qt绘图库 - 中文API文档
载入中...
搜索中...
未找到
| Public 类型 | Public 成员函数 | Protected 成员函数 | 所有成员列表
QwtPolarCurve类 参考

表示一系列点的绘图项 更多...

#include <qwt_polar_curve.h>

类 QwtPolarCurve 继承关系图:
QwtPolarItem

class  PrivateData
 

Public 类型

enum  CurveStyle { NoCurve , Lines , UserCurve = 100 }
 曲线样式 更多...
 
enum  LegendAttribute { LegendShowLine = 0x01 , LegendShowSymbol = 0x02 }
 在图例上表示曲线的属性 更多...
 
- Public 类型 继承自 QwtPolarItem
enum  RttiValues {
  Rtti_PolarItem = 0 , Rtti_PolarGrid , Rtti_PolarMarker , Rtti_PolarCurve ,
  Rtti_PolarSpectrogram , Rtti_PolarUserItem = 1000
}
 
enum  ItemAttribute { Legend = 0x01 , AutoScale = 0x02 }
 
enum  RenderHint { RenderAntialiased = 0x01 }
 

Public 成员函数

 QwtPolarCurve ()
 Constructor
 
 QwtPolarCurve (const QwtText &title)
 Constructor with title
 
 QwtPolarCurve (const QString &title)
 Constructor with title string
 
virtual ~QwtPolarCurve ()
 Destructor
 
virtual int rtti () const override
 Get the runtime type information
 
void setLegendAttribute (LegendAttribute, bool on=true)
 Set a legend attribute
 
bool testLegendAttribute (LegendAttribute) const
 Test a legend attribute
 
void setData (QwtSeriesData< QwtPointPolar > *data)
 Set the data
 
const QwtSeriesData< QwtPointPolar > * data () const
 Get the data
 
size_t dataSize () const
 Get the data size
 
QwtPointPolar sample (int i) const
 Get a sample
 
void setPen (const QPen &)
 Set the pen
 
const QPen & pen () const
 Get the pen
 
void setStyle (CurveStyle style)
 Set the curve style
 
CurveStyle style () const
 Get the curve style
 
void setSymbol (QwtSymbol *)
 Set the symbol
 
const QwtSymbolsymbol () const
 Get the symbol
 
void setCurveFitter (QwtCurveFitter *)
 Set the curve fitter
 
QwtCurveFittercurveFitter () const
 Get the curve fitter
 
virtual void draw (QPainter *p, const QwtScaleMap &azimuthMap, const QwtScaleMap &radialMap, const QPointF &pole, double radius, const QRectF &canvasRect) const override
 Draw the curve
 
virtual void draw (QPainter *p, const QwtScaleMap &azimuthMap, const QwtScaleMap &radialMap, const QPointF &pole, int from, int to) const
 Draw the curve from index to index
 
virtual QwtInterval boundingInterval (int scaleId) const override
 Get the bounding interval for a scale
 
virtual QwtGraphic legendIcon (int index, const QSizeF &) const override
 Get the legend icon
 
- Public 成员函数 继承自 QwtPolarItem
 QwtPolarItem (const QwtText &title=QwtText())
 Constructor
 
virtual ~QwtPolarItem ()
 Destructor
 
void attach (QwtPolarPlot *plot)
 Attach the item to a plot
 
void detach ()
 Detach the item from its plot
 
QwtPolarPlotplot () const
 Get the attached plot
 
void setTitle (const QString &title)
 Set the title from a QString
 
void setTitle (const QwtText &title)
 Set the title from a QwtText
 
const QwtTexttitle () const
 Get the title
 
void setItemAttribute (ItemAttribute, bool on=true)
 Set an item attribute
 
bool testItemAttribute (ItemAttribute) const
 Test an item attribute
 
void setRenderHint (RenderHint, bool on=true)
 Set a render hint
 
bool testRenderHint (RenderHint) const
 Test a render hint
 
void setRenderThreadCount (uint numThreads)
 Set the number of render threads
 
uint renderThreadCount () const
 Get the number of render threads
 
double z () const
 Get the z value
 
void setZ (double z)
 Set the z value
 
void show ()
 Show the item
 
void hide ()
 Hide the item
 
virtual void setVisible (bool)
 Set the visibility
 
bool isVisible () const
 Get the visibility
 
virtual void itemChanged ()
 Update the item and trigger autoRefresh
 
virtual void legendChanged ()
 Update the legend
 
virtual void updateScaleDiv (const QwtScaleDiv &, const QwtScaleDiv &, const QwtInterval &)
 Update the scale division
 
virtual int marginHint () const
 Get the margin hint
 
void setLegendIconSize (const QSize &)
 Set the legend icon size
 
QSize legendIconSize () const
 Get the legend icon size
 
virtual QList< QwtLegendDatalegendData () const
 Get the legend data
 

Protected 成员函数

void init ()
 Initialize the curve
 
virtual void drawCurve (QPainter *, int style, const QwtScaleMap &azimuthMap, const QwtScaleMap &radialMap, const QPointF &pole, int from, int to) const
 Draw the curve
 
virtual void drawSymbols (QPainter *, const QwtSymbol &, const QwtScaleMap &azimuthMap, const QwtScaleMap &radialMap, const QPointF &pole, int from, int to) const
 Draw the symbols
 
void drawLines (QPainter *, const QwtScaleMap &azimuthMap, const QwtScaleMap &radialMap, const QPointF &pole, int from, int to) const
 Draw the lines
 

详细描述

表示一系列点的绘图项

成员枚举类型说明

◆ CurveStyle

曲线样式

枚举值
NoCurve 

Don't draw a curve. Note: This doesn't affect the symbols.

Lines 

用直线连接点。根据 'Fitted' 属性,线条可能会被插值。 可以使用 setCurveFitter() 配置曲线拟合。

UserCurve 

Values > 100 are reserved for user specific curve styles

◆ LegendAttribute

在图例上表示曲线的属性

枚举值
LegendShowLine 

如果 curveStyle() 不是 NoCurve,则使用 curvePen() 绘制一条线。

LegendShowSymbol 

如果曲线有有效的符号,则绘制该符号。

构造及析构函数说明

◆ QwtPolarCurve() [1/3]

QwtPolarCurve::QwtPolarCurve ( )
explicit

Constructor

构造函数

◆ QwtPolarCurve() [2/3]

QwtPolarCurve::QwtPolarCurve ( const QwtText title)
explicit

Constructor with title

带标题的构造函数

◆ QwtPolarCurve() [3/3]

QwtPolarCurve::QwtPolarCurve ( const QString &  title)
explicit

Constructor with title string

带标题字符串的构造函数

◆ ~QwtPolarCurve()

QwtPolarCurve::~QwtPolarCurve ( )
virtual

Destructor

析构函数

成员函数说明

◆ boundingInterval()

QwtInterval QwtPolarCurve::boundingInterval ( int  scaleId) const
overridevirtual

Get the bounding interval for a scale

获取显示项所需的边界区间

重载 QwtPolarItem .

◆ curveFitter()

QwtCurveFitter * QwtPolarCurve::curveFitter ( ) const

Get the curve fitter

获取曲线拟合器

◆ data()

const QwtSeriesData< QwtPointPolar > * QwtPolarCurve::data ( ) const
inline

Get the data

返回
the the curve data

◆ dataSize()

size_t QwtPolarCurve::dataSize ( ) const

Get the data size

获取数据点数量

◆ draw() [1/2]

void QwtPolarCurve::draw ( QPainter *  painter,
const QwtScaleMap azimuthMap,
const QwtScaleMap radialMap,
const QPointF &  pole,
double  radius,
const QRectF &  canvasRect 
) const
overridevirtual

Draw the curve

绘制曲线

实现了 QwtPolarItem.

◆ draw() [2/2]

void QwtPolarCurve::draw ( QPainter *  painter,
const QwtScaleMap azimuthMap,
const QwtScaleMap radialMap,
const QPointF &  pole,
int  from,
int  to 
) const
virtual

Draw the curve from index to index

绘制曲线的一个区间

◆ drawCurve()

void QwtPolarCurve::drawCurve ( QPainter *  painter,
int  style,
const QwtScaleMap azimuthMap,
const QwtScaleMap radialMap,
const QPointF &  pole,
int  from,
int  to 
) const
protectedvirtual

Draw the curve

Draw the line part (without symbols) of a curve interval.

参数
painterPainter
styleCurve style, see QwtPolarCurve::CurveStyle
azimuthMapMaps azimuth values to values related to 0.0, M_2PI
radialMapMaps radius values into painter coordinates.
polePosition of the pole in painter coordinates
fromindex of the first point to be painted
toindex of the last point to be painted.
参见
draw(), drawLines()

◆ drawLines()

void QwtPolarCurve::drawLines ( QPainter *  painter,
const QwtScaleMap azimuthMap,
const QwtScaleMap radialMap,
const QPointF &  pole,
int  from,
int  to 
) const
protected

Draw the lines

Draw lines

参数
painterPainter
azimuthMapMaps azimuth values to values related to 0.0, M_2PI
radialMapMaps radius values into painter coordinates.
polePosition of the pole in painter coordinates
fromindex of the first point to be painted
toindex of the last point to be painted.
参见
draw(), drawLines(), setCurveFitter()

◆ drawSymbols()

void QwtPolarCurve::drawSymbols ( QPainter *  painter,
const QwtSymbol symbol,
const QwtScaleMap azimuthMap,
const QwtScaleMap radialMap,
const QPointF &  pole,
int  from,
int  to 
) const
protectedvirtual

Draw the symbols

Draw symbols

参数
painterPainter
symbolCurve symbol
azimuthMapMaps azimuth values to values related to 0.0, M_2PI
radialMapMaps radius values into painter coordinates.
polePosition of the pole in painter coordinates
fromindex of the first point to be painted
toindex of the last point to be painted.
参见
setSymbol(), draw(), drawCurve()

◆ init()

void QwtPolarCurve::init ( )
protected

Initialize the curve

Initialize data members

◆ legendIcon()

QwtGraphic QwtPolarCurve::legendIcon ( int  index,
const QSizeF &  size 
) const
overridevirtual

Get the legend icon

获取图例上代表曲线的图标

重载 QwtPolarItem .

◆ pen()

const QPen & QwtPolarCurve::pen ( ) const

Get the pen

获取用于绘制线条的画笔

◆ rtti()

int QwtPolarCurve::rtti ( ) const
overridevirtual

Get the runtime type information

获取运行时类型信息

重载 QwtPolarItem .

◆ sample()

QwtPointPolar QwtPolarCurve::sample ( int  i) const
inline

Get a sample

参数
iindex
返回
point at position i

◆ setCurveFitter()

void QwtPolarCurve::setCurveFitter ( QwtCurveFitter curveFitter)

Set the curve fitter

插入曲线拟合器

◆ setData()

void QwtPolarCurve::setData ( QwtSeriesData< QwtPointPolar > *  data)

Set the data

使用 QwtSeriesData<QwtPointPolar> 指针初始化数据

◆ setLegendAttribute()

void QwtPolarCurve::setLegendAttribute ( LegendAttribute  attribute,
bool  on = true 
)

Set a legend attribute

指定图例标识符的绘制方式属性

◆ setPen()

void QwtPolarCurve::setPen ( const QPen &  pen)

Set the pen

分配画笔

◆ setStyle()

void QwtPolarCurve::setStyle ( CurveStyle  style)

Set the curve style

设置曲线的绘制样式

◆ setSymbol()

void QwtPolarCurve::setSymbol ( QwtSymbol symbol)

Set the symbol

分配符号

◆ style()

QwtPolarCurve::CurveStyle QwtPolarCurve::style ( ) const

Get the curve style

获取当前样式

◆ symbol()

const QwtSymbol * QwtPolarCurve::symbol ( ) const

Get the symbol

获取当前符号

◆ testLegendAttribute()

bool QwtPolarCurve::testLegendAttribute ( LegendAttribute  attribute) const

Test a legend attribute

测试图例属性是否启用


该类的文档由以下文件生成: