Closed pkarasev3 closed 11 years ago
i dont think this is true. a modified event on the label is only called if there is a vtkImageData.Update() issued. perhaps youre thinking of "ModifedEvent" on a sliceLogic node. in that case, youre right, but we repeat a few operations (unnecessary, sure) but no real harm .
Ah, yeah I was thinking of the widgets. But in general there are some weird things with volumes being sync'd, hence my caution. Also it's an easy way to "leak" memory, if a reference remains somewhere after being left behind by a later operation.
This block has a flawed assumption; modfied happens in many situations, not necessarily drawing! Eg: switch modules, resize window, etc.
'''''
put a listener on label, so we know when user has drawn
'''''