<div>I have a function that sets up my whole VTK rendering by defining various actor objects etc.</div>
<div>Specifically it sets up An vtkImagePlaneWidget and it adds an observer to the renderer. This is an observer i have created as a subplass of vtkCommand.</div>
<div>I have attached it to the &quot;KeyPress&quot; event, so that can respond to the user keypresses.</div>
<div>&nbsp;</div>
<div>My problem is that inside my object that implements my observer i of course have the Execute(...) command. From inside this command i want to gain access to the </div>
<div>vtkImagePlaneWidget, which i have defined in my main function....How can i do that?</div>
<div>&nbsp;</div>
<div>It seems to be impossible to interact with objects and filters etc. that i have used previousy to create the scene.</div>
<div>&nbsp;</div>
<div>I really hope someone can help me figure out how i can do that.</div>
<div>&nbsp;</div>
<div>Many regards</div>