views:

227

answers:

4

Hi, I have a problem about a simple mpi program.This program have some 3D points and these points are moving during the program. I created an simple code by implemented c++ and then I tried to add an simple gui. I used gnuplot library and I have a problem. When I call the gui function the gui is created and it is disappeared at the same time. I mean, point object have x,y,z coordinate and I have an array that includes point objects. I want to create them as gui. Can you help me about this problem?

Thanks for any help..

A: 

Hi,

what about Qt? You could use the Qt Graphics View Framework to simulate the 3D-environment - it even supports coordinate transformation (ok, it was originally designed for 2d scope). It supports OpenGL and maybe you are able to simulate the 3D points by drawing dots and setting their positions using simple cosinus and tangens mathematics.

Don't get afraid of the many functions and classes Qt offers - it's very easy and fast to learn - just check out the simple tutorials and after that you right can start your gui!

...and if you are used to Qt, you'll never want to miss it :)

greets, Chris

3DH
A: 

Thank you for your offers Chris.. However I have worry about this solution. I guess, the program that is developed with QT , needs some special parametres when it compiles. I developed my program by using mpi library and I use mpich2 as compiler so I can't use the QT parametres when the program compile. What is your suggestion about this problem?

Cheers, Emel

A: 

The point is first thing - the GUI is opening only in the start process node right ? Please can you supply more information about the problem itself ?

Or thr problem is related to the GUI only, plotting the data on screen ?

lvcargnini
A: 

Could it be that the plot is up correctly but that then your program ends? Ie everything's correct, the window goes up, but the next thing that happens is that the program is done, and the window gets destroyed? Try putting in a couple lines that wait for a keypress right after you throw up the window. Then, the window will stay until you press a key (and then the program will end).

JDonner