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

Layout class for QwtPolarPlot 更多...

#include <qwt_polar_layout.h>

class  LayoutData
 
class  PrivateData
 

Public 类型

enum  Option { IgnoreScrollbars = 0x01 , IgnoreFrames = 0x02 , IgnoreTitle = 0x04 , IgnoreLegend = 0x08 }
 Options to configure the plot layout engine 更多...
 

Public 成员函数

 QwtPolarLayout ()
 Constructor
 
virtual ~QwtPolarLayout ()
 Destructor
 
void setLegendPosition (QwtPolarPlot::LegendPosition pos, double ratio)
 Set the legend position with ratio
 
void setLegendPosition (QwtPolarPlot::LegendPosition pos)
 Set the legend position
 
QwtPolarPlot::LegendPosition legendPosition () const
 Get the legend position
 
void setLegendRatio (double ratio)
 Set the legend ratio
 
double legendRatio () const
 Get the legend ratio
 
virtual void activate (const QwtPolarPlot *, const QRectF &rect, Options options=Options())
 Activate the layout
 
virtual void invalidate ()
 Invalidate the layout
 
const QRectF & titleRect () const
 Get the title rectangle
 
const QRectF & legendRect () const
 Get the legend rectangle
 
const QRectF & canvasRect () const
 Get the canvas rectangle
 

Protected 成员函数

QRectF layoutLegend (Options options, QRectF &) const
 Find the geometry for the legend
 

详细描述

Layout class for QwtPolarPlot

Organizes the geometry for the different QwtPolarPlot components. It is used by the QwtPolar widget to organize its internal widgets or by QwtPolarRenderer to render its content to a QPaintDevice like a QPrinter, QPixmap/QImage or QSvgRenderer.

成员枚举类型说明

◆ Option

Options to configure the plot layout engine

枚举值
IgnoreScrollbars 

Ignore the dimension of the scrollbars.

IgnoreFrames 

Ignore all frames.

IgnoreTitle 

Ignore the title.

IgnoreLegend 

Ignore the legend.

构造及析构函数说明

◆ QwtPolarLayout()

QwtPolarLayout::QwtPolarLayout ( )
explicit

Constructor

Destructor

成员函数说明

◆ activate()

void QwtPolarLayout::activate ( const QwtPolarPlot plot,
const QRectF &  boundingRect,
Options  options = Options() 
)
virtual

Activate the layout

Recalculate the geometry of all components

参数
plotPlot to be layout
boundingRectRect where to place the components
optionsOptions
参见
invalidate(), titleRect(), legendRect(), canvasRect()

◆ canvasRect()

const QRectF & QwtPolarLayout::canvasRect ( ) const

Get the canvas rectangle

Get geometry for the canvas

返回
Geometry for the canvas
参见
activate(), invalidate()

◆ invalidate()

void QwtPolarLayout::invalidate ( )
virtual

Invalidate the layout

Invalidate the geometry of all components

参见
activate()

◆ layoutLegend()

QRectF QwtPolarLayout::layoutLegend ( Options  options,
QRectF &  rect 
) const
protected

Find the geometry for the legend

参数
optionsOptions how to layout the legend
[in,out]rectRectangle where to place the legend
返回
Geometry for the legend

◆ legendPosition()

QwtPolarPlot::LegendPosition QwtPolarLayout::legendPosition ( ) const

Get the legend position

Get the position of the legend

返回
Position of the legend
参见
setLegendPosition(), QwtPolarPlot::setLegendPosition(), QwtPolarPlot::legendPosition()

◆ legendRatio()

double QwtPolarLayout::legendRatio ( ) const

Get the legend ratio

Get the relative size of the legend in the plot

返回
The relative size of the legend in the plot
参见
setLegendPosition()

◆ legendRect()

const QRectF & QwtPolarLayout::legendRect ( ) const

Get the legend rectangle

Get geometry for the legend

返回
Geometry for the legend
参见
activate(), invalidate()

◆ setLegendPosition() [1/2]

void QwtPolarLayout::setLegendPosition ( QwtPolarPlot::LegendPosition  pos)

Set the legend position

Specify the position of the legend

参数
posThe legend's position. Valid values are QwtPolarPlot::LeftLegend, QwtPolarPlot::RightLegend, QwtPolarPlot::TopLegend, QwtPolarPlot::BottomLegend.
参见
QwtPolarPlot::setLegendPosition()

◆ setLegendPosition() [2/2]

void QwtPolarLayout::setLegendPosition ( QwtPolarPlot::LegendPosition  pos,
double  ratio 
)

Set the legend position with ratio

Specify the position of the legend

参数
posThe legend's position
ratioRatio between legend and the bounding rect of title, canvas and axes. The legend will be shrunk if it would need more space than the given ratio. The ratio is limited to ]0.0 .. 1.0]. In case of <= 0.0 it will be reset to the default ratio. The default vertical/horizontal ratio is 0.33/0.5.
参见
QwtPolarPlot::setLegendPosition()

◆ setLegendRatio()

void QwtPolarLayout::setLegendRatio ( double  ratio)

Set the legend ratio

Specify the relative size of the legend in the plot

参数
ratioRatio between legend and the bounding rect of title, canvas and axes. The legend will be shrunk if it would need more space than the given ratio. The ratio is limited to ]0.0 .. 1.0]. In case of <= 0.0 it will be reset to the default ratio. The default vertical/horizontal ratio is 0.33/0.5.
参见
setLegendPosition()

◆ titleRect()

const QRectF & QwtPolarLayout::titleRect ( ) const

Get the title rectangle

Get geometry for the title

返回
Geometry for the title
参见
activate(), invalidate()

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