47 lines
978 B
C++
Executable File
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 ¢er,
|
|
qreal radius,
|
|
int steps = 72); // 72 -> 5° Schritte
|
|
|
|
static QList<QPointF> createArcSegment(const QPointF ¢er, qreal radius,
|
|
double startAngle_degree,
|
|
double angleOffset_clockwise_degree,
|
|
int stepsPer360 = 72); // 72 -> 5° Schritte
|
|
|
|
static const int minNumberOfVerticesPerCircle = 10;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace SituationMap
|
|
|