<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><table width="100%" cellspacing="0" cellpadding="0" align="center"><tbody><tr><td width="100%"  height="100%" bgcolor="#ffffff" valign="top"><table  width="100%" height="100%" style="table-layout:fixed;" cellspacing="0" cellpadding="0" align="center"><tbody><tr><td width="10"> </td><td valign="top" style="overflow: hidden; text-overflow: ellipsis; white-space: nowrap;"><table width="100%" style="white-space:normal;" cellspacing="0" cellpadding="0"><tbody><tr><td height="10"> </td></tr><tr><td><font face="Verdana,Arial,sans-serif" size="2" color="#7b0099" style="font-family:Verdana,Arial,sans-serif;font-size:13px;color:#7b0099;"><div style="text-align:undefined;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div style="font-family: times new roman,new
 york,times,serif; font-size: 12pt;">Hi Everyone,<br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div><br>I am new to vtk. Currently working on a study assignment which useing vtk. Here is my problem: I am trying to implement my own interactor style, and  let the vtkRenderWindowInteractor to use the new derived style class, but got some error when compiling the new style, below is my code( in C#)<br><br>using System;<br>using System.Collections.Generic;<br>using System.Text;<br>using vtk;<br>namespace Assignment2<br>{<br>    class vtkInteractorStyleMyCamera:vtkInteractorStyle<br>    {<br>        public override void OnChar()<br>        {<br>            switch
 (this.GetInteractor().GetKeyCode().ToString())<br>            {<br>                case "w": break;<br>                case "s": break;<br>             }<br>        }<br>     }<br>}<br><br>the erro message is:<br><br>Error 2 'Assignment2.vtkInteractorStyleMyCamera.OnChar()': cannot override inherited member 'vtk.vtkInteractorStyle.OnChar()' because it is not marked virtual, abstract, or override D:\Assignment2\vtkInteractorStyleMyCamera.cs 10 30 Assignment2<br><br>Seems overriding methods from vtkInteractorStyle is not allowed in its subclasses, but vtk help document says we can do so. And if  I only create an empty(no members)
 interactorstyle subclass, and let my program use it, it certainly does not respone to any mouse motions, but the key 'w' and 's' are still functional.. seems key 's' and 'w' are handled somewhere else rathan than in the style class. Did I miss anything in the code segment? how can I solve it? could anyone explain how vtk handles window events?<br><br> By the way, is there anyway we can stop vtk interpolating window events so that standard C#..net window event handling
 will be back on track? <br><br>Thank you, appreciate your time.<br><br>Jay<br><br></div></div></div></div></div></font></td></tr><tr><td height="10"> </td></tr></tbody></table></td><td width="10"> </td></tr></tbody></table></td></tr><tr><td height="70" bgcolor="#ffffff" background="cid:1249087650306@dclient.mail.yahoo.com" align="start"> </td></tr></tbody></table></div><br>


      Need mail bonding? Bring all your contacts to Yahoo!Xtra with <a href=http://au.rd.yahoo.com/nz/mail/tagline/2009/trueswitch/*http://help.yahoo.com/l/nz/yahooxtra/mail/yahoomail/manage/manage-66.html>TrueSwitch</a></body></html>