You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
520 B
35 lines
520 B
|
3 years ago
|
#include <qwt_plot.h>
|
||
|
|
#include <qwt_plot_spectrogram.h>
|
||
|
|
|
||
|
|
class Plot: public QwtPlot
|
||
|
|
{
|
||
|
|
Q_OBJECT
|
||
|
|
|
||
|
|
public:
|
||
|
|
enum ColorMap
|
||
|
|
{
|
||
|
|
RGBMap,
|
||
|
|
IndexMap,
|
||
|
|
HueMap,
|
||
|
|
AlphaMap
|
||
|
|
};
|
||
|
|
|
||
|
|
Plot( QWidget * = NULL );
|
||
|
|
|
||
|
|
public Q_SLOTS:
|
||
|
|
void showContour( bool on );
|
||
|
|
void showSpectrogram( bool on );
|
||
|
|
void setColorMap( int );
|
||
|
|
void setAlpha( int );
|
||
|
|
|
||
|
|
#ifndef QT_NO_PRINTER
|
||
|
|
void printPlot();
|
||
|
|
#endif
|
||
|
|
|
||
|
|
private:
|
||
|
|
QwtPlotSpectrogram *d_spectrogram;
|
||
|
|
|
||
|
|
int d_mapType;
|
||
|
|
int d_alpha;
|
||
|
|
};
|