[vtk-developers] Fwd: vtkActor events
Jeff Baumes
jeff.baumes at kitware.com
Fri Jan 29 08:54:20 EST 2010
The issue is that any change to the actor, mapper, filters, etc. up to
the sources could potentially affect what the actor looks like on the
next render, and these are not part of the actor's modified time. I
think you would have to listen to the modified event on all these
classes (at least) to be notified of any change that could affect
rendering.
Jeff
On Fri, Jan 29, 2010 at 8:21 AM, fausto <f4ust0f at gmail.com> wrote:
> 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
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>
>
More information about the vtk-developers
mailing list