Changeset 9383 in ntrip for trunk/BNC/qwt/qwt_matrix_raster_data.cpp
- Timestamp:
- Mar 19, 2021, 9:15:03 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_matrix_raster_data.cpp
r8127 r9383 82 82 \param axis X, Y or Z axis 83 83 \param interval Interval 84 84 85 85 \sa QwtRasterData::interval(), setValueMatrix() 86 86 */ 87 void QwtMatrixRasterData::setInterval( 87 void QwtMatrixRasterData::setInterval( 88 88 Qt::Axis axis, const QwtInterval &interval ) 89 89 { … … 97 97 The positions of the values are calculated by dividing 98 98 the bounding rectangle of the X/Y intervals into equidistant 99 rectangles ( pixels ). Each value corresponds to the center of 99 rectangles ( pixels ). Each value corresponds to the center of 100 100 a pixel. 101 101 … … 105 105 \sa valueMatrix(), numColumns(), numRows(), setInterval()() 106 106 */ 107 void QwtMatrixRasterData::setValueMatrix( 107 void QwtMatrixRasterData::setValueMatrix( 108 108 const QVector<double> &values, int numColumns ) 109 109 { … … 162 162 \brief Calculate the pixel hint 163 163 164 pixelHint() returns the geometry of a pixel, that can be used 164 pixelHint() returns the geometry of a pixel, that can be used 165 165 to calculate the resolution and alignment of the plot item, that is 166 representing the data. 166 representing the data. 167 167 168 168 - NearestNeighbour\n 169 pixelHint() returns the surrounding pixel of the top left value 169 pixelHint() returns the surrounding pixel of the top left value 170 170 in the matrix. 171 171 172 172 - BilinearInterpolation\n 173 173 Returns an empty rectangle recommending 174 to render in target device ( f.e. screen ) resolution. 174 to render in target device ( f.e. screen ) resolution. 175 175 176 176 \param area Requested area, ignored … … 240 240 const double v22 = d_data->value( row2, col2 ); 241 241 242 const double x2 = xInterval.minValue() + 242 const double x2 = xInterval.minValue() + 243 243 ( col2 + 0.5 ) * d_data->dx; 244 const double y2 = yInterval.minValue() + 244 const double y2 = yInterval.minValue() + 245 245 ( row2 + 0.5 ) * d_data->dy; 246 246 247 247 const double rx = ( x2 - x ) / d_data->dx; 248 248 const double ry = ( y2 - y ) / d_data->dy;
Note:
See TracChangeset
for help on using the changeset viewer.