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

+70
View File
@@ -0,0 +1,70 @@
/**
* @RDE_HEADER@
* LineStyle
* $Id$
* $HeadURL$
* $Author$
*/
// Own
#include "line_style.h"
// ESRI
namespace SituationMap
{
LineStyle::LineStyle(const QColor &lineColor, int lineWidth, LinePattern linePattern)
: m_lineColor(lineColor)
, m_lineWidth(lineWidth)
, m_linePattern(linePattern)
{
}
QColor LineStyle::lineColor() const
{
return m_lineColor;
}
void LineStyle::setLineColor(const QColor &lineColor)
{
m_lineColor = lineColor;
}
int LineStyle::lineWidth() const
{
return m_lineWidth;
}
void LineStyle::setLineWidth(int lineWidth)
{
m_lineWidth = lineWidth;
}
SituationMap::LinePattern LineStyle::linePattern() const
{
return m_linePattern;
}
void LineStyle::setLinePattern(const SituationMap::LinePattern &linePattern)
{
m_linePattern = linePattern;
}
//-----------------------------------------------------------------------------
// output operator:
//-----------------------------------------------------------------------------
std::ostream &operator<< (std::ostream &stream,
const LineStyle &value)
{
QString str;
str.append(QStringLiteral(" lineColor='%1'").arg(value.lineColor().name(QColor::HexArgb)));
stream << str.toStdString();
return stream;
}
} // namespace SituationMap