<font color='black' size='2' face='arial'><font color="black" face="arial" size="2">

<div style="font-family: arial,helvetica; font-size: 10pt; color: black;">


<div id="AOLMsgPart_1_8bf4fb32-c90b-4760-a918-56c77f15b252">

<font color="black" face="arial" size="2">


<div id="AOLMsgPart_3_576efb8d-9ed3-4583-b427-123c082c8330">

<font color="black" face="arial" size="2"><span style="font-family: Arial,Helvetica,sans-serif; background-color: rgb(255, 255, 255); font-size: small;">Hi,</span>



<div><br style="font-family: Arial,Helvetica,sans-serif; background-color: rgb(255, 255, 255); font-size: small;"><span style="font-family: Arial,Helvetica,sans-serif; background-color: rgb(255, 255, 255); font-size: small;">I am trying to remove the Keypress event (ultimately the keyboard shortcut) for the letter 'r'.&nbsp;</span><br style="font-family: Arial,Helvetica,sans-serif; background-color: rgb(255, 255, 255); font-size: small;"><br style="font-family: Arial,Helvetica,sans-serif; background-color: rgb(255, 255, 255); font-size: small;"><span style="font-family: Arial,Helvetica,sans-serif; background-color: rgb(255, 255, 255); font-size: small;">It
 is one of the keys that are active by default - and pushing it resets 
the camera along the current view direction. However, in the version of 
vtk that I am using (5.2.1), this causes strange behavior.&nbsp; 
Specifically: After hitting the r key, the image resizes. After that, 
when you click on the image with the left mouse key, the image is no 
longer visible. Finally, we never use the r key, but it often causes 
problems when it is hit by accident, which is often - as we frequently 
use the 'e' key. For all these reasons we want to remove it.</span><br style="font-family: Arial,Helvetica,sans-serif; background-color: rgb(255, 255, 255); font-size: small;"><br style="font-family: Arial,Helvetica,sans-serif; background-color: rgb(255, 255, 255); font-size: small;"><span style="font-family: Arial,Helvetica,sans-serif; background-color: rgb(255, 255, 255); font-size: small;">I
 searched the web and found that it should be easy to do this using the 
RemoveObserver (or is it RemoveObservers) function on the Interactor, 
and found examples for the LeftButtonPressEvent.</span><br style="font-family: Arial,Helvetica,sans-serif; background-color: rgb(255, 255, 255); font-size: small;"><br style="font-family: Arial,Helvetica,sans-serif; background-color: rgb(255, 255, 255); font-size: small;"><span style="font-family: Arial,Helvetica,sans-serif; background-color: rgb(255, 255, 255); font-size: small;">My question is what string (or event) should go in this method call for the Keypress-r event?</span><br style="font-family: Arial,Helvetica,sans-serif; background-color: rgb(255, 255, 255); font-size: small;"><span style="font-family: Arial,Helvetica,sans-serif; background-color: rgb(255, 255, 255); font-size: small;">I tried what are thought were the obvious possibilities but no luck.</span><br style="font-family: Arial,Helvetica,sans-serif; background-color: rgb(255, 255, 255); font-size: small;"><br style="font-family: Arial,Helvetica,sans-serif; background-color: rgb(255, 255, 255); font-size: small;"><span style="font-family: Arial,Helvetica,sans-serif; background-color: rgb(255, 255, 255); font-size: small;">As a side note, what is the difference between RemoveObservers and RemoveObserver (without the 's')?</span><br style="font-family: Arial,Helvetica,sans-serif; background-color: rgb(255, 255, 255); font-size: small;"><span style="font-family: Arial,Helvetica,sans-serif; background-color: rgb(255, 255, 255); font-size: small;">I seem to see references to both when I search the web on this subject.</span><br style="font-family: Arial,Helvetica,sans-serif; background-color: rgb(255, 255, 255); font-size: small;"><br style="font-family: Arial,Helvetica,sans-serif; background-color: rgb(255, 255, 255); font-size: small;"><span style="font-family: Arial,Helvetica,sans-serif; background-color: rgb(255, 255, 255); font-size: small;">FYI: I am also new to VTK.</span><br style="font-family: Arial,Helvetica,sans-serif; background-color: rgb(255, 255, 255); font-size: small;"><br style="font-family: Arial,Helvetica,sans-serif; background-color: rgb(255, 255, 255); font-size: small;"><span style="font-family: Arial,Helvetica,sans-serif; background-color: rgb(255, 255, 255); font-size: small;">Thanks in advance for you help.</span><br style="font-family: Arial,Helvetica,sans-serif; background-color: rgb(255, 255, 255); font-size: small;"><br style="font-family: Arial,Helvetica,sans-serif; background-color: rgb(255, 255, 255); font-size: small;"><span style="font-family: Arial,Helvetica,sans-serif; background-color: rgb(255, 255, 255); font-size: small;">Cheers, David</span></div>



</font>
</div>


<font color="black" face="arial" size="2">
</font></font>
</div>

 <!-- end of AOLMsgPart_1_8bf4fb32-c90b-4760-a918-56c77f15b252 -->
</div>

</font></font>