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

QwtPlotSpectroCurve - Curve that displays 3D points as dots, where the z coordinate is mapped to a color.

Author

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

Version 6.1.4                                    Wed Jan 2 2019                           QwtPlotSpectroCurve(3)

Constructor & Destructor Documentation

QwtPlotSpectroCurve::QwtPlotSpectroCurve(constQString&title=QString())[explicit]
       Constructor

       Parameters:title Title of the curve

   QwtPlotSpectroCurve::QwtPlotSpectroCurve(constQwtText&title)[explicit]
       Constructor

       Parameters:title Title of the curve

Detailed Description

       Curve that displays 3D points as dots, where the z coordinate is mapped to a color.

Member Enumeration Documentation

enumQwtPlotSpectroCurve::PaintAttribute
       Paint attributes.

       EnumeratorClipPoints
              Clip points outside the canvas rectangle.

Member Function Documentation

constQwtColorMap*QwtPlotSpectroCurve::colorMap()constReturns:
           Color Map used for mapping the intensity values to colors

       Seealso:setColorMap(), setColorRange(), QwtColorMap::color()QwtInterval&QwtPlotSpectroCurve::colorRange()constReturns:
           Value interval, that corresponds to the color map

       Seealso:setColorRange(), setColorMap(), QwtColorMap::color()voidQwtPlotSpectroCurve::drawDots(QPainter*painter,constQwtScaleMap&xMap,constQwtScaleMap&yMap,constQRectF&canvasRect,intfrom,intto)const[protected],[virtual]
       Draw a subset of the points

       Parameters:painter Painter
           xMap Maps x-values into pixel coordinates.
           yMap Maps y-values into pixel coordinates.
           canvasRect Contents rectangle of the canvas
           from Index of the first sample to be painted
           to Index of the last sample to be painted. If to < 0 the series will be painted to its last sample.

       Seealso:drawSeries()voidQwtPlotSpectroCurve::drawSeries(QPainter*painter,constQwtScaleMap&xMap,constQwtScaleMap&yMap,constQRectF&canvasRect,intfrom,intto)const[virtual]
       Draw a subset of the points

       Parameters:painter Painter
           xMap Maps x-values into pixel coordinates.
           yMap Maps y-values into pixel coordinates.
           canvasRect Contents rectangle of the canvas
           from Index of the first sample to be painted
           to Index of the last sample to be painted. If to < 0 the series will be painted to its last sample.

       Seealso:drawDots()

       Implements QwtPlotSeriesItem.

   doubleQwtPlotSpectroCurve::penWidth()constReturns:
           Pen width used to draw a dot

       Seealso:setPenWidth()intQwtPlotSpectroCurve::rtti()const[virtual]Returns:QwtPlotItem::Rtti_PlotSpectroCurve

       Reimplemented from QwtPlotItem.

   voidQwtPlotSpectroCurve::setColorMap(QwtColorMap*colorMap)
       Change the color map

       Often it is useful to display the mapping between intensities and colors  as  an  additional  plot  axis,
       showing a color bar.

       Parameters:colorMap Color Map

       Seealso:colorMap(),      setColorRange(),     QwtColorMap::color(),     QwtScaleWidget::setColorBarEnabled(),
           QwtScaleWidget::setColorMap()voidQwtPlotSpectroCurve::setColorRange(constQwtInterval&interval)
       Set the value interval, that corresponds to the color map

       Parameters:interval interval.minValue() corresponds to 0.0, interval.maxValue() to 1.0 on the color map.

       Seealso:colorRange(), setColorMap(), QwtColorMap::color()voidQwtPlotSpectroCurve::setPaintAttribute(PaintAttributeattribute,boolon=true)
       Specify an attribute how to draw the curve

       Parameters:attribute Paint attribute
           on On/Off /sa PaintAttribute, testPaintAttribute()voidQwtPlotSpectroCurve::setPenWidth(doublepenWidth)
       Assign a pen width

       Parameters:penWidth New pen width

       Seealso:penWidth()voidQwtPlotSpectroCurve::setSamples(constQVector<QwtPoint3D>&samples)
       Initialize data with an array of samples.

       Parameters:samples Vector of points

   voidQwtPlotSpectroCurve::setSamples(QwtSeriesData<QwtPoint3D>*data)
       Assign a series of samples

       setSamples() is just a wrapper for setData() without any additional value - beside that it is  easier  to
       find for the developer.

       Parameters:data Data

       Warning:
           The item takes ownership of the data object, deleting it when its not used anymore.

   boolQwtPlotSpectroCurve::testPaintAttribute(PaintAttributeattribute)constReturns:
           True, when attribute is enabled

       Seealso:PaintAttribute, setPaintAttribute()

Name

       QwtPlotSpectroCurve - Curve that displays 3D points as dots, where the z coordinate is mapped to a color.

Synopsis

       #include <qwt_plot_spectrocurve.h>

       Inherits QwtPlotSeriesItem, and QwtSeriesStore<QwtPoint3D>.

   PublicTypes
       enum PaintAttribute { ClipPoints = 1 }
           Paint attributes.
       typedef QFlags< PaintAttribute > PaintAttributes
           Paint attributes.

   PublicMemberFunctionsQwtPlotSpectroCurve (const QString &title=QString())
       QwtPlotSpectroCurve (const QwtText &title)
       virtual ~QwtPlotSpectroCurve ()
           Destructor.
       virtual int rtti () const
       void setPaintAttribute (PaintAttribute, bool on=true)
       bool testPaintAttribute (PaintAttribute) const
       void setSamples (const QVector< QwtPoint3D > &)
       void setSamples (QwtSeriesData< QwtPoint3D > *)
       void setColorMap (QwtColorMap *)
       const QwtColorMap * colorMap () const
       void setColorRange (const QwtInterval &)
       QwtInterval & colorRange () const
       virtual void drawSeries (QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF
           &canvasRect, int from, int to) const
       void setPenWidth (double)
       double penWidth () const

   ProtectedMemberFunctions
       virtual void drawDots (QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF
           &canvasRect, int from, int to) const

See Also