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

📄 qwtmarker.3

📁 软件无线电的平台
💻 3
字号:
.TH "QwtMarker" 3 "4 Nov 2003" "Qwt User's Guide" \" -*- nroff -*-.ad l.nh.SH NAMEQwtMarker \- .SH SYNOPSIS.br.PPInherited by \fBQwtPlotMarker\fP..PP.SH "Detailed Description".PP A class for drawing markers. A marker can be a horizontal line, a vertical line, a symbol, a label or any combination of them, which can be drawn around a center point inside a bounding rectangle..PPThe \fBQwtMarker::setSymbol()\fP member assigns a symbol to the marker. The symbol is drawn at the specified point..PPWith \fBQwtMarker::setLabel()\fP, a label can be assigned to the marker. The \fBQwtMarker::setLabelAlignment()\fP member specifies where the label is drawn. All the Align*-constants in Qt::AlignmentFlags (see Qt documentation) are valid. The interpretation of the alignment depends on the marker's line style. The alignment refers to the center point of the marker, which means, for example, that the label would be printed left above the center point if the alignment was set to AlignLeft|AlignTop. .PP.SS "Public Types".in +1c.ti -1c.RI "enum \fBLineStyle\fP { \fBNoLine\fP, \fBHLine\fP, \fBVLine\fP, \fBCross\fP }".br.in -1c.SS "Public Member Functions".in +1c.ti -1c.RI "\fBQwtMarker\fP ()".br.ti -1c.RI "virtual \fB~QwtMarker\fP ()".br.ti -1c.RI "\fBQwtMarker\fP (const  \fBQwtMarker\fP &)".br.ti -1c.RI "\fBQwtMarker\fP & \fBoperator=\fP (const  \fBQwtMarker\fP &)".br.ti -1c.RI "void \fBsetLineStyle\fP (\fBLineStyle\fP st)".br.ti -1c.RI "\fBLineStyle\fP \fBlineStyle\fP () const ".br.ti -1c.RI "void \fBsetSymbol\fP (const  \fBQwtSymbol\fP &s)".br.ti -1c.RI "const  \fBQwtSymbol\fP & \fBsymbol\fP () const ".br.ti -1c.RI "void \fBsetLabel\fP (const  QString &text, const  QFont &font=QFont(), const  QColor &color=QColor(), const  QPen &pen=QPen(Qt::NoPen), const  QBrush &brush=QBrush(Qt::NoBrush))".br.ti -1c.RI "void \fBsetLabelText\fP (const  QString &text)".br.ti -1c.RI "const  QString \fBlabel\fP () const ".br.ti -1c.RI "void \fBsetLabelAlignment\fP (int align)".br.ti -1c.RI "int \fBlabelAlignment\fP () const ".br.ti -1c.RI "void \fBsetLabelColor\fP (const  QColor &c)".br.ti -1c.RI "const  QColor \fBlabelColor\fP () const ".br.ti -1c.RI "void \fBsetLabelPen\fP (const  QPen &p)".br.ti -1c.RI "const  QPen \fBlabelPen\fP () const ".br.ti -1c.RI "void \fBsetLinePen\fP (const  QPen &p)".br.ti -1c.RI "const  QPen & \fBlinePen\fP () const ".br.ti -1c.RI "void \fBsetFont\fP (const  QFont &f)".br.ti -1c.RI "const  QFont \fBfont\fP () const ".br.ti -1c.RI "virtual void \fBdraw\fP (QPainter *p, int x, int y, const  QRect &r)".br.in -1c.SS "Protected Member Functions".in +1c.ti -1c.RI "virtual void \fBmarkerChanged\fP ()".br.in -1c.SH "Member Enumeration Documentation".PP .SS "enum \fBQwtMarker::LineStyle\fP".PPLine styles. .PP\fBSee also:\fP.RS 4\fBQwtMarker::setLineStyle\fP, \fBQwtMarker::lineStyle\fP .RE.PP.SH "Constructor & Destructor Documentation".PP .SS "QwtMarker::QwtMarker ()".PPSets alignment to Qt::AlignCenter, and style to NoLine. .SS "QwtMarker::~\fBQwtMarker\fP ()\fC [virtual]\fP".PPDestructor. .SS "QwtMarker::QwtMarker (const \fBQwtMarker\fP & m)".PPCopy constructor. \fBParameters:\fP.RS 4\fIm\fP Marker .RE.PP.SH "Member Function Documentation".PP .SS "void QwtMarker::draw (QPainter * p, int x, int y, const QRect & r)\fC [virtual]\fP".PPDraw the marker. \fBParameters:\fP.RS 4\fIp\fP Painter .br\fIx\fP X position .br\fIy\fP Y position .br\fIr\fP Bounding rectangle .RE.PP.SS "const  QFont QwtMarker::font () const".PP\fBReturns:\fP.RS 4the font used for the label .RE.PP\fBSee also:\fP.RS 4\fBQwtMarker::setFont()\fP .RE.PP.SS "const  QString QwtMarker::label () const".PP\fBReturns:\fP.RS 4the label .RE.PP\fBSee also:\fP.RS 4\fBQwtMarker::setLabel()\fP .RE.PP.SS "int QwtMarker::labelAlignment () const".PP\fBReturns:\fP.RS 4the label alignment .RE.PP\fBSee also:\fP.RS 4\fBQwtMarker::setLabelAlignment()\fP .RE.PP.SS "const  QColor QwtMarker::labelColor () const".PP\fBReturns:\fP.RS 4the label's color .RE.PP\fBSee also:\fP.RS 4\fBQwtMarker::setLabelPen()\fP .RE.PP.SS "const  QPen QwtMarker::labelPen () const".PP\fBReturns:\fP.RS 4the label's pen .RE.PP\fBSee also:\fP.RS 4\fBQwtMarker::setLabelPen()\fP .RE.PP\fBWarning:\fP.RS 4This function is deprecated. Use \fBQwtMarker::labelColor\fP. .RE.PP.SS "const  QPen & QwtMarker::linePen () const".PP\fBReturns:\fP.RS 4the line pen .RE.PP\fBSee also:\fP.RS 4\fBQwtMarker::setLinePen()\fP .RE.PP.SS "\fBQwtMarker::LineStyle\fP QwtMarker::lineStyle () const".PP\fBReturns:\fP.RS 4the line style .RE.PP\fBSee also:\fP.RS 4For a description of line styles, see \fBQwtMarker::setLineStyle()\fP .RE.PP.SS "void QwtMarker::markerChanged ()\fC [protected, virtual]\fP".PPNotify a change of parameters. This virtual function is called when a marker property has been changed and redrawing is advisable. It can be reimplemented by derived classes. The default implementation does nothing. Reimplemented in \fBQwtPlotMarker\fP..SS "\fBQwtMarker\fP & QwtMarker::operator= (const \fBQwtMarker\fP & m)".PPAssignment operator. \fBParameters:\fP.RS 4\fIm\fP Marker .RE.PP.SS "void QwtMarker::setFont (const QFont & f)".PPSpecify the font for the label. \fBParameters:\fP.RS 4\fIf\fP New font .RE.PP\fBSee also:\fP.RS 4\fBQwtMarker::font()\fP .RE.PP.SS "void QwtMarker::setLabel (const QString & text, const QFont & font = QFont(), const QColor & color = QColor(), const QPen & pen = QPen(Qt::NoPen), const QBrush & brush = QBrush(Qt::NoBrush))".PPSet the label. \fBParameters:\fP.RS 4\fItext\fP Contents of the label text .br\fIfont\fP Font of the label text .br\fIcolor\fP Color of the label text .br\fIpen\fP Pen to draw the enclosing rectangle .br\fIbrush\fP Brush to draw the enclosing rectangle .RE.PP\fBSee also:\fP.RS 4\fBQwtMarker::label()\fP .RE.PP.SS "void QwtMarker::setLabelAlignment (int align)".PPSet the alignment of the label. The alignment determines where the label is drawn relative to the marker's position..PP\fBParameters:\fP.RS 4\fIalign\fP Alignment. A combination of AlignTop, AlignBottom, AlignLeft, AlignRight, AlignCenter, AlgnHCenter, AlignVCenter. .RE.PP\fBSee also:\fP.RS 4\fBQwtMarker::labelAlignment()\fP .RE.PP.SS "void QwtMarker::setLabelColor (const QColor & color)".PPSpecify a color for the label. \fBParameters:\fP.RS 4\fIcolor\fP Color of the label text .RE.PP\fBSee also:\fP.RS 4\fBQwtMarker::labelColor()\fP .RE.PP.SS "void QwtMarker::setLabelPen (const QPen & p)".PPSpecify a pen for the label. \fBParameters:\fP.RS 4\fIp\fP New pen .RE.PP\fBSee also:\fP.RS 4\fBQwtMarker::labelPen()\fP .RE.PP\fBWarning:\fP.RS 4This function is deprecated. Use \fBQwtMarker::setLabelColor\fP. .RE.PP.SS "void QwtMarker::setLabelText (const QString & text)".PPSet the label text. \fBParameters:\fP.RS 4\fItext\fP label text .RE.PP\fBSee also:\fP.RS 4\fBQwtMarker::label()\fP .RE.PP.SS "void QwtMarker::setLinePen (const QPen & p)".PPSpecify a pen for the line. \fBParameters:\fP.RS 4\fIp\fP New pen .RE.PP\fBSee also:\fP.RS 4\fBQwtMarker::linePen()\fP .RE.PP.SS "void QwtMarker::setLineStyle (\fBQwtMarker::LineStyle\fP st)".PPSet the line style. \fBParameters:\fP.RS 4\fIst\fP Line style. Can be one of QwtMarker::NoLine, QwtMarker::HLine, QwtMarker::VLine or QwtMarker::Cross .RE.PP\fBSee also:\fP.RS 4\fBQwtMarker::lineStyle()\fP .RE.PP.SS "void QwtMarker::setSymbol (const \fBQwtSymbol\fP & s)".PPAssign a symbol. \fBParameters:\fP.RS 4\fIs\fP New symbol .RE.PP\fBSee also:\fP.RS 4\fBQwtSymbol\fP, \fBQwtMarker::symbol()\fP .RE.PP.SS "const  \fBQwtSymbol\fP & QwtMarker::symbol () const".PP\fBReturns:\fP.RS 4the symbol .RE.PP\fBSee also:\fP.RS 4\fBQwtMarker::setSymbol()\fP, \fBQwtSymbol\fP .RE.PP.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 + -