<br>In the <a href="http://www.cmake.org/Wiki/Handle_keypress_events" target="_blank">http://www.cmake.org/Wiki/Handle_keypress_events</a> example, when I press the following keys, the following actions occur:<br><br>q or e : exit<br>
r-> zoom out<br>w-> display wire frame instead of solid<br>p-> place red colored axes around object<br><br>That interferes with my choice for r and p for user keys. I could change those keys of course..<br>Can anyone tell me where these built-in interaction keys are documented? I was expecting to find a key that makes the wire frame<br>
get back to normal or the colored axes to disappear, but they don't...<br>How can they be bypassed?<br><br>Michael<br><br><br><div class="gmail_quote">On Thu, Jan 14, 2010 at 11:50 AM, michiel mentink <span dir="ltr"><<a href="mailto:michael.mentink@st-hughs.ox.ac.uk">michael.mentink@st-hughs.ox.ac.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Okay, found something about keypresses in VTK<br><br><a href="http://www.cmake.org/Wiki/Handle_keypress_events" target="_blank">http://www.cmake.org/Wiki/Handle_keypress_events</a><br>
<br>Michael<br><br><div class="gmail_quote"><div class="im">On Thu, Jan 14, 2010 at 11:39 AM, michiel mentink <span dir="ltr"><<a href="mailto:michael.mentink@st-hughs.ox.ac.uk" target="_blank">michael.mentink@st-hughs.ox.ac.uk</a>></span> wrote:<br>
</div><div><div></div><div class="h5"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>I'd like to create an interactive seed placing window in VTK for future use with an ITK segmentation algorithm.<br>
Preferably, I'd like to stay away from Tcl or TK / FLTK, unless it is really advisable to do so. Just plain C++ in VTK.<br>
<br>This is what I'd like to do:<br><br>- open a dicom series and display a single slice in a renderwindow.<br>- With mousewheel action (up/down) the user can zoom in on a specific area of an image<br>- with up/down keys the next/previous dicom slice from the series will be shown<br>
- with the 'p' key of the keyboard, a seedpoint will be displayed as a colored pixel and the seedpoint location will be saved in a seed point list.<br>- with the 'r' key, the seed point will be removed from the image and the seed point will be deleted from the seed point list.<br>
<br>In the class references I've found that the vtkrenderwindowinteractor class passes user interactions to the vtkinteractor style class.<br><br>Promising functions in vtkrenderwindowinteractor:<br>-createdefaultpicker<br>
-getmouseposition<br>-render<br>-setpicker<br>-getkeycode<br><br>promising functions in vtkinteractor style:<br>-onchar<br>-onkeyup<br>-onkeydown<br>-onkeypress<br>-onkeyrelease<br>-setpickcolor<br>-setmousewheel motionfactor.<br>
<br>Does anybody have an example I could look at?<br>What is the 'picker' function actually? It seems to me as returning a pixel coordinate.<br>Any tips for how to set this up?<br><br>I have to admit that I'm a newbie to VTK, so this project is quite ambitious for me.<br>
<br>kind regards, Michael<br><br>
</blockquote></div></div></div><br>
</blockquote></div><br>