[vtkusers] [VTK + Python] vtkProcess - vtkCommand - start/update/end events
Andy Cedilnik
andy.cedilnik at kitware.com
Wed Jan 21 10:24:14 EST 2004
Hi Benoit,
You should use observers. Look at the answer from couple of days ago:
------------------------------------------------------
oid = o.AddObserver('InteractionEvent', move)
...blah blah...
o.RemoveObserver(oid)
JDH
------------------------------------------------------
Replace InteractionEvent with whatever event you need.
Andy
On Wed, 2004-01-21 at 04:54, Benoit Regrain wrote:
> I would obtain the start, end and update events comming from a
> vtkProcessObject
>
> Before, I used the SetStartMethod, SetEndMethod and SetUpdateMethod to
> make that
> But now, I'm using the current nightly version of VTK and these
> methods don't recently exist
>
> I think I must use the vtkCommand class to make that, but it isn't
> wrapped in python.
> I intend to write a vtkPythonCommand class inheriting from vtkCommand
> but this class can't be instanciated...
> Thus I have problems to compile my wrapped object
>
> What is the good way to get the start, end and update events from
> python ?
> Has anyone an exemple for me ?
More information about the vtkusers
mailing list