Changeset 9383 in ntrip for trunk/BNC/qwt/qwt_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_raster_data.cpp
r8127 r9383 217 217 \brief Pixel hint 218 218 219 pixelHint() returns the geometry of a pixel, that can be used 219 pixelHint() returns the geometry of a pixel, that can be used 220 220 to calculate the resolution and alignment of the plot item, that is 221 representing the data. 222 223 Width and height of the hint need to be the horizontal 224 and vertical distances between 2 neighbored points. 225 The center of the hint has to be the position of any point 221 representing the data. 222 223 Width and height of the hint need to be the horizontal 224 and vertical distances between 2 neighbored points. 225 The center of the hint has to be the position of any point 226 226 ( it doesn't matter which one ). 227 227 … … 230 230 Limiting the resolution of the image might significantly improve 231 231 the performance and heavily reduce the amount of memory when rendering 232 a QImage from the raster data. 232 a QImage from the raster data. 233 233 234 234 The default implementation returns an empty rectangle recommending … … 238 238 depend on the requested area. 239 239 240 \return Bounding rectangle of a pixel 240 \return Bounding rectangle of a pixel 241 241 */ 242 242 QRectF QwtRasterData::pixelHint( const QRectF &area ) const 243 243 { 244 244 Q_UNUSED( area ); 245 return QRectF(); 245 return QRectF(); 246 246 } 247 247 … … 281 281 QwtRasterData *that = const_cast<QwtRasterData *>( this ); 282 282 that->initRaster( rect, raster ); 283 284 #if __GNUC__ >= 9 285 #pragma GCC diagnostic push 286 #pragma GCC diagnostic ignored "-Wdeprecated-copy" 287 #endif 283 288 284 289 for ( int y = 0; y < raster.height() - 1; y++ ) … … 399 404 } 400 405 406 #if __GNUC__ >= 9 407 #pragma GCC diagnostic pop 408 #endif 409 401 410 that->discardRaster(); 402 411
Note:
See TracChangeset
for help on using the changeset viewer.