<br>Ok found another example to zoom in/out with mousewheel<br><br><a href="http://www.cmake.org/Wiki/Plane_Picking">http://www.cmake.org/Wiki/Plane_Picking</a><br><br>Now I have to display a dicom image, probably with <a href="http://www.cmake.org/Wiki/VTK_Examples_Texture_map_an_ImageData">http://www.cmake.org/Wiki/VTK_Examples_Texture_map_an_ImageData</a><br>

and set something up so it displays another image from the dicom series..<br><br><br><br><br><div class="gmail_quote">On Thu, Jan 14, 2010 at 12:01 PM, michiel mentink <span dir="ltr">&lt;<a href="mailto:michael.mentink@st-hughs.ox.ac.uk">michael.mentink@st-hughs.ox.ac.uk</a>&gt;</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;"><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-&gt; zoom out<br>w-&gt; display wire frame instead of solid<br>p-&gt; 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&#39;t...<br>How can they be bypassed?<br><br>Michael<div><div></div><div class="h5"><br><br><br><div class="gmail_quote">On Thu, Jan 14, 2010 at 11:50 AM, michiel mentink <span dir="ltr">&lt;<a href="mailto:michael.mentink@st-hughs.ox.ac.uk" target="_blank">michael.mentink@st-hughs.ox.ac.uk</a>&gt;</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>On Thu, Jan 14, 2010 at 11:39 AM, michiel mentink <span dir="ltr">&lt;<a href="mailto:michael.mentink@st-hughs.ox.ac.uk" target="_blank">michael.mentink@st-hughs.ox.ac.uk</a>&gt;</span> wrote:<br>



</div><div><div></div><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>I&#39;d like to create an interactive seed placing window in VTK for future use with an ITK segmentation algorithm.<br>



Preferably, I&#39;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&#39;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 &#39;p&#39; 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 &#39;r&#39; 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&#39;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 &#39;picker&#39; 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&#39;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>
</div></div></blockquote></div><br>