/** * @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