Qwt User's Guide 6.3.0
Loading...
Searching...
No Matches
qwt_plot_spectrocurve.h
1/******************************************************************************
2 * Qwt Widget Library
3 * Copyright (C) 1997 Josef Wilgen
4 * Copyright (C) 2002 Uwe Rathmann
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the Qwt License, Version 1.0
8 *****************************************************************************/
9
10#ifndef QWT_PLOT_CURVE_3D_H
11#define QWT_PLOT_CURVE_3D_H
12
13#include "qwt_global.h"
14#include "qwt_plot_seriesitem.h"
15
16class QwtColorMap;
17
22class QWT_EXPORT QwtPlotSpectroCurve
23 : public QwtPlotSeriesItem
24 , public QwtSeriesStore< QwtPoint3D >
25{
26 public:
29 {
31 ClipPoints = 1
32 };
33
34 Q_DECLARE_FLAGS( PaintAttributes, PaintAttribute )
35
36 explicit QwtPlotSpectroCurve( const QString& title = QString() );
37 explicit QwtPlotSpectroCurve( const QwtText& title );
38
39 virtual ~QwtPlotSpectroCurve();
40
41 virtual int rtti() const QWT_OVERRIDE;
42
43 void setPaintAttribute( PaintAttribute, bool on = true );
44 bool testPaintAttribute( PaintAttribute ) const;
45
46 void setSamples( const QVector< QwtPoint3D >& );
47 void setSamples( QwtSeriesData< QwtPoint3D >* );
48
49
50 void setColorMap( QwtColorMap* );
51 const QwtColorMap* colorMap() const;
52
53 void setColorRange( const QwtInterval& );
54 QwtInterval& colorRange() const;
55
56 virtual void drawSeries( QPainter*,
57 const QwtScaleMap& xMap, const QwtScaleMap& yMap,
58 const QRectF& canvasRect, int from, int to ) const QWT_OVERRIDE;
59
60 void setPenWidth( double );
61 double penWidth() const;
62
63 protected:
64 virtual void drawDots( QPainter*,
65 const QwtScaleMap& xMap, const QwtScaleMap& yMap,
66 const QRectF& canvasRect, int from, int to ) const;
67
68 private:
69 void init();
70
71 class PrivateData;
72 PrivateData* m_data;
73};
74
75Q_DECLARE_OPERATORS_FOR_FLAGS( QwtPlotSpectroCurve::PaintAttributes )
76
77#endif
QwtColorMap is used to map values into colors.
A class representing an interval.
virtual int rtti() const
Base class for plot items representing a series of samples.
Curve that displays 3D points as dots, where the z coordinate is mapped to a color.
PaintAttribute
Paint attributes.
QFlags< PaintAttribute > PaintAttributes
QwtPoint3D class defines a 3D point in double coordinates.
A scale map.
Abstract interface for iterating over samples.
Class storing a QwtSeriesData object.
A class representing a text.
Definition qwt_text.h:52