[Qt-interest] How to draw a 2-D matrix as a 3-D surface

Enrico Ros enrico.qt at email.it
Mon Apr 20 10:19:43 CEST 2009


You can look around for libraries supporting the plotting of 2D data on a 3D-
like graph. QwtPlot3D comes to mind (http://qwtplot3d.sourceforge.net/) but it 
uses OpenGL too.

If you don't want to use OpenGL you can do it by hand but you have to do a 
small "3D engine like" code. You could use QGraphicsView, use an isometric o 
perspective projection to map the mesh squares (3 coords per 4 vertices) to 
polygons (4 sided), z-sort them and create QGraphicsItems...

..however this is only if you want to get rid of OpenGL and don't depend on 
any external library.

Enrico Ros

 
 
 --
 Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP autenticato? GRATIS solo con Email.it http://www.email.it/f
 
 Sponsor:
 Per il tuo cellulare c'è m.email, hai tutto il web e la posta elettronica nella tua mano. Provalo gratuitamente
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=8922&d=20-4



More information about the Qt-interest-old mailing list