PDA

View Full Version : best practice to build a 2D vectorial map viewer with custom objects above.



corrado1972
27th August 2010, 09:05
Hello you all,
I'm delphi developer that decided to switching to QT. I'm using QT4.6.

I must create a customer application that load a 2D vectorial map and into the map shows some buildings with relevant data for the customers. This app doesnt requires 3D features.

I'm starting reading the QT documentation, in particular The Graphics View Framework (http://doc.trolltech.com/4.6/graphicsview.html).

I'm asking you which is the best practice to develop an application like that i described: I'm thinking that I have to load svg map into a scene, then I have to design customer buildings as widgets objects and put them into the scene at specific coordinates.
Is it the right way?

Please suggest me the right way to do this or, if you know any opensource project that do this job, give me the link so i can study source code.

thanks

aamer4yu
27th August 2010, 10:28
I guess you need openGL for that..
Also have a look at OpenSceneGraph (http://www.openscenegraph.org/projects/osg). It might be of some use to you :)

corrado1972
27th August 2010, 10:39
Many thanks, I'll take a look to the framework.
I forgot to specify that 3D is not a project requirement, I just fixed it in the main topic.
Would you like to suggest me a best practice to do this kind of application ?
Bye

daemonna
29th August 2010, 14:33
you should look at http://merkaartor.be/ which is QT app for openstreetmap.org... everything is open-source, so you dont have re-invent a wheel :)

corrado1972
30th August 2010, 07:28
thankyou for the suggestion! it seems to fit my requirements :D