Hi,<br><br>When you say GUI, do you mean a GUI framework like GTK, wx, MFC, fltk, qt, or you just want to display an image to draw in using whatever VTK provides? <br><br>If the former, then I would pick which toolkit you want to go with (depends on what you're trying to accomplish) then you can figure out how to incorporate VTK into it).<br>
<br>If the latter, then you can popup a viewport window and just start drawing items on it right away (but you won't have buttons and all that GUI stuff you're probably expecting).<br><br>Inside the VTK distribution, there should be a few example projects which show you how to get a VTK context rendered inside a 'window', starting with a simple cone. There should be an example of bringing that into an MFC project (for windows) so you get the feel of a native windows application.<br>
<br>I also put this together some time ago which shows how to popup a VTK render window then draw a tracer line on top of the dataset: You can probably extend that to start drawing simple lines and circles on it too:<br>
<br> <a href="http://devsample.org/index.php?option=com_content&task=view&id=50&Itemid=27">http://devsample.org/index.php?option=com_content&task=view&id=50&Itemid=27</a><br><br>Mark<br><br><br>
<div class="gmail_quote">On Tue, Nov 18, 2008 at 4:00 AM, Julio Pastrana <span dir="ltr"><<a href="mailto:pastrana@bgt.uni-hannover.de">pastrana@bgt.uni-hannover.de</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;">
<br>
Hi VTK users,<br>
Before anything else, I want to tell that this<br>
is a totally newbie question .. sorry about it.<br>
<br>
I am trying to create a GUI where an image will be loaded<br>
and after that I want to draw some primitives on top of<br>
it (points, lines, circles, ellipses).<br>
<br>
what is the best way to do it?<br>
<br>
Is there an example already in the Docs (or<br>
several examples that could help me out)?<br>
<br>
Could you please point me in the right direction?<br>
<br>
Thank you!!<br>
<br>
Julio<br>
<br>
<br>
_______________________________________________<br>
This is the private VTK discussion list.<br>
Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br>