<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->SetRenderWindow(this->pvtkMFCWindow2->GetRenderWindow());
<br>iren->SetInteractorStyle(NULL);
<br>iren->Initialize();
<br>m_pInteractorCallback->SetRenderer(this);
<br>observer = iren->AddObserver( vtkCommand::RightButtonPressEvent, m_pInteractorCallback);
<br><br>To undo what I did, I tried:
<br>iren->SetRenderWindow(NULL);
<br>this->pvtkMFCWindow2->GetRenderWindow()->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> <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>