27 #include "../common/StringUtils.h" 28 #include "../common/STLUtils.h" 29 #include "../fe/Literal.h" 30 #include "../se/ExternalGraphic.h" 31 #include "../se/Fill.h" 32 #include "../se/Font.h" 33 #include "../se/Graphic.h" 34 #include "../se/GraphicStroke.h" 35 #include "../se/Halo.h" 36 #include "../se/LineSymbolizer.h" 37 #include "../se/PointSymbolizer.h" 38 #include "../se/PolygonSymbolizer.h" 39 #include "../se/Stroke.h" 40 #include "../se/SvgParameter.h" 41 #include "../se/Symbolizer.h" 42 #include "../se/TextSymbolizer.h" 43 #include "../se/Utils.h" 44 #include "../xlink/SimpleLink.h" 276 std::vector<double> pattern;
321 std::size_t width = height;
349 const std::vector<te::se::Mark*> marks = graphic->
getMarks();
const ParameterValue * getRotation() const
A TextSymbolizer is used to render text labels according to various graphical parameters.
virtual void setLineCapStyle(LineCapStyle style)=0
It sets the line cap style.
const Fill * getFill() const
Gets the Fill associates with the PolygonSymbolizer.
const SvgParameter * getLineCap() const
TESEEXPORT void GetColor(const te::se::Stroke *stroke, te::color::RGBAColor &color)
It gets the RGBA color from the Stroke element.
const ParameterValue * getRadius() const
const Graphic * getGraphic() const
#define TE_SE_DEFAULT_GRAPHIC_SIZE
It specifies the default graphic size.
The Style defines the styling that is to be applied to a geographic dataset (vector geometries or cov...
This is a singleton for managing all external graphic renderers instances available in the system...
virtual void setFontFamily(const std::string &family)=0
It sets the text font family.
A PolygonSymbolizer is used to draw a polygon (or other area-type geometries), including filling its ...
#define TE_SE_DEFAULT_STROKE_BASIC_WIDTH
It specifies the default width used by stroke basic (solid colors).
const std::vector< ExternalGraphic * > getExternalGraphics() const
#define TE_SE_DEFAULT_HALO_RADIUS
It specifies the default halo radius (in pixels).
A Symbolizer describes how a feature is to appear on a map.
const SvgParameter * getLineJoin() const
virtual void setPolygonFillColor(const te::color::RGBAColor &color)=0
It sets the color used to fill the draw of polygon geometries.
The CoverageStyle defines the styling that is to be applied to a subset of Coverage data...
virtual void setPointPattern(te::color::RGBAColor **pattern, int ncols, int nrows)=0
It sets the point pattern.
virtual void setLineWidth(int w)=0
It sets the line width.
virtual void setPointPatternRotation(const double &angle)=0
It sets the point pattern rotation. Rotation is made from the center of the pattern.
const SvgParameter * getFamily() const
This is a singleton for managing all mark renderers instances available in the system.
#define TE_OPAQUE
For an RGBA color this is the value of the alpha-channel for totally opaque.
A PointSymbolizer specifies the rendering of a graphic Symbolizer at a point.
TESEEXPORT double GetDouble(const te::se::ParameterValue *param)
It gets the parameter value as a double.
virtual ReturnType accept(VisitorType &guest) const =0
It call the visit method from the guest object.
A Graphic is a graphic symbol with an inherent shape, color(s), and possibly size.
const SvgParameter * getWeight() const
The "ParameterValueType" uses WFS-Filter expressions to give values for SE graphic parameters...
virtual void setPolygonContourPatternRotation(const double &angle)=0
It sets the polygon contour pattern rotation.
virtual void setPolygonPatternRotation(const double &angle)=0
It sets the polygon pattern rotation.
virtual void setLineJoinStyle(LineJoinStyle style)=0
It sets the line join style.
const SvgParameter * getSize() const
#define TE_SE_BEVEL_JOIN
It specifies the value "bevel" for stroke-linejoin parameter.
virtual void setLinePattern(te::color::RGBAColor **pattern, int ncols, int nrows)=0
It sets the line pattern.
#define TE_SE_DEFAULT_FONT_SIZE
It specifies the default font size.
void Free(std::vector< T * > *v)
This function can be applied to a pointer to a vector of pointers.
TEMAPEXPORT void GetDashStyle(const std::string &dasharray, std::vector< double > &style)
Converts a dasharray pattern coded by a string to a vector of double.
virtual void setPolygonContourPattern(te::color::RGBAColor **pattern, int ncols, int nrows)=0
It sets the pen pattern used to draw the boundary of polygon geometries.
virtual void setPolygonFillPattern(te::color::RGBAColor **pattern, int ncols, int nrows)=0
It sets the polygon fill pattern.
const Graphic * getGraphicFill() const
Gets the GraphicFill element associate to this Stroke.
static ExternalGraphicRendererManager & getInstance()
It returns a reference to the singleton instance.
virtual void setPolygonPatternOpacity(int opacity)=0
It sets the polygon pattern opacity.
The FeatureTypeStyle defines the styling that is to be applied to a dataset that can be viewed as a f...
const Graphic * getGraphicFill() const
Gets the GraphicFill element associate to this Fill.
#define TE_SE_BUTT_CAP
It specifies the value "butt" for stroke-linecap parameter.
virtual void setLineDashStyle(LineDashStyle style)=0
It sets the line dash style.
A Font specifies the text font to use in a text symbolizer.
virtual void setTextColor(const te::color::RGBAColor &color)=0
It sets the text drawing color.
virtual void setTextWeight(te::se::Font::FontWeightType weight)=0
It sets the text weight.
virtual void setLinePatternOpacity(int opacity)=0
It sets the line pattern opacity.
virtual void setTextContourWidth(int width)=0
It sets the text contour width.
const Stroke * getStroke() const
Gets the Stroke associates with the PolygonSymbolizer.
The RasterSymbolizer describes how to render raster/matrix-coverage data (e.g., satellite photos...
A Fill specifies the pattern for filling an area geometry.
virtual void setLinePatternRotation(const double &angle)=0
It sets the line pattern rotation. Rotation is made from the center of the pattern.
virtual void setPolygonContourPatternOpacity(int opacity)=0
It sets the polygon contour pattern opacity.
#define TE_SE_DEFAULT_TEXT_COLOR
It specifies the default color used to show texts.
const Font * getFont() const
virtual void setPolygonContourWidth(int w)=0
It sets the polygon contour width.
virtual void setTextContourColor(const te::color::RGBAColor &color)=0
It sets the text contour (outline) drawing color.
const Stroke * getStroke() const
#define TE_SE_SQUARE_CAP
It specifies the value "square" for stroke-linecap parameter.
#define TE_SE_ROUND_JOIN
It specifies the value "round" for stroke-linejoin parameter.
#define TE_SE_ROUND_CAP
It specifies the value "round" for stroke-linecap parameter.
A canvas is an abstraction of a drawing area.
virtual void setPointColor(const te::color::RGBAColor &color)=0
It sets the point drawing color.
const std::vector< Mark * > getMarks() const
const SvgParameter * getDashArray() const
virtual void setTextContourEnabled(bool b)=0
It controls the display of the text outline.
A Stroke specifies the appearance of a linear geometry.
#define TE_SE_MITRE_JOIN
It specifies the value "mitre" for stroke-linejoin parameter.
virtual void setPolygonContourColor(const te::color::RGBAColor &color)=0
It sets the pen color used to draw the boundary of polygon geometries.
A helper class for 32-bit RGBA (Red-Green-Blue-Alpha channel) color.
TESEEXPORT int GetInt(const te::se::ParameterValue *param)
It gets the parameter value as an integer.
#define TE_SE_DEFAULT_FILL_BASIC_COLOR
It specifies the default color used by basic fill (solid colors).
const Fill * getFill() const
const SvgParameter * getStyle() const
A LineSymbolizer is used to style a stroke along a linear geometry type, such as a string of line seg...
#define TE_SE_DEFAULT_STROKE_BASIC_COLOR
It specifies the default color used by stroke basic (solid colors).
virtual void setTextStyle(te::se::Font::FontStyleType style)=0
It sets the text style.
const Fill * getFill() const
A SvgParameter refers to an SVG/CSS graphical-formatting parameter.
virtual void setPolygonContourJoinStyle(LineJoinStyle style)=0
It sets the polygon contour join style.
virtual void setLineColor(const te::color::RGBAColor &color)=0
It sets the pen color used to draw line geometries.
virtual void setPointPatternOpacity(int opacity)=0
It sets the point pattern opacity.
virtual void setPolygonContourDashStyle(LineDashStyle style)=0
It sets the polygon contour dash style.
#define TE_TRANSPARENT
For an RGBA color this is the value of the alpha-channel for totally transparent. ...
A Halo is a type of Fill that is applied to the backgrounds of font glyphs.
const Halo * getHalo() const
const ParameterValue * getSize() const
TESEEXPORT std::string GetString(const te::se::ParameterValue *param)
It gets the parameter value as a string.
#define TE_SE_DEFAULT_HALO_COLOR
It specifies the default color used to show text halo.
const SvgParameter * getWidth() const
virtual void setTextPointSize(double size)=0
It sets the text point Size.
const ParameterValue * getOpacity() const
virtual void setPolygonContourCapStyle(LineCapStyle style)=0
It sets the polygon contour cap style.