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

📄 qwtmarker.3

📁 linux下qt的第三方的一个类
💻 3
字号:
.TH "QwtMarker" 3 "16 Nov 2004" "Version 4.2.0" "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. .PPDefinition at line 43 of file qwt_marker.h..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.PPDefinition at line 51 of file qwt_marker.h..PPReferenced by lineStyle()..SH "Constructor & Destructor Documentation".PP .SS "QwtMarker::QwtMarker ()".PPSets alignment to Qt::AlignCenter, and style to NoLine. .PPDefinition at line 20 of file qwt_marker.cpp..PPReferences QwtText::makeText()..SS "QwtMarker::~\fBQwtMarker\fP ()\fC [virtual]\fP".PPDestructor. .PPDefinition at line 29 of file qwt_marker.cpp..SS "QwtMarker::QwtMarker (const \fBQwtMarker\fP & m)".PPCopy constructor. .PP\fBParameters:\fP.RS 4\fIm\fP Marker .RE.PPDefinition at line 38 of file qwt_marker.cpp..PPReferences QwtText::clone(), d_align, d_label, d_pen, d_style, and d_sym..SH "Member Function Documentation".PP .SS "void QwtMarker::draw (QPainter * p, int x, int y, const QRect & r)\fC [virtual]\fP".PPDraw the marker. .PP\fBParameters:\fP.RS 4\fIp\fP Painter .br\fIx\fP X position .br\fIy\fP Y position .br\fIr\fP Bounding rectangle .RE.PPDefinition at line 72 of file qwt_marker.cpp..PPReferences QwtText::boundingRect(), QwtText::draw(), QwtSymbol::draw(), QwtPainter::drawLine(), QwtPainter::metricsMap(), QwtSymbol::size(), QwtSymbol::style(), and QwtText::text()..PPReferenced by QwtPlot::drawCanvasItems()..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.PPDefinition at line 189 of file qwt_marker.cpp..PPReferences QwtText::font()..PPReferenced by QwtPlotPrintFilter::apply(), and QwtPlot::markerFont()..SS "const QString QwtMarker::label () const".PP\fBReturns:\fP.RS 4the label .RE.PP\fBSee also:\fP.RS 4\fBQwtMarker::setLabel()\fP .RE.PPDefinition at line 282 of file qwt_marker.cpp..PPReferences QwtText::text()..PPReferenced by QwtPlot::markerLabel(), and setLabel()..SS "int QwtMarker::labelAlignment () const".PP\fBReturns:\fP.RS 4the label alignment .RE.PP\fBSee also:\fP.RS 4\fBQwtMarker::setLabelAlignment()\fP .RE.PPDefinition at line 311 of file qwt_marker.cpp..PPReferenced by QwtPlot::markerLabelAlign()..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.PPDefinition at line 357 of file qwt_marker.cpp..PPReferences QwtText::color()..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.PPDefinition at line 382 of file qwt_marker.cpp..PPReferences QwtText::color()..PPReferenced by QwtPlotPrintFilter::apply(), QwtPlot::markerLabelPen(), and QwtPlotPrintFilter::reset()..SS "const QPen & QwtMarker::linePen () const".PP\fBReturns:\fP.RS 4the line pen .RE.PP\fBSee also:\fP.RS 4\fBQwtMarker::setLinePen()\fP .RE.PPDefinition at line 334 of file qwt_marker.cpp..PPReferenced by QwtPlotPrintFilter::apply(), QwtPlot::markerLinePen(), and QwtPlotPrintFilter::reset()..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.PPDefinition at line 214 of file qwt_marker.cpp..PPReferences LineStyle..PPReferenced by QwtPlot::closestMarker(), and QwtPlot::markerLineStyle()..SS "void QwtMarker::markerChanged ()\fC [protected, virtual]\fP".PPNotify a change of parameters. .PPThis 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. .PPReimplemented in \fBQwtPlotMarker\fP..PPDefinition at line 395 of file qwt_marker.cpp..PPReferenced by setFont(), setLabel(), setLabelAlignment(), setLabelColor(), setLabelPen(), setLinePen(), setLineStyle(), setSymbol(), QwtPlotMarker::setXValue(), and QwtPlotMarker::setYValue()..SS "\fBQwtMarker\fP & QwtMarker::operator= (const \fBQwtMarker\fP & m)".PPAssignment operator. .PP\fBParameters:\fP.RS 4\fIm\fP Marker .RE.PPDefinition at line 51 of file qwt_marker.cpp..PPReferences QwtText::clone(), d_align, d_label, d_pen, d_style, and d_sym..SS "void QwtMarker::setFont (const QFont & f)".PPSpecify the font for the label. .PP\fBParameters:\fP.RS 4\fIf\fP New font .RE.PP\fBSee also:\fP.RS 4\fBQwtMarker::font()\fP .RE.PPDefinition at line 176 of file qwt_marker.cpp..PPReferences QwtText::font(), markerChanged(), and QwtText::setFont()..PPReferenced by QwtPlotPrintFilter::apply(), QwtPlotPrintFilter::reset(), and QwtPlot::setMarkerFont()..SS "void QwtMarker::setLabel (const QString & text, const QFont & font = \fCQFont()\fP, const QColor & color = \fCQColor()\fP, const QPen & pen = \fCQPen(Qt::NoPen)\fP, const QBrush & brush = \fCQBrush(Qt::NoBrush)\fP)".PPSet the label. .PP\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.PPDefinition at line 259 of file qwt_marker.cpp..PPReferences QwtText::alignment(), QwtText::color(), QwtText::font(), label(), QwtText::makeText(), markerChanged(), QwtText::rectBrush(), QwtText::rectPen(), and QwtText::text()..PPReferenced by QwtPlot::insertLineMarker(), QwtPlot::insertMarker(), setLabelText(), and QwtPlot::setMarkerLabel()..SS "void QwtMarker::setLabelAlignment (int align)".PPSet the alignment of the label. .PPThe 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.PPDefinition at line 298 of file qwt_marker.cpp..PPReferences markerChanged()..PPReferenced by QwtPlot::insertLineMarker(), and QwtPlot::setMarkerLabelAlign()..SS "void QwtMarker::setLabelColor (const QColor & color)".PPSpecify a color for the label. .PP\fBParameters:\fP.RS 4\fIcolor\fP Color of the label text .RE.PP\fBSee also:\fP.RS 4\fBQwtMarker::labelColor()\fP .RE.PPDefinition at line 344 of file qwt_marker.cpp..PPReferences QwtText::color(), markerChanged(), and QwtText::setColor()..SS "void QwtMarker::setLabelPen (const QPen & p)".PPSpecify a pen for the label. .PP\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.PPDefinition at line 368 of file qwt_marker.cpp..PPReferences QwtText::color(), markerChanged(), and QwtText::setColor()..PPReferenced by QwtPlotPrintFilter::apply(), QwtPlotPrintFilter::reset(), QwtPlot::setMarkerLabelPen(), and QwtPlot::setMarkerPen()..SS "void QwtMarker::setLabelText (const QString & text)".PPSet the label text. .PP\fBParameters:\fP.RS 4\fItext\fP label text .RE.PP\fBSee also:\fP.RS 4\fBQwtMarker::label()\fP .RE.PPDefinition at line 244 of file qwt_marker.cpp..PPReferences QwtText::color(), QwtText::font(), QwtText::rectBrush(), QwtText::rectPen(), and setLabel()..PPReferenced by QwtPlot::setMarkerLabelText()..SS "void QwtMarker::setLinePen (const QPen & p)".PPSpecify a pen for the line. .PP\fBParameters:\fP.RS 4\fIp\fP New pen .RE.PP\fBSee also:\fP.RS 4\fBQwtMarker::linePen()\fP .RE.PPDefinition at line 321 of file qwt_marker.cpp..PPReferences markerChanged()..PPReferenced by QwtPlotPrintFilter::apply(), QwtPlotPrintFilter::reset(), QwtPlot::setMarkerLinePen(), and QwtPlot::setMarkerPen()..SS "void QwtMarker::setLineStyle (\fBQwtMarker::LineStyle\fP st)".PPSet the line style. .PP\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.PPDefinition at line 201 of file qwt_marker.cpp..PPReferences markerChanged()..PPReferenced by QwtPlot::insertLineMarker(), and QwtPlot::setMarkerLineStyle()..SS "void QwtMarker::setSymbol (const \fBQwtSymbol\fP & s)".PPAssign a symbol. .PP\fBParameters:\fP.RS 4\fIs\fP New symbol .RE.PP\fBSee also:\fP.RS 4\fBQwtSymbol\fP, \fBQwtMarker::symbol()\fP .RE.PPDefinition at line 224 of file qwt_marker.cpp..PPReferences markerChanged()..PPReferenced by QwtPlotPrintFilter::apply(), QwtPlotPrintFilter::reset(), and QwtPlot::setMarkerSymbol()..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.PPDefinition at line 234 of file qwt_marker.cpp..PPReferenced by QwtPlotPrintFilter::apply(), QwtPlot::closestMarker(), QwtPlot::markerSymbol(), and QwtPlotPrintFilter::reset()..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 + -