[vtk-developers] vtkActor events

fausto f4ust0f at gmail.com
Tue Jan 26 08:02:04 EST 2010


Hi All,
I'm trying to catch events from a vtkActor that notify any modification that
would cause the rendered image to appear differently. Usually I can use
GetRedrawMTime to know this information, but instead of polling this
information I need to listen for an event that notifies the modification of
the timestamp related to the actor redrawing.

Unfortunately I don't receive any event and I'm wondering if such an event
really exists on a vtkActor.
Resuming my code:

// create my vtkCommand callback
vtkCustomCallback* onModify = vtkCustomCallback::New();

// add the ModifiedEvent observer
actor->AddObserver(vtkCommand::ModifiedEvent,  onModify);

When i modify my actor or any of its previous inputs (mappers, sources,
etc), the vtkCustomCallback::Execute is never called.

Thanks in advance for your help.
Fausto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20100126/8fe76445/attachment.html>


More information about the vtk-developers mailing list