Changeset 8127 in ntrip for trunk/BNC/qwtpolar/qwt_polar_spectrogram.cpp
- Timestamp:
- May 10, 2017, 3:20:54 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwtpolar/qwt_polar_spectrogram.cpp
r4272 r8127 95 95 public: 96 96 PrivateData(): 97 data( NULL ), 98 renderThreadCount( 1 ) 97 data( NULL ) 99 98 { 100 99 colorMap = new QwtLinearColorMap(); … … 109 108 QwtRasterData *data; 110 109 QwtColorMap *colorMap; 111 112 uint renderThreadCount;113 110 114 111 QwtPolarSpectrogram::PaintAttributes paintAttributes; … … 223 220 { 224 221 return ( d_data->paintAttributes & attribute ); 225 }226 227 /*!228 Rendering an image from the raster data can often be done229 parallel on a multicore system.230 231 \param numThreads Number of threads to be used for rendering.232 If numThreads is set to 0, the system specific233 ideal thread count is used.234 235 The default thread count is 1 ( = no additional threads )236 237 \warning Rendering in multiple threads is only supported for Qt >= 4.4238 \sa renderThreadCount(), renderImage(), renderTile()239 */240 void QwtPolarSpectrogram::setRenderThreadCount( uint numThreads )241 {242 d_data->renderThreadCount = numThreads;243 }244 245 /*!246 \return Number of threads to be used for rendering.247 If numThreads is set to 0, the system specific248 ideal thread count is used.249 250 \warning Rendering in multiple threads is only supported for Qt >= 4.4251 \sa setRenderThreadCount(), renderImage(), renderTile()252 */253 uint QwtPolarSpectrogram::renderThreadCount() const254 {255 return d_data->renderThreadCount;256 222 } 257 223 … … 357 323 358 324 #if QT_VERSION >= 0x040400 && !defined(QT_NO_QFUTURE) 359 uint numThreads = d_data->renderThreadCount;325 uint numThreads = renderThreadCount(); 360 326 361 327 if ( numThreads <= 0 )
Note:
See TracChangeset
for help on using the changeset viewer.