comparison layer/Colour3DPlotLayer.cpp @ 475:3f4b10e76ccd

* add setLayerDormant
author Chris Cannam
date Thu, 29 Jan 2009 14:55:57 +0000
parents efc2bd6d3611
children 2613bc1b2823
comparison
equal deleted inserted replaced
474:efc2bd6d3611 475:3f4b10e76ccd
369 Colour3DPlotLayer::getOpaque() const 369 Colour3DPlotLayer::getOpaque() const
370 { 370 {
371 return m_opaque; 371 return m_opaque;
372 } 372 }
373 373
374 void
375 Colour3DPlotLayer::setLayerDormant(const View *v, bool dormant)
376 {
377 if (dormant) {
378
379 #ifdef DEBUG_COLOUR_3D_PLOT_LAYER_PAINT
380 std::cerr << "Colour3DPlotLayer::setLayerDormant(" << dormant << ")"
381 << std::endl;
382 #endif
383
384 if (isLayerDormant(v)) {
385 return;
386 }
387
388 Layer::setLayerDormant(v, true);
389
390 cacheInvalid();
391
392 } else {
393
394 Layer::setLayerDormant(v, false);
395 }
396 }
397
374 bool 398 bool
375 Colour3DPlotLayer::isLayerScrollable(const View *v) const 399 Colour3DPlotLayer::isLayerScrollable(const View *v) const
376 { 400 {
377 if (m_normalizeVisibleArea) return false; 401 if (m_normalizeVisibleArea) return false;
378 QPoint discard; 402 QPoint discard;