def reset(self): """ Resets the module to initial state. This method is used mainly when doing previews, when the parameters that control the colocalization are changed and the preview data becomes invalid. """ Module.reset(self) self.preview = None self.intensityTransferFunctions = [] self.extent = None
def reset(self): """ Resets the module to initial state. This method is used mainly when doing previews, when the parameters that control the colocalization are changed and the preview data becomes invalid. """ Module.reset(self) self.colocFilter = vtkbxd.vtkImageColocalizationFilter() self.colocFilter.AddObserver('ProgressEvent', lib.messenger.send) lib.messenger.connect(self.colocFilter, "ProgressEvent", self.updateProgress) self.colocAutoThreshold = vtkbxd.vtkImageAutoThresholdColocalization() self.colocAutoThreshold.GetOutput().ReleaseDataFlagOn() self.colocAutoThreshold.AddObserver('ProgressEvent', lib.messenger.send) lib.messenger.connect(self.colocAutoThreshold, "ProgressEvent", self.updateProgress) self.thresholds = [] self.settingsLst = [] self.preview = None self.n = -1