Stellarium  HEAD
Signals | Public Member Functions | Protected Member Functions
MapWidget Class Reference

Special widget that shows a world map. More...

#include <MapWidget.hpp>

Signals

void positionChanged (double longitude, double latitude, const QColor &color)
 Signal emitted when we click on the map. It also delivers the color value at the clicked point.
 

Public Member Functions

 MapWidget (QWidget *parent=nullptr)
 
void setMarkerPos (double longitude, double latitude)
 Set the current marker position. More...
 
void setMarkerVisible (bool visible)
 allow hiding the location arrow (if sitting on an observer)
 
void setMap (const QPixmap &map)
 

Protected Member Functions

void mousePressEvent (QMouseEvent *event) override
 
void paintEvent (QPaintEvent *event) override
 

Detailed Description

Special widget that shows a world map.

Member Function Documentation

◆ setMarkerPos()

void MapWidget::setMarkerPos ( double  longitude,
double  latitude 
)

Set the current marker position.

Parameters
longitudelongitude in degree in range [-180;180[
latitudelatitude in degree in range [-90;90]