27 #include "../../../common/StringUtils.h" 28 #include "../../../maptools/Utils.h" 29 #include "../../../se/Mark.h" 43 m_brush.setStyle(Qt::SolidPattern);
56 std::map<std::string, MarkType>::iterator it =
sm_markMap.find(lname);
64 QImage* img =
new QImage(static_cast<int>(size), static_cast<int>(size), QImage::Format_ARGB32_Premultiplied);
65 img->fill(Qt::transparent);
133 std::map<std::string, MarkType>::const_iterator it;
135 marks.push_back(it->first);
158 QTransform transform;
261 m_painter.setRenderHints(QPainter::Antialiasing);
278 double s = img->width() -
m_pen.width() - 1;
279 double t = img->width() * 0.5;
281 QTransform transform;
282 QPainterPath transformedPath = transform.translate(t, t).scale(s, s).map(path);
A Mark specifies a geometric shape and applies coloring to it.
std::string Convert2LCase(const std::string &value)
It converts a string to lower case.
A concrete renderer based on Qt4 for conversion of Symbology Enconding Mark elements to an image patt...
const std::string * getWellKnownName() const
const Stroke * getStroke() const
A helper class for 32-bit RGBA (Red-Green-Blue-Alpha channel) color.
#define TE_SE_DEFAULT_FILL_BASIC_COLOR
It specifies the default color used by basic fill (solid colors).
#define TE_SE_DEFAULT_STROKE_BASIC_COLOR
It specifies the default color used by stroke basic (solid colors).
const Fill * getFill() const