Changeset 11158 in ntrip for trunk/BNC/qwt/qwt_pixel_matrix.h


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

    r8127 r11158  
    1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
     1/******************************************************************************
    22 * Qwt Widget Library
    33 * Copyright (C) 1997   Josef Wilgen
    … …  
    1212
    1313#include "qwt_global.h"
     14
    1415#include <qbitarray.h>
    1516#include <qrect.h>
    1617
    1718/*!
    18   \brief A bit field corresponding to the pixels of a rectangle
     19   \brief A bit field corresponding to the pixels of a rectangle
    1920
    20   QwtPixelMatrix is intended to filter out duplicates in an
    21   unsorted array of points.
    22 */
    23 class QWT_EXPORT QwtPixelMatrix: public QBitArray
     21   QwtPixelMatrix is intended to filter out duplicates in an
     22   unsorted array of points.
     23 */
     24class QWT_EXPORT QwtPixelMatrix : public QBitArray
    2425{
    25 public:
    26     QwtPixelMatrix( const QRect& rect );
     26  public:
     27    explicit QwtPixelMatrix( const QRect& rect );
    2728    ~QwtPixelMatrix();
    2829
    … …  
    3536    int index( int x, int y ) const;
    3637
    37 private:
    38     QRect d_rect;
     38  private:
     39    QRect m_rect;
    3940};
    4041
    4142/*!
    42   \brief Test if a pixel has been set
     43   \brief Test if a pixel has been set
    4344
    44   \param x X-coordinate
    45   \param y Y-coordinate
     45   \param x X-coordinate
     46   \param y Y-coordinate
    4647
    47   \return true, when pos is outside of rect(), or when the pixel
     48   \return true, when pos is outside of rect(), or when the pixel
    4849          has already been set.
    4950 */
    … …  
    5556
    5657/*!
    57   \brief Set a pixel and test if a pixel has been set before
     58   \brief Set a pixel and test if a pixel has been set before
    5859
    59   \param x X-coordinate
    60   \param y Y-coordinate
    61   \param on Set/Clear the pixel
     60   \param x X-coordinate
     61   \param y Y-coordinate
     62   \param on Set/Clear the pixel
    6263
    63   \return true, when pos is outside of rect(), or when the pixel
     64   \return true, when pos is outside of rect(), or when the pixel
    6465          was set before.
    6566 */
    … …  
    7778
    7879/*!
    79   \brief Calculate the index in the bit field corresponding to a position
     80   \brief Calculate the index in the bit field corresponding to a position
    8081
    81   \param x X-coordinate
    82   \param y Y-coordinate
    83   \return Index, when rect() contains pos - otherwise -1.
     82   \param x X-coordinate
     83   \param y Y-coordinate
     84   \return Index, when rect() contains pos - otherwise -1.
    8485 */
    8586inline int QwtPixelMatrix::index( int x, int y ) const
    8687{
    87     const int dx = x - d_rect.x();
    88     if ( dx < 0 || dx >= d_rect.width() )
     88    const int dx = x - m_rect.x();
     89    if ( dx < 0 || dx >= m_rect.width() )
    8990        return -1;
    9091
    91     const int dy = y - d_rect.y();
    92     if ( dy < 0 || dy >= d_rect.height() )
     92    const int dy = y - m_rect.y();
     93    if ( dy < 0 || dy >= m_rect.height() )
    9394        return -1;
    9495
    95     return dy * d_rect.width() + dx;
     96    return dy * m_rect.width() + dx;
    9697}
    9798
Note: See TracChangeset for help on using the changeset viewer.