27 #include "../../../common/STLUtils.h" 28 #include "../../../maptools/MarkRendererManager.h" 29 #include "../../../se/AnchorPoint.h" 30 #include "../../../se/Displacement.h" 31 #include "../../../se/Graphic.h" 32 #include "../../../se/Mark.h" 33 #include "../../../se/Utils.h" 37 #include "ui_GlyphGraphicWidgetForm.h" 44 m_ui(new
Ui::GlyphGraphicWidgetForm)
52 QGridLayout* layout =
new QGridLayout(
m_ui->m_glyphGroupBox);
59 connect(
m_ui->m_graphicSizeDoubleSpinBox, SIGNAL(valueChanged(
const QString&)), SLOT(
setGraphicSize(
const QString&)));
60 connect(
m_ui->m_graphicAngleDoubleSpinBox, SIGNAL(valueChanged(
const QString&)), SLOT(
setGraphicAngle(
const QString&)));
75 const std::vector<te::se::Mark*> marks = graphic->
getMarks();
84 std::size_t found = name->find(
"ttf://");
85 if(found == std::string::npos)
102 return tr(
"Glyph Marker");
109 int dimension = size.width();
113 QIcon icon = QIcon(QPixmap::fromImage(img->scaled(size, Qt::IgnoreAspectRatio, Qt::SmoothTransformation)));
const ParameterValue * getRotation() const
const ParameterValue * getDisplacementX() const
A Mark specifies a geometric shape and applies coloring to it.
void setMark(std::size_t index, Mark *m)
A Displacement gives X and Y offset displacements to use for rendering a text label, graphic or other Symbolizer near a point.
TESEEXPORT double GetDouble(const te::se::ParameterValue *param)
It gets the parameter value as a double.
A Graphic is a graphic symbol with an inherent shape, color(s), and possibly size.
const AnchorPoint * getAnchorPoint() const
The "ParameterValueType" uses WFS-Filter expressions to give values for SE graphic parameters...
void add(ExternalGraphic *g)
Graphics can either be referenced from an external URL in a common format (such as GIF or SVG)...
An AnchorPoint identifies the location inside of a text label to use an 'anchor' for positioning it r...
const ParameterValue * getDisplacementY() const
void Free(std::vector< T * > *v)
This function can be applied to a pointer to a vector of pointers.
Graphic * clone() const
It creates a new copy of this object.
static MarkRendererManager & getInstance()
It returns a reference to the singleton instance.
const ParameterValue * getAnchorPointX() const
const std::string * getWellKnownName() const
const Displacement * getDisplacement() const
const std::vector< Mark * > getMarks() const
A helper class for 32-bit RGBA (Red-Green-Blue-Alpha channel) color.
const ParameterValue * getAnchorPointY() const
const ParameterValue * getSize() const