From c04408d689c9df5600f762c604d4f988be618d51 Mon Sep 17 00:00:00 2001 From: tatiana Date: Tue, 26 Jan 2010 10:46:56 +0000 Subject: [PATCH] ENH: Set progress on measure step of the pipeline --- invesalius/data/surface.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/invesalius/data/surface.py b/invesalius/data/surface.py index aac7278..d0feaf5 100644 --- a/invesalius/data/surface.py +++ b/invesalius/data/surface.py @@ -231,7 +231,7 @@ class SurfaceManager(): if imagedata_resolution: imagedata = iu.ResampleImage3D(imagedata, imagedata_resolution) - pipeline_size = 3 + pipeline_size = 4 if decimate_reduction: pipeline_size += 1 if (smooth_iterations and smooth_relaxation_factor): @@ -341,6 +341,8 @@ class SurfaceManager(): # The following lines have to be here, otherwise all volumes disappear measured_polydata = vtk.vtkMassProperties() + measured_polydata.AddObserver("ProgressEvent", lambda obj,evt: + UpdateProgress(obj, _("Generating 3D surface..."))) measured_polydata.SetInput(polydata) volume = measured_polydata.GetVolume() surface.volume = volume -- libgit2 0.21.2