Stellarium  26.1
Public Member Functions | Data Fields
scm::CulturePolygon Struct Reference

A settlement area describing polygon with a start and end time. More...

#include <CulturePolygon.hpp>

Public Member Functions

 CulturePolygon (int id, int beginTime, int endTime, QPolygonF polygon)
 
QJsonObject toGeoJson () const
 Converts the CulturePolygon to a (Geo)JSON object. More...
 

Data Fields

int id = 0
 The identifier of the polygon.
 
int beginTime = 0
 The start time of the polygon.
 
int endTime = 0
 The end time of the polygon.
 
QPolygonF polygon
 The settlement area of the culture.
 

Detailed Description

A settlement area describing polygon with a start and end time.

Member Function Documentation

◆ toGeoJson()

QJsonObject scm::CulturePolygon::toGeoJson ( ) const
inline

Converts the CulturePolygon to a (Geo)JSON object.

Returns
QJsonObejct The (Geo)JSON representation of the culture polygon.