[vtkusers] RemoveObserver isn't working.

a.c.sant acsantome at gmail.com
Wed Dec 12 12:05:38 EST 2012


Hi!!
I'm not able to remove an observer from the a vtkRenderWindow instance. I
have searched the list a while and found several questions similar to this
one, but unanswered, so here's come a new one. Maybe this time we're lucky!.

I have added an observer with for the /vtkCommand::EndEvent/ in the
/vtkRenderWindow/ object, so it would print some info upon render
completion. That works fine.

Once the event is satisfied, I don't need the observer anymore, so I use the
/RemoveObserver/ method from the vtkRenderWindow to get rid of it. However
this don't work, as the observer keeps printing info whenever I interact
with the scene.

Here's the code:


Where the callback is used:


What am I doing wrong?.

Cheers!.



--
View this message in context: http://vtk.1045678.n5.nabble.com/RemoveObserver-isn-t-working-tp5717581.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list