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

Special GraphicsView that allows the User to digitize polygons. More...

#include <ScmGeoLocGraphicsView.hpp>

Public Slots

void updateTime (int year)
 Update the current time and visibility of all polygons. More...
 
void selectPolygon (int id)
 Selects the polygon with the given identifier. More...
 

Signals

void timeValueChanged (int year)
 
void showAddPolyDialog ()
 
void addPolygonToCulture (scm::CulturePolygon poly)
 

Public Member Functions

 ScmGeoLocGraphicsView (QWidget *parent=nullptr)
 
void addCurrentPoly (int beginTime, int endTime)
 
void removePolygon (int id)
 
void reset ()
 

Protected Member Functions

void wheelEvent (QWheelEvent *event) override
 
void showEvent (QShowEvent *event) override
 
void mouseMoveEvent (QMouseEvent *event) override
 
void mousePressEvent (QMouseEvent *event) override
 
void mouseReleaseEvent (QMouseEvent *event) override
 
void mouseDoubleClickEvent (QMouseEvent *event) override
 
void keyPressEvent (QKeyEvent *event) override
 

Detailed Description

Special GraphicsView that allows the User to digitize polygons.

Member Function Documentation

◆ selectPolygon

void ScmGeoLocGraphicsView::selectPolygon ( int  id)
slot

Selects the polygon with the given identifier.

If no such identifier is present, nothing happens.

Parameters
Theidentifier of the polygon to be selected.

◆ updateTime

void ScmGeoLocGraphicsView::updateTime ( int  year)
slot

Update the current time and visibility of all polygons.

Parameters
Theyear to which the current time is set.