Mercurial > hg > svgui
comparison layer/Colour3DPlotLayer.cpp @ 1102:36a981a0fa31 spectrogram-minor-refactor
Delete renderers
author | Chris Cannam |
---|---|
date | Wed, 13 Jul 2016 13:44:11 +0100 |
parents | 1364cbf4453d |
children | d84a0033b305 |
comparison
equal
deleted
inserted
replaced
1101:1364cbf4453d | 1102:36a981a0fa31 |
---|---|
77 Colour3DPlotLayer::~Colour3DPlotLayer() | 77 Colour3DPlotLayer::~Colour3DPlotLayer() |
78 { | 78 { |
79 delete m_cache; | 79 delete m_cache; |
80 delete m_peaksCache; //!!! this one is to go... | 80 delete m_peaksCache; //!!! this one is to go... |
81 delete m_peakCache; | 81 delete m_peakCache; |
82 | |
83 cacheInvalid(); //!!! dup with above? | |
82 } | 84 } |
83 | 85 |
84 void | 86 void |
85 Colour3DPlotLayer::setSynchronousPainting(bool synchronous) | 87 Colour3DPlotLayer::setSynchronousPainting(bool synchronous) |
86 { | 88 { |
128 delete m_peaksCache; | 130 delete m_peaksCache; |
129 m_cache = 0; | 131 m_cache = 0; |
130 m_peaksCache = 0; | 132 m_peaksCache = 0; |
131 m_cacheValidStart = 0; | 133 m_cacheValidStart = 0; |
132 m_cacheValidEnd = 0; | 134 m_cacheValidEnd = 0; |
135 | |
136 //!!! | |
137 for (ViewRendererMap::iterator i = m_renderers.begin(); | |
138 i != m_renderers.end(); ++i) { | |
139 delete i->second; | |
140 } | |
141 m_renderers.clear(); | |
133 } | 142 } |
134 | 143 |
135 void | 144 void |
136 Colour3DPlotLayer::cacheInvalid(sv_frame_t startFrame, sv_frame_t endFrame) | 145 Colour3DPlotLayer::cacheInvalid(sv_frame_t startFrame, sv_frame_t endFrame) |
137 { | 146 { |