Special GraphicsView that shows a world map and several (culture) polygons.
More...
#include <SkyCultureMapGraphicsView.hpp>
|
| 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.
|
| |
|
|
void | cultureSelected (const QString &skyCultureId) |
| |
|
void | timeValueChanged (int year) |
| |
|
|
| SkyCultureMapGraphicsView (QWidget *parent=nullptr) |
| |
|
|
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) |
| |
Special GraphicsView that shows a world map and several (culture) polygons.
◆ rotateMap
| void SkyCultureMapGraphicsView::rotateMap |
( |
bool |
applyRotation | ) |
|
|
slot |
Rotate the map by 180° (if it has not already been rotated).
- Parameters
-
| Flag | that 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
-
| skyCultureName | Name of the skyCulture. |
| beginTime | Start time of the skyCulture. |
◆ updateTime
| void SkyCultureMapGraphicsView::updateTime |
( |
int |
year | ) |
|
|
slot |
Update the current time and visibility of all polygons.
- Parameters
-
| The | year to which the current time is set. |