[vtkusers] iterative procedure and pipeline updating

Charles Law charles.law at kitware.com
Thu Aug 10 08:07:21 EDT 2000


Jorris,

It is possible to get the filter working the way you want.  A filter can 
cache any information it wants internally.  The trick would be to determine 
when the filter is executing because the number of iterations was changed 
vs. a parameter change upstream (which would require starting from 
iteration 0 again).  At the end of you execute method, you would have to 
save your output (DeepCopy or ShallowCopy) the number of iterations it 
represents and the Pipeline MTime of you input.  The next execute would 
check that the iteration increased (did not decrease) and the inputs 
PipelineMTime did not get larger.  The execute would start where it left 
off last time with the cached data ...

Charles.




At 03:21 PM 8/9/00 +0200, kitware-vtk at kulnet.kuleuven.ac.be wrote:
>---  Forwarded by news2mail for "Joris Vanden Wyngaerd" 
><joris.vandenwyngaerd at esat.kuleuven.ac.be> ---
>
>Hi,
>
>I wrote a filter which executes an iterative procedure. One parameter is the
>maximum number of iterations. I would like that if I increase this number,
>e.g. from 50 to 60, that only 10 extra iterations are done and not 60 new
>ones. I can not find a way to get this to work. Can someone give me advice ?
>Does a vtk filter exists which does something similar ?
>
>Joris
>
>--
>
>================
>Joris Vanden Wyngaerd
>coordinates : http://www.esat.kuleuven.ac.be/~joris/personalia.html
>
>
>
>_______________________________________________
>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://public.kitware.com/mailman/listinfo/vtkusers





More information about the vtkusers mailing list