[vtkusers] 2D overlay on 3D visualization
Tijmen Klein
T.R.Klein at student.rug.nl
Tue Jul 5 08:51:36 EDT 2011
Thank you for your tips Imran.
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.
Tijmen
On Wed, Jun 29, 2011 at 10:27 PM, imran khan <khan.imranh at gmail.com> wrote:
> Tijmen:
>
> I was able to implement Graphics drawing routines using the new
> vtkContextScene over a 3d vtkWindow.
>
> You could use DrawEllipse or DrawPoly to draw the circle. These are through
> the vtkContext2D class.
>
> I had to download the latest code from git as this part of code seems to be
> still under development.
>
> A good place to start is to look at the example in TestChartsOn3D.
>
> Marcus has done a great job in enhancing vtk for annotations on a 2D
> Canvas.
>
> Imran
>
> Hello everyone,
>
>
> I'm working on a multitouch application for VTK. A 3D dataset is visualized
> on the screen, and the multitouch input is used for the interaction. I want
> to draw the current locations of the touches as a 2D overlay, so that the
> user(s) know which touches are recognized. What would be the best and
> easiest way to draw up to 10 points/circles in 2D on top of the 3D
> visualization?
>
>
> Cheers,
> Tijmen
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110705/1c841602/attachment.htm>
More information about the vtkusers
mailing list