<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Thank you for your answer Alex. I tried to follow your advices but failed to do what I wanted.<br>
<br>
INSTEAD I found a way of doing it : the callback function in AddObserver() can be implemented thess ways :<br>
- void foo(void);<br>
- void foo(vtkObject*, unsigned long, void*);<br>
<br>
Therefore I created a function like the second one, and it appears the vtkObject * points on the object on which we add the observer. I could get the Interactor back by casting this vtkObject, and then also the renderWindow, and that's all I needed so I think
I'll continue with this solution.<br>
<br>
I think the documentation on this function is really poor. I was able to find out the "unsigned long" is the Id of the event, but no idea about the void* that is sent.<br>
<br>
Thanks again, hope that may help someone else.</div>
</body>
</html>