[vtk-developers] Fwd: vtkActor events

fausto f4ust0f at gmail.com
Fri Jan 29 08:21:47 EST 2010


Any help on this, please?
Thanks

---------- Forwarded message ----------
From: fausto <f4ust0f at gmail.com>
Date: Tue, Jan 26, 2010 at 2:02 PM
Subject: vtkActor events
To: vtk-developers at vtk.org


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/20100129/02407945/attachment.html>


More information about the vtk-developers mailing list