Stellarium  HEAD
Public Slots | Signals | Public Member Functions | Protected Member Functions
SkyCultureMapGraphicsView Class Reference

Special GraphicsView that shows a world map and several (culture) polygons. More...

#include <SkyCultureMapGraphicsView.hpp>

Public Slots

void selectCulture (const QString &skyCultureName, int beginTime)
 Selects a culture on the map and sets the current time if necessary. More...
 
void updateTime (int year)
 Update the current time and visibility of all polygons. More...
 
void rotateMap (bool applyRotation)
 Rotate the map by 180° (if it has not already been rotated). More...
 
void reloadMap ()
 Reloads the view and its content.
 
void translatePolygons ()
 Retranslates all present polygons.
 

Signals

void cultureSelected (const QString &skyCultureId)
 
void timeValueChanged (int year)
 

Public Member Functions

 SkyCultureMapGraphicsView (QWidget *parent=nullptr)
 

Protected Member Functions

void wheelEvent (QWheelEvent *e) override
 
void mouseMoveEvent (QMouseEvent *e) override
 
void mousePressEvent (QMouseEvent *e) override
 
void mouseReleaseEvent (QMouseEvent *e) override
 
void showEvent (QShowEvent *e) override
 
void scaleView (double scaleFactor)
 

Detailed Description

Special GraphicsView that shows a world map and several (culture) polygons.

Member Function Documentation

◆ rotateMap

void SkyCultureMapGraphicsView::rotateMap ( bool  applyRotation)
slot

Rotate the map by 180° (if it has not already been rotated).

Parameters
Flagthat indicated wether the rotation should be applied or removed.

◆ selectCulture

void SkyCultureMapGraphicsView::selectCulture ( const QString &  skyCultureName,
int  beginTime 
)
slot

Selects a culture on the map and sets the current time if necessary.

Parameters
skyCultureNameName of the skyCulture.
beginTimeStart time of the skyCulture.

◆ updateTime

void SkyCultureMapGraphicsView::updateTime ( int  year)
slot

Update the current time and visibility of all polygons.

Parameters
Theyear to which the current time is set.