Mercurial > hg > svgui
comparison layer/Colour3DPlotLayer.cpp @ 476:2613bc1b2823
* Avoid crash in StorageAdviser if temporary directory cannot be opened
author | Chris Cannam |
---|---|
date | Mon, 02 Feb 2009 17:07:47 +0000 |
parents | 3f4b10e76ccd |
children | f8b98f63f200 |
comparison
equal
deleted
inserted
replaced
475:3f4b10e76ccd | 476:2613bc1b2823 |
---|---|
744 | 744 |
745 void | 745 void |
746 Colour3DPlotLayer::fillCache(size_t firstBin, size_t lastBin) const | 746 Colour3DPlotLayer::fillCache(size_t firstBin, size_t lastBin) const |
747 { | 747 { |
748 Profiler profiler("Colour3DPlotLayer::fillCache"); | 748 Profiler profiler("Colour3DPlotLayer::fillCache"); |
749 | |
749 size_t modelStart = m_model->getStartFrame(); | 750 size_t modelStart = m_model->getStartFrame(); |
750 size_t modelEnd = m_model->getEndFrame(); | 751 size_t modelEnd = m_model->getEndFrame(); |
751 size_t modelResolution = m_model->getResolution(); | 752 size_t modelResolution = m_model->getResolution(); |
752 | 753 |
753 // std::cerr << "Colour3DPlotLayer::fillCache: " << firstBin << " -> " << lastBin << std::endl; | 754 // std::cerr << "Colour3DPlotLayer::fillCache: " << firstBin << " -> " << lastBin << std::endl; |
952 } | 953 } |
953 | 954 |
954 void | 955 void |
955 Colour3DPlotLayer::paint(View *v, QPainter &paint, QRect rect) const | 956 Colour3DPlotLayer::paint(View *v, QPainter &paint, QRect rect) const |
956 { | 957 { |
957 /*!!! | |
958 if (m_model) { | 958 if (m_model) { |
959 std::cerr << "Colour3DPlotLayer::paint: model says shouldUseLogValueScale = " << m_model->shouldUseLogValueScale() << std::endl; | 959 std::cerr << "Colour3DPlotLayer::paint: model says shouldUseLogValueScale = " << m_model->shouldUseLogValueScale() << std::endl; |
960 } | 960 } |
961 */ | 961 |
962 Profiler profiler("Colour3DPlotLayer::paint"); | 962 Profiler profiler("Colour3DPlotLayer::paint"); |
963 #ifdef DEBUG_COLOUR_3D_PLOT_LAYER_PAINT | 963 #ifdef DEBUG_COLOUR_3D_PLOT_LAYER_PAINT |
964 std::cerr << "Colour3DPlotLayer::paint(): m_model is " << m_model << ", zoom level is " << v->getZoomLevel() << std::endl; | 964 std::cerr << "Colour3DPlotLayer::paint(): m_model is " << m_model << ", zoom level is " << v->getZoomLevel() << std::endl; |
965 #endif | 965 #endif |
966 | 966 |