<div dir="ltr">

<span style="font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.44px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><font color="#000000">Hi!</font></span><div style="font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.44px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><span><font color="#000000">I'm pretty much beginner of vtk and its application.</font></span></div><div style="font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.44px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><font color="#000000"><br></font></div><div style="font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.44px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><span><font color="#000000">I applied vtkContourWidget on renderWindow and hope to add a<span> </span><span class="m_-8713043977087791563gmail-bold m_-8713043977087791563gmail-highlight m_-8713043977087791563gmail-search-highlight" style="font-weight:bold;background:rgb(255,255,153)">new</span><span> </span><span class="m_-8713043977087791563gmail-bold m_-8713043977087791563gmail-highlight m_-8713043977087791563gmail-search-highlight" style="font-weight:bold;background:rgb(255,255,153)">keyPressEvent</span><span> </span>on it.</font></span></div><div style="font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.44px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><span><font color="#000000">So I am now trying to change the vtkContourWidget.cxx file directly and add</font></span></div><div style="font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.44px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><font color="#000000"><br></font></div><div style="font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.44px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><div><font color="#000000"><br></font></div><div><b><span><font color="#000000">this->CallbackMapper-><wbr>SetCallbackMethod(vtkCommand::<span class="m_-8713043977087791563gmail-bold m_-8713043977087791563gmail-highlight m_-8713043977087791563gmail-search-highlight" style="font-weight:bold;background:rgb(255,255,153)"><wbr>KeyPressEvent</span>,</font></span></b></div><div><b><font color="#000000"><span style="white-space:pre-wrap"><span>                                                                            </span></span><span>  vtkEvent::NoModifier, 13, 1, "Return",</span></font></b></div><div><b><font color="#000000"><span style="white-space:pre-wrap"><span>                                                                              </span></span><span>  vtkWidgetEvent::Reset,</span></font></b></div><div><b><font color="#000000"><span style="white-space:pre-wrap"><span>                                                                                </span></span><span>  this, vtkContourWidget::ResetAction)<wbr>;</span></font></b></div></div><div style="font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.44px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><font color="#000000"><br></font></div><div style="font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.44px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><span><font color="#000000">this for<span> </span><span class="m_-8713043977087791563gmail-bold m_-8713043977087791563gmail-highlight m_-8713043977087791563gmail-search-highlight" style="font-weight:bold;background:rgb(255,255,153)">new</span><span> </span>Action when I pressed Return(I guess it is "Enter"), which acts ResetAction when Shift+Del is pressed like behind</font></span></div><div style="font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.44px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><div><font color="#000000"><br></font></div><div><b><span><font color="#000000">this->CallbackMapper-><wbr>SetCallbackMethod(vtkCommand::<span class="m_-8713043977087791563gmail-bold m_-8713043977087791563gmail-highlight m_-8713043977087791563gmail-search-highlight" style="font-weight:bold;background:rgb(255,255,153)"><wbr>KeyPressEvent</span>,</font></span></b></div><div><b><span><font color="#000000">  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  vtkEvent::ShiftModifier, 127, 1, "Delete",</font></span></b></div><div><b><span><font color="#000000">  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  vtkWidgetEvent::Reset,</font></span></b></div><div><b><span><font color="#000000">  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  this, vtkContourWidget::ResetAction)<wbr>;</font></span></b></div></div><div style="font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.44px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><font color="#000000"><br></font></div><div style="font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.44px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><span><font color="#000000">However, "Return" doesn't work and I couldn't figure it out.</font></span></div><div style="font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.44px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><span><font color="#000000">I am pretty much sure that I am not supposed to add the<span> </span><span class="m_-8713043977087791563gmail-bold m_-8713043977087791563gmail-highlight m_-8713043977087791563gmail-search-highlight" style="font-weight:bold;background:rgb(255,255,153)">keyPressEvent</span><span> </span>in this way,</font></span></div><div style="font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.44px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><span><font color="#000000">but I don't know what to do.</font></span></div><div style="font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.44px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><font color="#000000"><br></font></div><div style="font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.44px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><span><font color="#000000">How can I add a<span> </span><span class="m_-8713043977087791563gmail-bold m_-8713043977087791563gmail-highlight m_-8713043977087791563gmail-search-highlight" style="font-weight:bold;background:rgb(255,255,153)">new</span><span> </span><span class="m_-8713043977087791563gmail-bold m_-8713043977087791563gmail-highlight m_-8713043977087791563gmail-search-highlight" style="font-weight:bold;background:rgb(255,255,153)">keyPressEvent</span><span> </span>for a<span> </span><span class="m_-8713043977087791563gmail-bold m_-8713043977087791563gmail-highlight m_-8713043977087791563gmail-search-highlight" style="font-weight:bold;background:rgb(255,255,153)">new</span><span> </span><span class="m_-8713043977087791563gmail-bold m_-8713043977087791563gmail-highlight m_-8713043977087791563gmail-search-highlight" style="font-weight:bold;background:rgb(255,255,153)">key</span><span> </span>on vtkWidget?</font></span></div>

<br clear="all"><div><br></div>-- <br><div class="m_-8713043977087791563gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div style="font-size:12.8px"><font color="#000000">------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>--------------------</font></div><div style="font-size:12.8px"><font color="#000000"><b>Minsuk Park</b></font></div><div style="font-size:12.8px"><font color="#000000">Mobile: +82-10-7329-9912</font></div><div style="font-size:12.8px"><font color="#000000">Email: <a href="mailto:ashtonpark7@gmail.com" target="_blank">ashtonpark7@gmail.com</a></font></div><div style="font-size:12.8px"><span style="color:rgb(0,0,0)">------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>--------------------</span></div></div></div></div></div>
</div>