27 #include "../color/ColorTransform.h"
28 #include "../color/RGBAColor.h"
29 #include "../fe/Literal.h"
30 #include "../raster/BandProperty.h"
65 const std::string& opacity,
const std::string& dasharray)
71 const std::string& opacity,
const std::string& dasharray,
72 const std::string& linecap,
const std::string& linejoin)
83 const std::string& width,
const std::string& opacity,
84 const std::string& dasharray,
const std::string& linecap,
const std::string& linejoin)
97 if(!dasharray.empty())
103 if(!linejoin.empty())
132 std::string* name =
new std::string(wellKnownName);
150 if(!rotation.empty())
334 if((nBands == 1) || (nBands == 2))
368 return rasterSymbolizer;
375 std::size_t nRules = s->
getRules().size();
383 const std::vector<te::se::Symbolizer*>& symbolizers = r->
getSymbolizers();
385 if(symbolizers.empty())
391 return rasterSymbolizer;
397 t.
setHsv(rand() % 360, 64 + (rand() % 192), 128 + (rand() % 128));
421 if(color == 0 && opacity == 0)
462 return *p->m_mixedData;
A TextSymbolizer is used to render text labels according to various graphical parameters.
void setRotation(ParameterValue *value)
The Rotation element gives the rotation of a graphic in the clockwise direction about its center poin...
The CoverageStyle defines the styling that is to be applied to a subset of Coverage data...
void setRedChannel(SelectedChannel *c)
A selected channel to be display.
void setGraphicFill(Graphic *fill)
Sets the GraphicFill element to this Stroke. GraphicFill defines that the pixels of the line will be ...
A SvgParameter refers to an SVG/CSS graphical-formatting parameter.
TESEEXPORT void GetColor(const te::se::Stroke *stroke, te::color::RGBAColor &color)
It gets the RGBA color from the Stroke element.
GeomType
Each enumerated type is compatible with a Well-known Binary (WKB) type code.
A Description gives human-readable descriptive information for the object it is included within...
ChannelSelection specifies the false-color channel selection for a multi-spectral raster source (such...
void setWidth(const std::string &width)
void setColor(const std::string &hexColor)
It sets the color using a two hexadecimal RGB-encoded color.
void setOpacity(ParameterValue *value)
The Opacity element gives the opacity to use for rendering the graphic. It has the same semantics as ...
The Style defines the styling that is to be applied to a geographic dataset (vector geometries or cov...
A Mark specifies a geometric shape and applies coloring to it.
int getRed() const
It returns the red component color value (a value from 0 to 255).
void setAbstract(const std::string &a)
A PolygonSymbolizer is used to draw a polygon (or other area-type geometries), including filling its ...
TESEEXPORT Symbolizer * CreateSymbolizer(const te::gm::GeomType &geomType)
Try creates an appropriate symbolizer based on given geometry type.
TESEEXPORT RasterSymbolizer * CreateRasterSymbolizer(const std::size_t &nBands)
Try creates an appropriate raster symbolizer style based on given number of bands.
A Fill specifies the pattern for filling an area geometry.
A Symbolizer describes how a feature is to appear on a map.
TESEEXPORT RasterSymbolizer * GetRasterSymbolizer(Style *s)
Try to get raster symbolizer from a style.
void setSize(ParameterValue *value)
The Size element gives the absolute size of the graphic in uoms encoded as a floating-point number...
The CoverageStyle defines the styling that is to be applied to a subset of Coverage data...
void setColor(const std::string &color)
TESEEXPORT Style * CreateCoverageStyle(const std::vector< te::rst::BandProperty * > &properties)
Try creates an appropriate coverage style based on given band properties.
void setGain(ParameterValue *p)
The ParameterValueType uses WFS-Filter expressions to give values for SE graphic parameters.
int getBlue() const
It returns the blue component color value (a value from 0 to 255).
int getGreen() const
It returns the green component color value (a value from 0 to 255).
A PointSymbolizer specifies the rendering of a graphic Symbolizer at a point.
void setSize(const std::string &size)
A Rule is used to attach property/scale conditions to and group the individual symbols used for rende...
void push_back(const std::string &semanticTypeIdentifier)
TESEEXPORT double GetDouble(const te::se::ParameterValue *param)
It gets the parameter value as a double.
void setGrayChannel(SelectedChannel *c)
TESEEXPORT LineSymbolizer * CreateLineSymbolizer(Stroke *stroke)
Creates a line symbolizer.
TESEEXPORT TextSymbolizer * CreateTextSymbolizer(const std::string &label, Fill *fill, Font *font)
Creates a text symbolizer.
A Graphic is a graphic symbol with an inherent shape, color(s), and possibly size.
TESEEXPORT PolygonSymbolizer * CreatePolygonSymbolizer(Stroke *stroke, Fill *fill)
Creates a polygon symbolizer.
void push_back(Symbolizer *s)
void setDashArray(const std::string &dasharray)
The "ParameterValueType" uses WFS-Filter expressions to give values for SE graphic parameters...
void setColor(const std::string &color)
void add(ExternalGraphic *g)
Graphics can either be referenced from an external URL in a common format (such as GIF or SVG)...
TESEEXPORT Style * CreateFeatureTypeStyle(const te::gm::GeomType &geomType)
Try creates an appropriate feature type style based on given geometry type.
const Parameter * getParameter(size_t i) const
A Description gives human-readable descriptive information for the object it is included within...
Rule * getRule(std::size_t i) const
const std::vector< Rule * > & getRules() const
A LineSymbolizer is used to style a stroke along a linear geometry type, such as a string of line seg...
void setOpacity(const std::string &opacity)
const SvgParameter * getOpacity() const
The FeatureTypeStyle defines the styling that is to be applied to a dataset that can be viewed as a f...
const SvgParameter * getColor() const
#define TE_OPAQUE
For an RGBA color this is the value of the alpha-channel for totally opaque.
void setColorCompositionType(ColorCompositionType cct)
void setChannelSelection(ChannelSelection *c)
A Font specifies the text font to use in a text symbolizer.
void setStroke(Stroke *stroke)
A Stroke specifies the appearance of a linear geometry. The Stroke element is optional inside of Line...
int getAlpha() const
It returns the alpha component color value (a value from 0 to 255).
void setTitle(const std::string &title)
void setLineCap(const std::string &cap)
TESEEXPORT Graphic * CreateGraphic(Mark *mark, const std::string &size, const std::string &rotation, const std::string &opacity)
Creates a graphic.
A PolygonSymbolizer is used to draw a polygon (or other area-type geometries), including filling its ...
size_t getNParameters() const
void setOpacity(const std::string &opacity)
The RasterSymbolizer describes how to render raster/matrix-coverage data (e.g., satellite photos...
A Fill specifies the pattern for filling an area geometry.
void setOpacity(ParameterValue *p)
FontStyleType
It defines the style to use for a font.
void setGraphicFill(Graphic *g)
Sets the GraphicFill element to this Fill. GraphicFill defines that the pixels of the area will be dr...
TESEEXPORT Mark * CreateMark(const std::string &wellKnownName, Stroke *stroke, Fill *fill)
Creates a mark.
A TextSymbolizer is used to render text labels according to various graphical parameters.
The RasterSymbolizer describes how to render raster/matrix-coverage data (e.g., satellite photos...
const std::vector< Symbolizer * > & getSymbolizers() const
TESEEXPORT Stroke * CreateStroke(const std::string &color, const std::string &width)
Creates a stroke.
void setWeight(const FontWeightType &weight)
void setLabel(ParameterValue *l)
A Mark specifies a geometric shape and applies coloring to it.
void setLineJoin(const std::string &join)
This class can be used to represent literal values.
A Rule is used to attach property/scale conditions to and group the individual symbols used for rende...
void setOffset(ParameterValue *p)
A Stroke specifies the appearance of a linear geometry.
void setFamily(const std::string &family)
A Graphic is a graphic symbol with an inherent shape, color(s), and possibly size.
std::string getColor() const
It gets the color encoded using two hexadecimal digits per primary-color component, in the order Red, Green, Blue, prefixed with a hash (#) sign.
void setStroke(Stroke *stroke)
A Stroke specifies the appearance of a linear geometry.
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.
void setSourceChannelName(const std::string &name)
TESEEXPORT Font * CreateFont(const std::string &family, const std::string &size, const te::se::Font::FontStyleType &style=te::se::Font::StyleNormal, const te::se::Font::FontWeightType &weight=te::se::Font::WeightNormal)
Creates a font.
void setStroke(Stroke *s)
The FeatureTypeStyle defines the styling that is to be applied to a dataset that can be viewed as a f...
A LineSymbolizer is used to style a stroke along a linear geometry type, such as a string of line seg...
const SvgParameter * getColor() const
TESEEXPORT std::string GenerateRandomColor()
Creates a random RGB color encoded using two hexadecimal digits per primary-color component prefixed ...
TESEEXPORT Description * CreateDescription(const std::string &title, const std::string &abst)
Creates a description.
A PointSymbolizer specifies the rendering of a graphic Symbolizer at a point.
const std::string & getValue() const
It returns the literal value.
void setFill(Fill *f)
A Fill specifies the pattern for filling an area geometry.
void setStyle(const FontStyleType &style)
A selected channel to be display.
FontWeightType
It gives the amount of weight or boldness to use for a font.
void setWellKnownName(std::string *name)
The WellKnownName element gives the well-known name of the shape of the mark.
void setBlueChannel(SelectedChannel *c)
void setGraphic(Graphic *graphic)
Utility functions for Symbology Enconding module.
TESEEXPORT std::string GetString(const te::se::ParameterValue *param)
It gets the parameter value as a string.
A Stroke specifies the appearance of a linear geometry.
TESEEXPORT PointSymbolizer * CreatePointSymbolizer(Graphic *graphic)
Creates a point symbolizer.
TESEEXPORT Fill * CreateFill(const std::string &color, const std::string &opacity)
Creates a fill.
void setGreenChannel(SelectedChannel *c)
const SvgParameter * getOpacity() const
ChannelSelection specifies the false-color channel selection for a multi-spectral raster source (such...