[vtkusers] Use of SetExecuteMethod

Joey Mukherjee joey at swri.edu
Mon Aug 30 11:50:45 EDT 2004


I think you need:

void func (void *obj)
{
}

filter->SetExecuteMethod (func, (void *)this);  // this can be 
whatever...

If you are using C++ for the "func", it must be static.

On Aug 27, 2004, at 12:08 AM, camilo.jimenez at spymac.com wrote:

> I am trying to use the vtkProgrammableFilter in c++ but I haven't come 
> with
> the use of SetExecuteMethod.
>
> The Help says
> void vtkProgrammableFilter::SetExecuteMethod (void (*f)(void *),
>                                                                        
>   void*arg)
>
> so I tried
>
> void func(void){
> }
>
> and
>
> filter->SetExecuteMethod(func)  //like the tcl example
>
> and other things like that, but I couldn't compile it.
>
> Can somebody help me.
> ThanX
>
> _______________________________________________
> 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
>
>
Joey




More information about the vtkusers mailing list