[Marble-devel] Questions about: (current displayed map) & (access to contextmenue) & (mouseevents on selfdrawn rectangles)

Tom Grope tom.grope at st.ovgu.de
Mon Sep 12 22:41:02 UTC 2011


Hey there,

i use marble  (i'm impressed!!) as widget in my own  
visualization-project and got some problems and need held and good  
advice:

1) I need to access the borders of the current displayed map or the  
boundingbox in GeoCoordinates (lat/lon).
I found Marble::ViewportParams::viewLatLonAltBox() but i cant access  
it from the Widget? why? o_O (i would use  
ui->MarbleWidget->viewport()->cantaccess())
MarbleWidget->visibleRegion() is a QWidget-function so not what i am  
looking for.
There are also MarbleWidget::mapRegion() and  
MarbleWidget::activeRegion() but they also return an QRegion with no  
latitude or longitude coordinates which i need.
So where can i find the borders of an actual displayed map after  
zooming, panning,... the map? Or where i am wrong?

2) I would like to write my own contextmenu, but cant figure out how  
to deactivate or overwrite the given contectmenu of marble. How  
to...?! :-)

3) and last question: My app paints some Ellipses and Rectangles  
(suing the GeoPainter) onto the map and my question is: is there a  
customEventlistener/... or something else that i can use? and is it  
possible to return the position (lat/lon) of an hovered/clicked object  
(not the mouseposition)?

Lots of questions, but i am thankful for any advice! :-)

Tom



More information about the Marble-devel mailing list