Thank you for your tips Imran.<br><br>I've been trying various approaches now, and currently I'm using a vtkTexture that I apply on a vtkPlaneSource. The vtkTexture is connected to a vtkImageCanvasSource2D, that I use for the drawing. I use a vtkPolyDataMapper2D to render the plane as a 2D source.<br>
<br>Tijmen<br><br><div class="gmail_quote">On Wed, Jun 29, 2011 at 10:27 PM, imran khan <span dir="ltr"><<a href="mailto:khan.imranh@gmail.com">khan.imranh@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div>Tijmen:<br></div><div><br></div><div>I was able to implement Graphics drawing routines using the new vtkContextScene over a 3d vtkWindow.</div><div><br></div><div>You could use DrawEllipse or DrawPoly to draw the circle. These are through the vtkContext2D class.</div>
<div><br></div><div>I had to download the latest code from git as this part of code seems to be still under development.</div><div><br></div><div>A good place to start is to look at the example in TestChartsOn3D.</div><div>
<br></div><div>Marcus has done a great job in enhancing vtk for annotations on a 2D Canvas.</div><div><br></div><div>Imran</div><div><br></div>Hello everyone,<br><br><br>I'm working on a multitouch application for VTK. A 3D dataset is visualized<br>
on the screen, and the multitouch input is used for the interaction. I want<br>to draw the current locations of the touches as a 2D overlay, so that the<br>user(s) know which touches are recognized. What would be the best and<br>
easiest way to draw up to 10 points/circles in 2D on top of the 3D<br>visualization?<br><br><br>Cheers,<br>Tijmen<br>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<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>
<br></blockquote></div><br>