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()