Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
Executable
+67
@@ -0,0 +1,67 @@
|
||||
/**
|
||||
* @RDE_HEADER@
|
||||
* FillStyle
|
||||
* $Id$
|
||||
* $HeadURL$
|
||||
* $Author$
|
||||
*/
|
||||
|
||||
// Own
|
||||
#include "fill_style.h"
|
||||
|
||||
|
||||
// ESRI
|
||||
|
||||
|
||||
namespace SituationMap
|
||||
{
|
||||
|
||||
|
||||
FillStyle::FillStyle(const QColor &fillColor, FillPattern fillPattern)
|
||||
: m_fillColor(fillColor)
|
||||
, m_fillPattern(fillPattern)
|
||||
{
|
||||
}
|
||||
|
||||
FillStyle::FillStyle(FillPattern fillPattern)
|
||||
: m_fillPattern(fillPattern)
|
||||
{
|
||||
}
|
||||
|
||||
QColor FillStyle::fillColor() const
|
||||
{
|
||||
return m_fillColor;
|
||||
}
|
||||
|
||||
void FillStyle::setFillColor(const QColor &fillColor)
|
||||
{
|
||||
m_fillColor = fillColor;
|
||||
}
|
||||
SituationMap::FillPattern FillStyle::fillPattern() const
|
||||
{
|
||||
return m_fillPattern;
|
||||
}
|
||||
|
||||
void FillStyle::setFillPattern(const SituationMap::FillPattern &fillPattern)
|
||||
{
|
||||
m_fillPattern = fillPattern;
|
||||
}
|
||||
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// output operator:
|
||||
//-----------------------------------------------------------------------------
|
||||
std::ostream &operator<< (std::ostream &stream,
|
||||
const FillStyle &value)
|
||||
{
|
||||
QString str;
|
||||
str.append(QStringLiteral(" fillPattern='%1'").arg(static_cast<int>(value.fillPattern())));
|
||||
str.append(QStringLiteral(" fillColor='%1'").arg(value.fillColor().name(QColor::HexArgb)));
|
||||
|
||||
stream << str.toStdString();
|
||||
return stream;
|
||||
}
|
||||
|
||||
|
||||
} // namespace SituationMap
|
||||
Reference in new issue
Block a user