On Wed, Dec 12, 2012 at 12:05 PM, a.c.sant <span dir="ltr">&lt;<a href="mailto:acsantome@gmail.com" target="_blank">acsantome@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi!!<br>
I&#39;m not able to remove an observer from the a vtkRenderWindow instance. I<br>
have searched the list a while and found several questions similar to this<br>
one, but unanswered, so here&#39;s come a new one. Maybe this time we&#39;re lucky!.<br>
<br>
I have added an observer with for the /vtkCommand::EndEvent/ in the<br>
/vtkRenderWindow/ object, so it would print some info upon render<br>
completion. That works fine.<br>
<br>
Once the event is satisfied, I don&#39;t need the observer anymore, so I use the<br>
/RemoveObserver/ method from the vtkRenderWindow to get rid of it. However<br>
this don&#39;t work, as the observer keeps printing info whenever I interact<br>
with the scene.<br>
<br>
Here&#39;s the code:<br>
<br>
<br>
Where the callback is used:<br>
<br>
<br>
What am I doing wrong?.<br>
<br>
Cheers!<br></blockquote><div><br></div>Can you please make a fully compilable example of this behavior? Perhaps something like when the mouse is clicked, an event is triggered (perform an output to stdout) and the observer is removed. Then on the next click we&#39;d expect to see nothing, but you&#39;re saying it would show the output again.</div>
<div class="gmail_quote"><br>David</div>