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_matrix_raster_data.h

    r9383 r11158  
    1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
     1/******************************************************************************
    22 * Qwt Widget Library
    33 * Copyright (C) 1997   Josef Wilgen
    … …  
    99
    1010#ifndef QWT_MATRIX_RASTER_DATA_H
    11 #define QWT_MATRIX_RASTER_DATA_H 1
     11#define QWT_MATRIX_RASTER_DATA_H
    1212
    1313#include "qwt_global.h"
    1414#include "qwt_raster_data.h"
    15 #include <qvector.h>
     15
     16#if QT_VERSION < 0x060000
     17template< typename T > class QVector;
     18#endif
    1619
    1720/*!
    18   \brief A class representing a matrix of values as raster data
     21   \brief A class representing a matrix of values as raster data
    1922
    20   QwtMatrixRasterData implements an interface for a matrix of
    21   equidistant values, that can be used by a QwtPlotRasterItem.
    22   It implements a couple of resampling algorithms, to provide
    23   values for positions, that or not on the value matrix.
    24 */
    25 class QWT_EXPORT QwtMatrixRasterData: public QwtRasterData
     23   QwtMatrixRasterData implements an interface for a matrix of
     24   equidistant values, that can be used by a QwtPlotRasterItem.
     25   It implements a couple of resampling algorithms, to provide
     26   values for positions, that or not on the value matrix.
     27 */
     28class QWT_EXPORT QwtMatrixRasterData : public QwtRasterData
    2629{
    27 public:
     30  public:
    2831    /*!
    29       \brief Resampling algorithm
    30       The default setting is NearestNeighbour;
    31     */
     32       \brief Resampling algorithm
     33       The default setting is NearestNeighbour;
     34     */
    3235    enum ResampleMode
    3336    {
    3437        /*!
    35           Return the value from the matrix, that is nearest to the
    36           the requested position.
     38           Return the value from the matrix, that is nearest to the
     39           the requested position.
    3740         */
    3841        NearestNeighbour,
    3942
    4043        /*!
    41           Interpolate the value from the distances and values of the
    42           4 surrounding values in the matrix,
     44           Interpolate the value from the distances and values of the
     45           4 surrounding values in the matrix,
    4346         */
    44         BilinearInterpolation
     47        BilinearInterpolation,
     48
     49        /*!
     50           Interpolate the value from the 16 surrounding values in the
     51           matrix using hermite bicubic interpolation
     52         */
     53        BicubicInterpolation
    4554    };
    4655
    … …  
    5160    ResampleMode resampleMode() const;
    5261
    53     virtual void setInterval( Qt::Axis, const QwtInterval & );
     62    void setInterval( Qt::Axis, const QwtInterval& );
     63    virtual QwtInterval interval( Qt::Axis axis) const QWT_OVERRIDE QWT_FINAL;
    5464
    55     void setValueMatrix( const QVector<double> &values, int numColumns );
    56     const QVector<double> valueMatrix() const;
     65    void setValueMatrix( const QVector< double >& values, int numColumns );
     66    const QVector< double > valueMatrix() const;
    5767
    5868    void setValue( int row, int col, double value );
    … …  
    6171    int numRows() const;
    6272
    63     virtual QRectF pixelHint( const QRectF & ) const;
     73    virtual QRectF pixelHint( const QRectF& ) const QWT_OVERRIDE;
    6474
    65     virtual double value( double x, double y ) const;
     75    virtual double value( double x, double y ) const QWT_OVERRIDE;
    6676
    67 private:
     77  private:
    6878    void update();
    6979
    7080    class PrivateData;
    71     PrivateData *d_data;
     81    PrivateData* m_data;
    7282};
    7383
Note: See TracChangeset for help on using the changeset viewer.