27 #include "../../canvas/Canvas.h" 28 #include "../../canvas/MapDisplay.h" 29 #include "../../../../geometry/LineString.h" 30 #include "../../../../geometry/Point.h" 31 #include "../../../../geometry/Polygon.h" 32 #include "../../../../maptools/CanvasConfigurer.h" 33 #include "../../../../se/Description.h" 34 #include "../../../../se/FeatureTypeStyle.h" 35 #include "../../../../se/Rule.h" 36 #include "../../../../se/Symbolizer.h" 44 if(s->
getType() ==
"PointSymbolizer")
47 if(s->
getType() ==
"LineSymbolizer")
73 QIcon
GetIcon(
const std::vector<te::se::Symbolizer*>& symbolizers)
81 std::size_t nSymbolizers = symbolizers.size();
83 for(std::size_t j = 0; j < nSymbolizers; ++j)
91 if(symb->
getType() ==
"RasterSymbolizer")
92 return QIcon::fromTheme(
"raster-symbolizer");
94 std::unique_ptr<te::gm::Geometry> gm(
GetGeometry(symb));
96 canvas.
draw(gm.get());
118 m_label = QObject::tr(
"Style").toUtf8().data();
137 return Qt::ItemIsDropEnabled | Qt::ItemIsEnabled;
const std::string & getTitle() const
A Symbolizer describes how a feature is to appear on a map.
A LinearRing is a LineString that is both closed and simple.
LineString is a curve with linear interpolation between points.
A point with x and y coordinate values.
void setPoint(std::size_t i, const double &x, const double &y)
It sets the value of the specified point.
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
const std::vector< Symbolizer * > & getSymbolizers() const
Polygon is a subclass of CurvePolygon whose rings are defined by linear rings.
A Rule is used to attach property/scale conditions to and group the individual symbols used for rende...
virtual const std::string & getType() const =0
It returns the symbolizer type.
te::gm::Geometry * GetGeometry(const te::se::Symbolizer *s)
QIcon GetIcon(const std::vector< te::se::Symbolizer * > &symbolizers)
const Description * getDescription() const
void setRingN(std::size_t i, Curve *r)
It sets the informed position ring to the new one.
const std::string * getName() const