[vtkusers] How do I get the current state of a filter ?

Charl P. Botha c.p.botha at ewi.tudelft.nl
Thu Aug 7 10:59:40 EDT 2003


On Thu, 2003-08-07 at 16:46, de Boer Ingo wrote:
> I am using the vtkSurfaceReconstructionFilter with about 130000
> to 250000 points. This takes quite some time. I want to show
> some kind of progress bar or stdout or whatsoever which shows 
> the current point number, so the user knows how long he has to
> wait...
> 
> I have seen that there is something like a vtkProcessObject
> and  vtkCallbackCommand. Are these the right ones to deal with?
> I haven't found a sample on them  or on the thing I want to
> do ?!

You could use an observer for the ProgressEvent of the filter.  This
follows the standard VTK observer pattern, so just look for any examples
using "AddObserver".

-- 
charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/



More information about the vtkusers mailing list