Thanks, now everything is clear for me! Maybe it would by nice for others to put a little comment in the vtk-doc how to use this method: p->SetExecuteMethod(myFunction, (void *)p);