Ignore:
Timestamp:
Nov 3, 2026, 10:53:35 AM (3 weeks ago)
Author:
stuerze
Message:

deprecated functions exchanged libs updated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/qwt/qwt_plot_spectrogram.h

    r9383 r11158  
    1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
     1/******************************************************************************
    22 * Qwt Widget Library
    33 * Copyright (C) 1997   Josef Wilgen
    … …  
    1414#include "qwt_raster_data.h"
    1515#include "qwt_plot_rasteritem.h"
    16 #include <qlist.h>
    1716
    1817class QwtColorMap;
     18template< typename T > class QList;
    1919
    2020/*!
    21   \brief A plot item, which displays a spectrogram
     21   \brief A plot item, which displays a spectrogram
    2222
    23   A spectrogram displays 3-dimensional data, where the 3rd dimension
    24   ( the intensity ) is displayed using colors. The colors are calculated
    25   from the values using a color map.
     23   A spectrogram displays 3-dimensional data, where the 3rd dimension
     24   ( the intensity ) is displayed using colors. The colors are calculated
     25   from the values using a color map.
    2626
    27   On multi-core systems the performance of the image composition
    28   can often be improved by dividing the area into tiles - each of them
    29   rendered in a different thread ( see QwtPlotItem::setRenderThreadCount() ).
     27   On multi-core systems the performance of the image composition
     28   can often be improved by dividing the area into tiles - each of them
     29   rendered in a different thread ( see QwtPlotItem::setRenderThreadCount() ).
    3030
    31   In ContourMode contour lines are painted for the contour levels.
     31   In ContourMode contour lines are painted for the contour levels.
    3232
    33   \image html spectrogram3.png
     33   \sa QwtRasterData, QwtColorMap, QwtPlotItem::setRenderThreadCount()
     34 */
    3435
    35   \sa QwtRasterData, QwtColorMap, QwtPlotItem::setRenderThreadCount()
    36 */
    37 
    38 class QWT_EXPORT QwtPlotSpectrogram: public QwtPlotRasterItem
     36class QWT_EXPORT QwtPlotSpectrogram : public QwtPlotRasterItem
    3937{
    40 public:
     38  public:
    4139    /*!
    42       The display mode controls how the raster data will be represented.
    43       \sa setDisplayMode(), testDisplayMode()
    44     */
     40       The display mode controls how the raster data will be represented.
     41       \sa setDisplayMode(), testDisplayMode()
     42     */
    4543
    4644    enum DisplayMode
    … …  
    5351    };
    5452
    55     //! Display modes
    56     typedef QFlags<DisplayMode> DisplayModes;
     53    Q_DECLARE_FLAGS( DisplayModes, DisplayMode )
    5754
    58     explicit QwtPlotSpectrogram( const QString &title = QString() );
     55    explicit QwtPlotSpectrogram( const QString& title = QString() );
    5956    virtual ~QwtPlotSpectrogram();
    6057
    … …  
    6259    bool testDisplayMode( DisplayMode ) const;
    6360
    64     void setData( QwtRasterData *data );
    65     const QwtRasterData *data() const;
    66     QwtRasterData *data();
     61    void setData( QwtRasterData* data );
     62    const QwtRasterData* data() const;
     63    QwtRasterData* data();
    6764
    68     void setColorMap( QwtColorMap * );
    69     const QwtColorMap *colorMap() const;
     65    void setColorMap( QwtColorMap* );
     66    const QwtColorMap* colorMap() const;
    7067
    71     virtual QwtInterval interval(Qt::Axis) const;
    72     virtual QRectF pixelHint( const QRectF & ) const;
     68    void setColorTableSize( int numColors );
     69    int colorTableSize() const;
    7370
    74     void setDefaultContourPen( const QColor &,
     71    virtual QwtInterval interval( Qt::Axis ) const QWT_OVERRIDE;
     72    virtual QRectF pixelHint( const QRectF& ) const QWT_OVERRIDE;
     73
     74    void setDefaultContourPen( const QColor&,
    7575        qreal width = 0.0, Qt::PenStyle = Qt::SolidLine );
    76     void setDefaultContourPen( const QPen & );
     76    void setDefaultContourPen( const QPen& );
    7777    QPen defaultContourPen() const;
    7878
    … …  
    8282    bool testConrecFlag( QwtRasterData::ConrecFlag ) const;
    8383
    84     void setContourLevels( const QList<double> & );
    85     QList<double> contourLevels() const;
     84    void setContourLevels( const QList< double >& );
     85    QList< double > contourLevels() const;
    8686
    87     virtual int rtti() const;
     87    virtual int rtti() const QWT_OVERRIDE;
    8888
    89     virtual void draw( QPainter *,
    90         const QwtScaleMap &xMap, const QwtScaleMap &yMap,
    91         const QRectF &canvasRect ) const;
     89    virtual void draw( QPainter*,
     90        const QwtScaleMap& xMap, const QwtScaleMap& yMap,
     91        const QRectF& canvasRect ) const QWT_OVERRIDE;
    9292
    93 protected:
     93  protected:
    9494    virtual QImage renderImage(
    95         const QwtScaleMap &xMap, const QwtScaleMap &yMap,
    96         const QRectF &area, const QSize &imageSize ) const;
     95        const QwtScaleMap& xMap, const QwtScaleMap& yMap,
     96        const QRectF& area, const QSize& imageSize ) const QWT_OVERRIDE;
    9797
    9898    virtual QSize contourRasterSize(
    99         const QRectF &, const QRect & ) const;
     99        const QRectF&, const QRect& ) const;
    100100
    101101    virtual QwtRasterData::ContourLines renderContourLines(
    102         const QRectF &rect, const QSize &raster ) const;
     102        const QRectF& rect, const QSize& raster ) const;
    103103
    104     virtual void drawContourLines( QPainter *,
    105         const QwtScaleMap &xMap, const QwtScaleMap &yMap,
     104    virtual void drawContourLines( QPainter*,
     105        const QwtScaleMap& xMap, const QwtScaleMap& yMap,
    106106        const QwtRasterData::ContourLines& ) const;
    107107
    108     void renderTile( const QwtScaleMap &xMap, const QwtScaleMap &yMap,
    109         const QRect &tile, QImage * ) const;
     108    void renderTile( const QwtScaleMap& xMap, const QwtScaleMap& yMap,
     109        const QRect& tile, QImage* ) const;
    110110
    111 private:
     111  private:
    112112    class PrivateData;
    113     PrivateData *d_data;
     113    PrivateData* m_data;
    114114};
    115115
Note: See TracChangeset for help on using the changeset viewer.