Files
qt5-legatus-legacy/Lts/Viewer/SituationMap/MapObjects/geometry.h
T
2026-08-13 18:33:10 +02:00

47 lines
978 B
C++
Executable File

/**
* @RDE_HEADER@
* Class Geometry
* $Id$
* $HeadURL$
* $Author$
*/
#pragma once
// Own
#include "situation_map_export.h"
// Qt
#include <QPointF>
#include <QList>
//----------------------------------------------------------------------------
namespace SituationMap
{
class SITUATIONMAP_EXPORT Geometry final
{
public:
Geometry() = default;
~Geometry() = default;
static QList<QPointF> createCircle(const QPointF &center,
qreal radius,
int steps = 72); // 72 -> 5° Schritte
static QList<QPointF> createArcSegment(const QPointF &center, qreal radius,
double startAngle_degree,
double angleOffset_clockwise_degree,
int stepsPer360 = 72); // 72 -> 5° Schritte
static const int minNumberOfVerticesPerCircle = 10;
};
} // namespace SituationMap