Initial commit

This commit is contained in:
torsten committed 2026-08-13 18:33:10 +02:00
commit b7d90b9afe
16245 files changed
+3396666

No files matched your search

@@ -0,0 +1,96 @@
/**
* @RDE_HEADER@
* EllipseParameters
* $Id$
* $HeadURL$
* $Author$
*/
// Own
#include "ellipse_parameters.h"
// ESRI
// Qt
#include <QString>
namespace SituationMap
{
float EllipseParameters::lengthX() const
{
return m_lengthX;
}
void EllipseParameters::setLengthX(float lengthX)
{
m_lengthX = lengthX;
}
float EllipseParameters::lengthY() const
{
return m_lengthY;
}
void EllipseParameters::setLengthY(float lengthY)
{
m_lengthY = lengthY;
}
float EllipseParameters::directionDegree() const
{
return m_directionDegree;
}
void EllipseParameters::setDirectionDegree(float directionDegree)
{
m_directionDegree = directionDegree;
}
int EllipseParameters::maxSegmentLength() const
{
return m_maxSegmentLength;
}
void EllipseParameters::setMaxSegmentLength(int value)
{
m_maxSegmentLength = value;
}
int EllipseParameters::maxPointCount() const
{
return m_maxPointCount;
}
void EllipseParameters::setMaxPointCount(int maxPointCount)
{
m_maxPointCount = maxPointCount;
}
bool EllipseParameters::isValid() const
{
return ((m_lengthX > 0) && (m_lengthY > 0)) ;
}
//-----------------------------------------------------------------------------
// output operator:
//-----------------------------------------------------------------------------
std::ostream &operator<< (std::ostream &stream,
const EllipseParameters &value)
{
QString str;
str.append(QStringLiteral(" lengthX=%1").arg(value.lengthX()));
str.append(QStringLiteral(" lengthY=%1").arg(value.lengthY()));
str.append(QStringLiteral(" directionDegree=%1").arg(value.directionDegree()));
str.append(QStringLiteral(" maxSegmentLength=%1").arg(value.maxSegmentLength()));
stream << str.toStdString();
return stream;
}
} // namespace SituationMap