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

用于绘制标记的类 更多...

#include <qwt_polar_marker.h>

类 QwtPolarMarker 继承关系图:
QwtPolarItem

class  PrivateData
 

Public 成员函数

 QwtPolarMarker ()
 Constructor
 
virtual ~QwtPolarMarker ()
 Destructor
 
virtual int rtti () const override
 Get the runtime type information
 
void setPosition (const QwtPointPolar &)
 Set the position
 
QwtPointPolar position () const
 Get the position
 
void setSymbol (const QwtSymbol *s)
 Set the symbol
 
const QwtSymbolsymbol () const
 Get the symbol
 
void setLabel (const QwtText &)
 Set the label
 
QwtText label () const
 Get the label
 
void setLabelAlignment (Qt::Alignment)
 Set the label alignment
 
Qt::Alignment labelAlignment () const
 Get the label alignment
 
virtual void draw (QPainter *painter, const QwtScaleMap &azimuthMap, const QwtScaleMap &radialMap, const QPointF &pole, double radius, const QRectF &canvasRect) const override
 Draw the marker
 
virtual QwtInterval boundingInterval (int scaleId) const override
 Get the bounding interval for a scale
 
- 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
 
virtual QwtGraphic legendIcon (int index, const QSizeF &) const
 Get the legend icon
 

额外继承的成员函数

- 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 }
 

详细描述

用于绘制标记的类

构造及析构函数说明

◆ QwtPolarMarker()

QwtPolarMarker::QwtPolarMarker ( )
explicit

Constructor

构造函数

◆ ~QwtPolarMarker()

QwtPolarMarker::~QwtPolarMarker ( )
virtual

Destructor

析构函数

成员函数说明

◆ boundingInterval()

QwtInterval QwtPolarMarker::boundingInterval ( int  scaleId) const
overridevirtual

Get the bounding interval for a scale

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

重载 QwtPolarItem .

◆ draw()

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

Draw the marker

绘制标记

实现了 QwtPolarItem.

◆ label()

QwtText QwtPolarMarker::label ( ) const

Get the label

获取标签文本

◆ labelAlignment()

Qt::Alignment QwtPolarMarker::labelAlignment ( ) const

Get the label alignment

获取标签对齐方式

◆ position()

QwtPointPolar QwtPolarMarker::position ( ) const

Get the position

获取标记的位置

◆ rtti()

int QwtPolarMarker::rtti ( ) const
overridevirtual

Get the runtime type information

获取运行时类型信息

重载 QwtPolarItem .

◆ setLabel()

void QwtPolarMarker::setLabel ( const QwtText label)

Set the label

设置标签文本

◆ setLabelAlignment()

void QwtPolarMarker::setLabelAlignment ( Qt::Alignment  align)

Set the label alignment

设置标签的对齐方式

◆ setPosition()

void QwtPolarMarker::setPosition ( const QwtPointPolar pos)

Set the position

设置标记的位置

◆ setSymbol()

void QwtPolarMarker::setSymbol ( const QwtSymbol symbol)

Set the symbol

分配符号

◆ symbol()

const QwtSymbol * QwtPolarMarker::symbol ( ) const

Get the symbol

获取当前符号


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