[vtkusers] Re: monitor progress of vol16Reader

Goodwin Lawlor goodwin.lawlor at ucd.ie
Thu Aug 5 19:42:12 EDT 2004


Hi Katherine,

The SetProgressMethod is a member function of the vtkProcessObject class
which is a superclass of both vtkVolume16Reader and vtkImageReader... so
they both should have the function.

SetProgressMethod has been depreciated anyway. You should use (for example
in tcl)

reader AddObserver ProgressEvent {puts "Progress: [reader GetProgess]"}

You could also use an instance of vtkTimerLog to time between the readers'
StartEvent and EndEvent.

I've no idea why vtkVolume16Reader would be quicker... the documentation
says vtkImageReader is a replacement for vtkVolume16Reader and should be
used instead.

hth

Goodwin

"Kate Kerekes" <kerekes at fastmail.fm> wrote in message
news:000001c47b3e$13dd5e40$0300a8c0 at kerekeslaptop...
Hello everyone,

I have looked at the messages regarding progress and update methods, but I
still can't answer my question.  I am reading a large dataset (400 MB) and I
need some sort of progress bar to update.  I was using vtkImageReader and
the SetProgressMethod.  This worked as expected.  Then I discovered that
vtkVolume16Reader read in the data up to 5 times faster.  So I want to read
my data with vtkVolume16Reader, but I need a way to set the progress method.
There are no "setProgress" methods in the vtkVolume16Reader class or any of
its parents.  Does anyone know a trick to find out the current progress of
the Volume16Reader?  Can someone explain why vtkImageReader is so much
slower than vtkVolume16Reader?  Is there anything I can do to make
vtkImageReader faster?

Thanks,
Katherine Kerekes



_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers






More information about the vtkusers mailing list