202 if ( penWidth < 0.0 )
238 const QRectF &canvasRect,
int from,
int to )
const 252 drawDots( painter, xMap, yMap, canvasRect, from, to );
270 const QRectF &canvasRect,
int from,
int to )
const 283 for (
int i = from;
i <= to;
i++ )
297 if ( !canvasRect.contains( xi, yi ) )
306 painter->setPen( QPen( QColor::fromRgba( rgb ),
d_data->
penWidth ) );
virtual void legendChanged()
virtual size_t dataSize() const
QwtPlotSpectroCurve(const QString &title=QString())
QwtInterval & colorRange() const
QVector< QRgb > colorTable
virtual QVector< QRgb > colorTable256() const
A class representing an interval.
void setData(QwtSeriesData< QwtPoint3D > *series)
Interface for iterating over an array of 3D points.
Clip points outside the canvas rectangle.
virtual void drawSeries(QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect, int from, int to) const
void setColorRange(const QwtInterval &)
QwtSeriesData< QwtPoint3D > * data()
PaintAttribute
Paint attributes.
void setSamples(const QVector< QwtPoint3D > &)
The item is represented on the legend.
QwtPlotSpectroCurve::PaintAttributes paintAttributes
void init()
Initialize data members.
virtual uint colorIndex(int numColors, const QwtInterval &interval, double value) const
Map a value of a given interval into a color index.
QwtPoint3D class defines a 3D point in double coordinates.
A class representing a text.
QFlags< PaintAttribute > PaintAttributes
Paint attributes.
void setZ(double z)
Set the z value.
QwtColorMap is used to map values into colors.
bool testPaintAttribute(PaintAttribute) const
std::string format(const std::string &, const time_point< seconds > &, const femtoseconds &, const time_zone &)
QwtLinearColorMap builds a color map from color stops.
QwtPoint3D sample(int index) const
The map is intended to map into RGB values.
virtual void itemChanged()
void setColorMap(QwtColorMap *)
const QwtColorMap * colorMap() const
virtual QRgb rgb(const QwtInterval &interval, double value) const =0
virtual T sample(size_t i) const =0
virtual void drawDots(QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect, int from, int to) const
Base class for plot items representing a series of samples.
void setItemAttribute(ItemAttribute, bool on=true)
double transform(double s) const
Curve that displays 3D points as dots, where the z coordinate is mapped to a color.
virtual ~QwtPlotSpectroCurve()
Destructor.
void setPaintAttribute(PaintAttribute, bool on=true)
static void drawPoint(QPainter *, const QPoint &)
Wrapper for QPainter::drawPoint()
static bool roundingAlignment()
const QwtText & title() const
void setPenWidth(double width)