<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Hello.
<br><br>I add a RenderWindowInteractor to my RenderWindow, but after it
is no more used,in another function, I want to remove it and go back to
the default interactor where leftbutton is for rotation, rightbutton is
for zoom, etc.
<br><br>Here is the code I am using to add the interactor:
<br><br>MyInteractorCallback* m_pInteractorCallback = MyInteractorCallback::New();
<br>iren = vtkRenderWindowInteractor::New();
<br>iren-&gt;SetRenderWindow(this-&gt;pvtkMFCWindow2-&gt;GetRenderWindow());
<br>iren-&gt;SetInteractorStyle(NULL);
<br>iren-&gt;Initialize();
<br>m_pInteractorCallback-&gt;SetRenderer(this); 
<br>observer = iren-&gt;AddObserver( vtkCommand::RightButtonPressEvent, m_pInteractorCallback);
<br><br>To undo what I did, I tried:
<br>iren-&gt;SetRenderWindow(NULL);
<br>this-&gt;pvtkMFCWindow2-&gt;GetRenderWindow()-&gt;UnRegister(iren);
<br><br>but couldn't make it work.
<br><br>Any help is much appreciated. <img class="smiley" src="http://www.nabble.com/images/smiley/anim_confused.gif"><br>Nesli<div>
<font color="#336699" face="Lucida Handwriting, Cursive"><u><strong></strong></u></font>&nbsp;<BR></div><br><br>                                               <br /><hr />What can you do with the new Windows Live? <a href='http://www.microsoft.com/windows/windowslive/default.aspx' target='_new'>Find out</a></body>
</html>