logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

QwtIntervalSymbol - A drawing primitive for displaying an interval like an error bar.

Author

       Generated automatically by Doxygen for Qwt User's Guide from the source code.

Version 6.1.4                                    Wed Jan 2 2019                             QwtIntervalSymbol(3)

Constructor & Destructor Documentation

QwtIntervalSymbol::QwtIntervalSymbol(Stylestyle=NoSymbol)
       Constructor

       Parameters:style Style of the symbol

       Seealso:setStyle(), style(), Style

Detailed Description

       A drawing primitive for displaying an interval like an error bar.

       Seealso:QwtPlotIntervalCurve

Member Enumeration Documentation

enumQwtIntervalSymbol::Style
       Symbol style.

       EnumeratorNoSymbol
              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
              symbol width().

       Box    The symbol displays a plain rectangle using pen() and brush(). The size of the  rectangle  depends
              on the translated interval and the width(),

       UserSymbol
              Styles  >=  UserSymbol  are reserved for derived classes of QwtIntervalSymbol that overload draw()
              with additional application specific symbol types.

Member Function Documentation

constQBrush&QwtIntervalSymbol::brush()constReturns:
           Brush

       Seealso:setBrush()voidQwtIntervalSymbol::draw(QPainter*painter,Qt::Orientationorientation,constQPointF&from,constQPointF&to)const[virtual]
       Draw a symbol depending on its style

       Parameters:painter Painter
           orientation Orientation
           from Start point of the interval in target device coordinates
           to End point of the interval in target device coordinates

       Seealso:setStyle()constQPen&QwtIntervalSymbol::pen()constReturns:
           Pen

       Seealso:setPen(), brush()voidQwtIntervalSymbol::setBrush(constQBrush&brush)
       Assign a brush. The brush is used for the Box style.

       Parameters:brush Brush

       Seealso:brush()voidQwtIntervalSymbol::setPen(constQColor&color,qrealwidth=0.0,Qt::PenStylestyle=Qt::SolidLine)
       Build and assign a pen

       In Qt5 the default pen width is 1.0 ( 0.0 in Qt4 ) what makes it non cosmetic ( see QPen::isCosmetic() ).
       This method has been introduced to hide this incompatibility.

       Parameters:color Pen color
           width Pen width
           style Pen style

       Seealso:pen(), brush()voidQwtIntervalSymbol::setPen(constQPen&pen)
       Assign a pen

       Parameters:pen Pen

       Seealso:pen(), setBrush()voidQwtIntervalSymbol::setStyle(Stylestyle)
       Specify the symbol style

       Parameters:style Style

       Seealso:style(), StylevoidQwtIntervalSymbol::setWidth(intwidth)
       Specify the width of the symbol It is used depending on the style.

       Parameters:width Width

       Seealso:width(), setStyle()QwtIntervalSymbol::StyleQwtIntervalSymbol::style()constReturns:
           Current symbol style

       Seealso:setStyle()intQwtIntervalSymbol::width()constReturns:
           Width of the symbol.

       Seealso:setWidth(), setStyle()

Name

       QwtIntervalSymbol - A drawing primitive for displaying an interval like an error bar.

Synopsis

       #include <qwt_interval_symbol.h>

   PublicTypes
       enum Style { NoSymbol = -1, Bar, Box, UserSymbol = 1000 }
           Symbol style.

   PublicMemberFunctionsQwtIntervalSymbol (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 () const
       void setBrush (const QBrush &)
           Assign a brush.
       const QBrush & brush () const
       void setPen (const QColor &, qreal width=0.0, Qt::PenStyle=Qt::SolidLine)
       void setPen (const QPen &)
       const QPen & pen () const
       void setStyle (Style)
       Stylestyle () const
       virtual void draw (QPainter *, Qt::Orientation, const QPointF &from, const QPointF &to) const

See Also