⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qwtsymbol.3

📁 linux下qt的第三方的一个类
💻 3
字号:
.TH "QwtSymbol" 3 "16 Nov 2004" "Version 4.2.0" "Qwt User's Guide" \" -*- nroff -*-.ad l.nh.SH NAMEQwtSymbol \- .SH SYNOPSIS.br.PP.SH "Detailed Description".PP A class for drawing symbols. .PPDefinition at line 22 of file qwt_symbol.h..SS "Public Types".in +1c.ti -1c.RI "enum \fBStyle\fP { \fBNone\fP, \fBEllipse\fP, \fBRect\fP, \fBDiamond\fP, \fBTriangle\fP, \fBDTriangle\fP, \fBUTriangle\fP, \fBLTriangle\fP, \fBRTriangle\fP, \fBCross\fP, \fBXCross\fP, \fBStyleCnt\fP }".br.in -1c.SS "Public Member Functions".in +1c.ti -1c.RI "\fBQwtSymbol\fP ()".br.ti -1c.RI "\fBQwtSymbol\fP (\fBStyle\fP st, const QBrush &bd, const QPen &pn, const QSize &s)".br.ti -1c.RI "virtual \fB~QwtSymbol\fP ()".br.ti -1c.RI "bool \fBoperator!=\fP (const \fBQwtSymbol\fP &) const".br.ti -1c.RI "bool \fBoperator==\fP (const \fBQwtSymbol\fP &) const".br.ti -1c.RI "void \fBsetSize\fP (const QSize &s)".br.ti -1c.RI "void \fBsetSize\fP (int a, int b=-1)".br.ti -1c.RI "void \fBsetBrush\fP (const QBrush &b)".br.ti -1c.RI "void \fBsetPen\fP (const QPen &p)".br.ti -1c.RI "void \fBsetStyle\fP (\fBStyle\fP s)".br.ti -1c.RI "const QBrush & \fBbrush\fP () const".br.ti -1c.RI "const QPen & \fBpen\fP () const".br.ti -1c.RI "const QSize & \fBsize\fP () const".br.ti -1c.RI "\fBStyle\fP \fBstyle\fP () const".br.ti -1c.RI "void \fBdraw\fP (QPainter *p, const QPoint &pt) const".br.ti -1c.RI "void \fBdraw\fP (QPainter *p, int x, int y) const".br.ti -1c.RI "virtual void \fBdraw\fP (QPainter *p, const QRect &r) const".br.in -1c.SH "Member Enumeration Documentation".PP .SS "enum \fBQwtSymbol::Style\fP".PPStyle .PP\fBSee also:\fP.RS 4\fBQwtSymbol::setStyle\fP, \fBQwtSymbol::style\fP .RE.PPDefinition at line 29 of file qwt_symbol.h..SH "Constructor & Destructor Documentation".PP .SS "QwtSymbol::QwtSymbol ()".PPDefault Constructor.PPThe symbol is constructed with gray interior, black outline with zero width, no size and style 'None'. Definition at line 22 of file qwt_symbol.cpp..SS "QwtSymbol::QwtSymbol (\fBQwtSymbol::Style\fP style, const QBrush & brush, const QPen & pen, const QSize & size)".PPConstructor. .PP\fBParameters:\fP.RS 4\fIstyle\fP Symbol Style .br\fIbrush\fP brush to fill the interior .br\fIpen\fP outline pen .br\fIsize\fP size .RE.PPDefinition at line 37 of file qwt_symbol.cpp..SS "QwtSymbol::~\fBQwtSymbol\fP ()\fC [virtual]\fP".PPDestructor. .PPDefinition at line 47 of file qwt_symbol.cpp..SH "Member Function Documentation".PP .SS "const QBrush& QwtSymbol::brush () const".PPReturn Brush. .PPDefinition at line 47 of file qwt_symbol.h..PPReferenced by QwtPlotPrintFilter::apply(), QwtLegendItem::drawIdentifier(), QwtCurve::drawSymbols(), operator==(), and QwtPlotPrintFilter::reset()..SS "void QwtSymbol::draw (QPainter * painter, const QRect & r) const\fC [virtual]\fP".PPDraw the symbol into a bounding rectangle. .PPThis function assumes that the painter has been initialized with brush and pen before. This allows a much more performant implementation when painting many symbols with the same brush and pen like in curves..PP\fBParameters:\fP.RS 4\fIpainter\fP Painter .br\fIr\fP Bounding rectangle .RE.PPDefinition at line 116 of file qwt_symbol.cpp..PPReferences QwtPainter::drawEllipse(), QwtPainter::drawLine(), QwtPainter::drawPolygon(), and QwtPainter::drawRect()..SS "void QwtSymbol::draw (QPainter * painter, int x, int y) const".PPDraw the symbol at a point (x,y). .PPDefinition at line 100 of file qwt_symbol.cpp..PPReferences draw()..SS "void QwtSymbol::draw (QPainter * painter, const QPoint & pos) const".PPDraw the symbol at a specified point. .PP\fBParameters:\fP.RS 4\fIpainter\fP Painter .br\fIpos\fP Center of the symbol .RE.PPDefinition at line 198 of file qwt_symbol.cpp..PPReferenced by draw(), QwtMarker::draw(), QwtLegendItem::drawIdentifier(), and QwtCurve::drawSymbols()..SS "bool QwtSymbol::operator!= (const \fBQwtSymbol\fP &) const".PP!= operator .PPDefinition at line 240 of file qwt_symbol.cpp..SS "bool QwtSymbol::operator== (const \fBQwtSymbol\fP &) const".PP== operator .PPDefinition at line 233 of file qwt_symbol.cpp..PPReferences brush(), pen(), size(), and style()..SS "const QPen& QwtSymbol::pen () const".PPReturn Pen. .PPDefinition at line 49 of file qwt_symbol.h..PPReferenced by QwtPlotPrintFilter::apply(), QwtLegendItem::drawIdentifier(), QwtCurve::drawSymbols(), operator==(), and QwtPlotPrintFilter::reset()..SS "void QwtSymbol::setBrush (const QBrush & br)".PPAssign a brush. .PPThe brush is used to draw the interior of the symbol. .PP\fBParameters:\fP.RS 4\fIbr\fP brush .RE.PPDefinition at line 80 of file qwt_symbol.cpp..PPReferenced by QwtPlotPrintFilter::apply(), and QwtPlotPrintFilter::reset()..SS "void QwtSymbol::setPen (const QPen & pn)".PPAssign a pen. .PPThe pen is used to draw the symbol's outline..PP\fBParameters:\fP.RS 4\fIpn\fP pen .RE.PPDefinition at line 92 of file qwt_symbol.cpp..PPReferenced by QwtPlotPrintFilter::apply(), and QwtPlotPrintFilter::reset()..SS "void QwtSymbol::setSize (int w, int h = \fC-1\fP)".PPSpecify the symbol's size. .PPIf the 'h' parameter is left out or less than 0, and the 'w' parameter is greater than or equal to 0, the symbol size will be set to (w,w). .PP\fBParameters:\fP.RS 4\fIw\fP width .br\fIh\fP height (defaults to -1) .RE.PPDefinition at line 60 of file qwt_symbol.cpp..SS "void QwtSymbol::setSize (const QSize & s)".PPSet the symbol's size. .PPDefinition at line 68 of file qwt_symbol.cpp..SS "void QwtSymbol::setStyle (\fBQwtSymbol::Style\fP s)".PPSpecify the symbol style. .PPThe following styles are defined:.IP "\fBQwtSymbol::None<dd>No Style. The symbol cannot be drawn. \fP" 1c.IP "\fBQwtSymbol::Ellipse<dd>Ellipse or circle \fP" 1c.IP "\fBQwtSymbol::Rect<dd>Rectangle \fP" 1c.IP "\fBQwtSymbol::Diamond<dd>Diamond \fP" 1c.IP "\fBQwtSymbol::Triangle<dd>Triangle pointing upwards \fP" 1c.IP "\fBQwtSymbol::DTriangle<dd>Triangle pointing downwards \fP" 1c.IP "\fBQwtSymbol::UTriangle<dd>Triangle pointing upwards \fP" 1c.IP "\fBQwtSymbol::LTriangle<dd>Triangle pointing left \fP" 1c.IP "\fBQwtSymbol::RTriangle<dd>Triangle pointing right \fP" 1c.IP "\fBQwtSymbol::Cross<dd>Cross \fP" 1c.IP "\fBQwtSymbol::XCross<dd>Diagonal cross\fP" 1c.PP\fBParameters:\fP.RS 4\fIs\fP style .RE.PPDefinition at line 227 of file qwt_symbol.cpp..SS "const QSize& QwtSymbol::size () const".PPReturn Size. .PPDefinition at line 51 of file qwt_symbol.h..PPReferenced by QwtMarker::draw(), QwtLegendItem::drawIdentifier(), QwtCurve::drawSymbols(), and operator==()..SS "\fBStyle\fP QwtSymbol::style () const".PPReturn Style. .PPDefinition at line 53 of file qwt_symbol.h..PPReferenced by QwtPlot::closestMarker(), QwtMarker::draw(), QwtCurve::draw(), QwtLegendItem::drawIdentifier(), operator==(), and QwtPlot::updateLegendItem()..SH "Author".PP Generated automatically by Doxygen for Qwt User's Guide from the source code.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -