Changeset 8127 in ntrip for trunk/BNC/qwt/qwt_raster_data.cpp


Ignore:
Timestamp:
May 10, 2017, 3:20:54 PM (7 years ago)
Author:
stoecker
Message:

update qwt and qwtpolar, many QT5 fixes (unfinished)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/qwt/qwt_raster_data.cpp

    r4271 r8127  
    1010#include "qwt_raster_data.h"
    1111#include "qwt_point_3d.h"
     12#include <qnumeric.h>
    1213
    1314class QwtRasterData::ContourPlane
     
    9495        case 6:
    9596            // e(-1,1,0), e(1,0,-1)
    96             line[0] = vertex[1].toPoint();
     97            line[0] = vertex[2].toPoint();
    9798            line[1] = intersection( vertex[0], vertex[1] );
    9899            break;
     
    181182  \brief Initialize a raster
    182183
    183   Before the composition of an image QwtPlotSpectrogram calls initRaster,
     184  Before the composition of an image QwtPlotSpectrogram calls initRaster(),
    184185  announcing the area and its resolution that will be requested.
    185186
    186187  The default implementation does nothing, but for data sets that
    187   are stored in files, it might be good idea to reimplement initRaster,
     188  are stored in files, it might be good idea to reimplement initRaster(),
    188189  where the data is resampled and loaded into memory.
    189190
     
    221222   
    222223   Width and height of the hint need to be the horizontal 
    223    and vertical distances between 2 neighboured points.
     224   and vertical distances between 2 neighbored points.
    224225   The center of the hint has to be the position of any point
    225226   ( it doesn't matter which one ).
     
    247248/*!
    248249   Calculate contour lines
     250
     251   \param rect Bounding rectangle for the contour lines
     252   \param raster Number of data pixels of the raster data
     253   \param levels List of limits, where to insert contour lines
     254   \param flags Flags to customize the contouring algorithm
     255
     256   \return Calculated contour lines
    249257
    250258   An adaption of CONREC, a simple contouring algorithm.
     
    337345                if ( z > zMax )
    338346                    zMax = z;
     347            }
     348
     349            if ( qIsNaN( zSum ) )
     350            {
     351                // one of the points is NaN
     352                continue;
    339353            }
    340354
Note: See TracChangeset for help on using the changeset viewer.