QwtIntervalSymbol(3)
π QwtIntervalSymbol(3) π
okay so welcome to the QwtIntervalSymbol(3) page, bestie β it lives in the Library Functions Manual and it's literally a whole drawing primitive for showing an interval like an error bar. tiny class, main character energy. π
πΈ NAME πΈ
QwtIntervalSymbol β a drawing primitive for displaying an interval like an error bar. periodt. β¨
β¨ SYNOPSIS β¨
#include <qwt_interval_symbol.h>
π Public Types π
enum Style { NoSymbol = -1, Bar, Box, UserSymbol = 1000 }β Symbol style.
π¦ Public Member Functions π¦
QwtIntervalSymbol (Style=NoSymbol)QwtIntervalSymbol (const QwtIntervalSymbol &)β Copy constructor.virtual ~QwtIntervalSymbol ()β Destructor.QwtIntervalSymbol & operator= (const QwtIntervalSymbol &)β Assignment operator.bool operator== (const QwtIntervalSymbol &) constβ Compare two symbols.bool operator!= (const QwtIntervalSymbol &) constβ Compare two symbols.void setWidth (int)int width () constvoid setBrush (const QBrush &)β Assign a brush.const QBrush & brush () constvoid setPen (const QColor &, qreal width=0.0, Qt::PenStyle=Qt::SolidLine)void setPen (const QPen &)const QPen & pen () constvoid setStyle (Style)Style style () constvirtual void draw (QPainter *, Qt::Orientation, const QPointF &from, const QPointF &to) const
π Detailed Description π
A drawing primitive for displaying an interval like an error bar.
See also: QwtPlotIntervalCurve
Definition at line 27 of file qwt_interval_symbol.h.
π Member Enumeration Documentation π
enum QwtIntervalSymbol::Style
Symbol style.
NoSymbolβ No Style. The symbol cannot be drawn.Barβ The symbol displays a line with caps at the beginning/end. The size of the caps depends on the symbolwidth().Boxβ The symbol displays a plain rectangle usingpen()andbrush(). The size of the rectangle depends on the translated interval and thewidth(),UserSymbolβ Styles >=UserSymbolare reserved for derived classes ofQwtIntervalSymbolthat overloaddraw()with additional application specific symbol types.
Definition at line 31 of file qwt_interval_symbol.h.
π§ Constructor & Destructor Documentation π§
QwtIntervalSymbol::QwtIntervalSymbol (Style style = NoSymbol) [explicit]
Constructor.
Parameters:
styleβ Style of the symbol
See also: setStyle(), style(), Style
Definition at line 47 of file qwt_interval_symbol.cpp.
QwtIntervalSymbol::QwtIntervalSymbol (const QwtIntervalSymbol & other)
Copy constructor.
Definition at line 54 of file qwt_interval_symbol.cpp.
QwtIntervalSymbol::~QwtIntervalSymbol () [virtual]
Destructor.
Definition at line 61 of file qwt_interval_symbol.cpp.
π Member Function Documentation π
const QBrush & QwtIntervalSymbol::brush () const
Returns:
- Brush
See also: setBrush()
Definition at line 146 of file qwt_interval_symbol.cpp.
void QwtIntervalSymbol::draw (QPainter * painter, Qt::Orientation orientation, const QPointF & from, const QPointF & to) const [virtual]
Draw a symbol depending on its style.
Parameters:
painterβ Painterorientationβ Orientationfromβ Start point of the interval in target device coordinatestoβ End point of the interval in target device coordinates
See also: setStyle()
Definition at line 200 of file qwt_interval_symbol.cpp.
bool QwtIntervalSymbol::operator!= (const QwtIntervalSymbol & other) const
Compare two symbols.
Definition at line 82 of file qwt_interval_symbol.cpp.
QwtIntervalSymbol & QwtIntervalSymbol::operator= (const QwtIntervalSymbol & other)
Assignment operator.
Definition at line 67 of file qwt_interval_symbol.cpp.
bool QwtIntervalSymbol::operator== (const QwtIntervalSymbol & other) const
Compare two symbols.
Definition at line 75 of file qwt_interval_symbol.cpp.
const QPen & QwtIntervalSymbol::pen () const
Returns:
- Pen
See also: setPen(), brush()
Definition at line 185 of file qwt_interval_symbol.cpp.
void QwtIntervalSymbol::setBrush (const QBrush & brush)
Assign a brush. The brush is used for the Box style.
Parameters:
brushβ Brush
See also: brush()
Definition at line 137 of file qwt_interval_symbol.cpp.
void QwtIntervalSymbol::setPen (const QColor & color, qreal width = 0.0, Qt::PenStyle style = Qt::SolidLine)
Build and assign a pen.
Lowkey important: in Qt5 the default pen width is1.0(0.0in Qt4 ), which makes it non cosmetic (seeQPen::isCosmetic()). This method has been introduced to hide this incompatibility. π
Parameters:
colorβ Pen colorwidthβ Pen widthstyleβ Pen style
See also: pen(), brush()
Definition at line 164 of file qwt_interval_symbol.cpp.
void QwtIntervalSymbol::setPen (const QPen & pen)
Assign a pen.
Parameters:
penβ Pen
See also: pen(), setBrush()
Definition at line 176 of file qwt_interval_symbol.cpp.
void QwtIntervalSymbol::setStyle (Style style)
Specify the symbol style.
Parameters:
styleβ Style
See also: style(), Style
Definition at line 94 of file qwt_interval_symbol.cpp.
void QwtIntervalSymbol::setWidth (int width)
Specify the width of the symbol. It is used depending on the style.
Parameters:
widthβ Width
See also: width(), setStyle()
Definition at line 115 of file qwt_interval_symbol.cpp.
QwtIntervalSymbol::Style QwtIntervalSymbol::style () const
Returns:
- Current symbol style
See also: setStyle()
Definition at line 103 of file qwt_interval_symbol.cpp.
int QwtIntervalSymbol::width () const
Returns:
- Width of the symbol.
See also: setWidth(), setStyle()
Definition at line 124 of file qwt_interval_symbol.cpp.
β Author β
Generated automatically by Doxygen for Qwt User's Guide from the source code.
xoxo bestie π this page is signed by the Qwt User's Guide and it's QwtIntervalSymbol(3) β the footer has no date to give you, so no date today, periodt. π
π¦ where this page comes from
- alpine 3.24: qwt-doc 6.3.0-r0 Β· custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms