Menu

#6 How to add a new OpenGL object in to already loaded map(SUMO,netdit)

open
nobody
5
2017-01-20
2017-01-20
No

Hello, I don't know if you can help, but I tried so many things and just don't know how to continue.
I am currently trying to work with the opensource code from SUMO,netedit. I try to change code by myself to create a map which always shows me my own gps position. And I have problems with integrating a new FXObject into the map, the object should be a OpenGL one. I am getting data from a gps device, I am storing this data into an array. Now I want to include it in a class in which the map is created and will be displayed, so after that I can always see the updated points of the array in the map. The problem I have now is I am not able to correctly implement a new OpenGL point. It just won't show on the map.(The map is a FXApp application)
This is the code for the OpenGL point:

    glPushMatrix();
    glTranslated(90, 40, 0); //this is the cartesian point coordinate of the point
    glColor3f(0.0f, 0.0f, 1.0f); //blue color
    GLHelper::drawFilledCircle(1.6, 5); //- before 32

The class where I want to implement it somehow won't get access to the previously created map-matrix.
Do I have to use commands like:

FXIMPLEMENT() //or
FXDEFMAP()

Does someone know what I mean by this or has any experience with that kind of stuff?...
If something is unclear ask me, I understand that it is maybe unclear.

Discussion


Log in to post a comment.