[Insight-developers] testing modified times of process objects
Will Schroeder
will.schroeder at kitware.com
Wed Sep 20 15:44:47 EDT 2000
Hi Josh-
The way it's supposed to work is that the filter superclasses will take
care of all of that for you, and only invoke Execute() when the filter is
out of date. For this to work properly, it's very important to use Set/Get
macros which take care of sending a Modified() to the filter if something
changes (or of course you can do that yourself).
Will
At 03:07 PM 9/20/00 -0400, Josh Cates wrote:
>Hello folks,
>
>How can I test a filter to see if it has been modified since its Execute()
>method was last called?
>
>For example say I want to do something like:
>
> MyFilterClass::Execute()
> {
> if ( this->HasBeenModifiedSinceLastExecuteCall() )
> {
> this->RecalculateSomeFilterParameters();
> }
>
> Filter();
> }
>
>
>Josh.
>+--+--+--+--+--+--+--+--+--+--+--+--
> Josh Cates
> Dept. of Electrical Engineering
> University of Tennessee, Knoxville
> Email: jecates at utk.edu
> Phone: (865) 974-0694
> URL: www.cs.utk.edu/~cates
>--+--+--+--+--+--+--+--+--+--+--+---
>
>
>_______________________________________________
>Insight-developers mailing list
>Insight-developers at public.kitware.com
>http://public.kitware.com/mailman/listinfo/insight-developers
More information about the Insight-developers
mailing list