

In Graphics View design, QGraphicsScene is the entity that manages graphics items (QGraphicsItem) that need to be drawn on the graphics view (widget).

ngraphicswebview contains the mediator pointer.

It mediates between the Controller and the three components of Drawer. In order for the Controller to use the three modules in Drawer, a mediator is introduced. Rolling, pitching, and heading are calculated as per changes in these three parameters.įigure 1: The three parameters of positioningįurther, Drawer can be divided into three different parts: The air craft follows each line and shifts its position accordingly. The conf file is a multiple line entry, with each line formatted as, , and. Drawer is responsible for drawing the Google map and OpenGL primitives. Solution 4.1 Designįlight- and Google map-related information has been provided through a conf file, where there is an entity called Controller that reads the file and uses another entity, Drawer, to draw it on a window. Qt(5.2), an operating system independent windowing system, has been used. Google Map and OpenGL both need a windowing system. Sometimes, air craft pitching or rolling movements also need to be drawn. The exact position of the air craft with respect to the map latitude, longitude, and its height from the ground are required to be drawn.

Here, the map type can be many: Road Map Satellite map, Terrain map, Hybrid map, and so forth. The air craft has to be independent of the map type. In a flight simulator or radar flight detection kind of scenario, a moving air craft is required to be drawn on a map. This concept opens the door to powerful and versatile OpenGL drawings on ubiquitous Google maps. OpenGL 3D drawing on Google Maps is a concept of fetching a Google map on a separate window application (rather than on a browser) and extend the functionality of the window in such a way that it would provide feasibility to get 3D drawings possible on it.
