Hello, if your objective is to visualize a moving point on a map in real-time rather than *editing* a map I would recommend using sumo-gui with the TraCI API to move a POI around. No need to mess around with FOX in that case. If you need something different, please explain. regards, Jakob
2017-01-23 15:38 GMT+01:00 Lennart Sieben <[email protected]>: > > 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 po > int > 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. > Or > you have an idea how to manipulate the netedit code to get to view some > moving dot while the app is open... > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > _______________________________________________ > sumo-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/sumo-user > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ sumo-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-user
