26 #ifndef __TERRALIB_QT_WIDGETS_SE_INTERNAL_GLYPHMARKRENDERER_H
27 #define __TERRALIB_QT_WIDGETS_SE_INTERNAL_GLYPHMARKRENDERER_H
30 #include "../../../maptools/AbstractMarkRenderer.h"
31 #include "../Config.h"
34 #include <QtGui/QPainter>
68 void getSupportedMarks(std::vector<std::string>& marks)
const;
80 static QString
encode(
const QString& font,
const int& charCode);
89 static void decode(QString& name, QString& font, QChar& charCode);
99 void setup(QImage* img);
110 void draw(QImage* img, QPainterPath& path);
120 bool getChar(QString& charCode, QChar& ch);
137 #endif // __TERRALIB_QT_WIDGETS_SE_INTERNAL_GLYPHMARKRENDERER_H
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
An abstract class for conversion of Symbology Enconding Mark elements to an image pattern...
std::string encode(const traits &ts, const std::string &comp)
Encode the URI (sub) component.
A concrete renderer based on Qt4 for conversion of Symbology Enconding Mark elements to an image patt...
A helper class for 32-bit RGBA (Red-Green-Blue-Alpha channel) color.
QPen m_pen
The pen used to draw the mark patterns.
bool decode(std::string &s)
Decode the pct-encoded (hex) sequences, if any, return success.
QBrush m_brush
The pen used to draw the mark patterns.
QPainter m_painter
The painter used to draw the mark patterns.
static std::string sm_rendererKey
The renderer key.
A Mark specifies a geometric shape and applies coloring to it.