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

柱的绘图基元 更多...

#include <qwt_column_symbol.h>

class  PrivateData
 

Public 类型

enum  Style { NoStyle = -1 , Box , UserStyle = 1000 }
 
enum  FrameStyle { NoFrame , Plain , Raised }
 

Public 成员函数

 QwtColumnSymbol (Style=NoStyle)
 Constructor with style parameter
 
virtual ~QwtColumnSymbol ()
 Destructor
 
void setFrameStyle (FrameStyle)
 Set the frame style
 
FrameStyle frameStyle () const
 Return the frame style
 
void setLineWidth (int width)
 Set the line width for the frame
 
int lineWidth () const
 Return the line width
 
void setStyle (Style)
 Set the column style
 
Style style () const
 Return the column style
 
void setPen (const QPen &pen)
 Set the outline pen
 
QPen pen () const
 Return the outline pen
 
void setBrush (const QBrush &b)
 Set the fill brush
 
QBrush brush () const
 Return the fill brush
 
virtual void draw (QPainter *, const QwtColumnRect &) const
 Draw the column symbol
 

Protected 成员函数

void drawBox (QPainter *, const QwtColumnRect &) const
 

详细描述

柱的绘图基元

成员枚举类型说明

◆ FrameStyle

Box 样式中使用的框架样式

参见
Style, setFrameStyle(), frameStyle(), setStyle(), setPalette()
枚举值
NoFrame 

无框架

Plain 

普通框架样式

Raised 

凸起框架样式

◆ Style

样式

参见
setStyle(), style()
枚举值
NoStyle 

无样式,符号不绘制任何内容

Box 

柱根据 frameStyle()lineWidth() 使用 palette() 绘制一个框架。

UserStyle 

样式 >= QwtColumnSymbol::UserStyle 保留给 QwtColumnSymbol 的派生类, 这些类重载 draw() 以添加特定于应用程序的符号类型。

构造及析构函数说明

◆ QwtColumnSymbol()

QwtColumnSymbol::QwtColumnSymbol ( Style  style = NoStyle)
explicit

Constructor with style parameter

构造函数

◆ ~QwtColumnSymbol()

QwtColumnSymbol::~QwtColumnSymbol ( )
virtual

Destructor

析构函数

成员函数说明

◆ brush()

QBrush QwtColumnSymbol::brush ( ) const

Return the fill brush

返回填充画刷

◆ draw()

void QwtColumnSymbol::draw ( QPainter *  painter,
const QwtColumnRect rect 
) const
virtual

Draw the column symbol

根据样式绘制符号

◆ frameStyle()

QwtColumnSymbol::FrameStyle QwtColumnSymbol::frameStyle ( ) const

Return the frame style

返回 Box 样式使用的当前框架样式

◆ lineWidth()

int QwtColumnSymbol::lineWidth ( ) const

Return the line width

返回 Box 样式使用的框架线宽

◆ pen()

QPen QwtColumnSymbol::pen ( ) const

Return the outline pen

返回轮廓画笔

◆ setBrush()

void QwtColumnSymbol::setBrush ( const QBrush &  b)

Set the fill brush

指定填充画刷

◆ setFrameStyle()

void QwtColumnSymbol::setFrameStyle ( FrameStyle  frameStyle)

Set the frame style

设置 Box 样式使用的框架样式

◆ setLineWidth()

void QwtColumnSymbol::setLineWidth ( int  width)

Set the line width for the frame

设置 Box 样式使用的框架线宽

◆ setPen()

void QwtColumnSymbol::setPen ( const QPen &  pen)

Set the outline pen

指定轮廓画笔

◆ setStyle()

void QwtColumnSymbol::setStyle ( Style  style)

Set the column style

指定符号样式

◆ style()

QwtColumnSymbol::Style QwtColumnSymbol::style ( ) const

Return the column style

返回当前符号样式


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