qwt_polar_spectrogram.h
/******************************************************************************
* QwtPolar Widget Library
* Copyright (C) 2008 Uwe Rathmann
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the Qwt License, Version 1.0
*****************************************************************************/
#ifndef QWT_POLAR_SPECTROGRAM_H
#define QWT_POLAR_SPECTROGRAM_H
#include "qwt_global.h"
#include "qwt_polar_item.h"
#include <qimage.h>
class QwtRasterData;
class QwtColorMap;
class QWT_EXPORT QwtPolarSpectrogram : public QwtPolarItem
{
public:
enum PaintAttribute
{
ApproximatedAtan = 0x01
};
Q_DECLARE_FLAGS( PaintAttributes, PaintAttribute )
explicit QwtPolarSpectrogram();
virtual ~QwtPolarSpectrogram();
void setData( QwtRasterData* data );
const QwtRasterData* data() const;
void setColorMap( QwtColorMap* );
const QwtColorMap* colorMap() const;
void setPaintAttribute( PaintAttribute, bool on = true );
bool testPaintAttribute( PaintAttribute ) const;
virtual int rtti() const QWT_OVERRIDE;
virtual void draw( QPainter* painter,
const QwtScaleMap& azimuthMap, const QwtScaleMap& radialMap,
const QPointF& pole, double radius,
const QRectF& canvasRect ) const QWT_OVERRIDE;
virtual QwtInterval boundingInterval( int scaleId ) const QWT_OVERRIDE;
protected:
virtual QImage renderImage(
const QwtScaleMap& azimuthMap, const QwtScaleMap& radialMap,
const QPointF& pole, const QRect& rect ) const;
virtual void renderTile(
const QwtScaleMap& azimuthMap, const QwtScaleMap& radialMap,
const QPointF& pole, const QPoint& imagePos,
const QRect& tile, QImage* image ) const;
private:
class TileInfo;
void renderTileInfo( const QwtScaleMap&, const QwtScaleMap&,
const QPointF& pole, TileInfo* ) const;
class PrivateData;
PrivateData* m_data;
};
Q_DECLARE_OPERATORS_FOR_FLAGS( QwtPolarSpectrogram::PaintAttributes )
#endif
QwtColorMap
QwtColorMap is used to map values into colors.
Definition: qwt_color_map.h:38
QwtInterval
A class representing an interval.
Definition: qwt_interval.h:23
QwtPolarItem
Base class for items on a polar plot.
Definition: qwt_polar_item.h:38
QwtPolarItem::rtti
virtual int rtti() const
Definition: qwt_polar_item.cpp:112
QwtPolarSpectrogram
An item, which displays a spectrogram.
Definition: qwt_polar_spectrogram.h:29
QwtPolarSpectrogram::PaintAttribute
PaintAttribute
Definition: qwt_polar_spectrogram.h:38
QwtPolarSpectrogram::PaintAttributes
QFlags< PaintAttribute > PaintAttributes
Definition: qwt_polar_spectrogram.h:47
QwtRasterData
QwtRasterData defines an interface to any type of raster data.
Definition: qwt_raster_data.h:43
QwtScaleMap
A scale map.
Definition: qwt_scale_map.h:27