Loading...
Searching...
No Matches
Utils.h File Reference

Utility functions for Symbology Enconding module. More...

#include "../color/RGBAColor.h"
#include "../geometry/Enums.h"
#include "Config.h"
#include "Font.h"
#include <string>
#include <vector>

Go to the source code of this file.

Namespaces

namespace  te
 TerraLib.
 
namespace  te::rst
 Namespace for the Raster module of TerraLib.
 
namespace  te::se
 Namespace for the Symbology Encoding module of TerraLib.
 

Functions

TESEEXPORT Stylete::se::CreateCoverageStyle (const std::size_t &nBands)
 Try creates an appropriate coverage style based on given number of bands.
 
TESEEXPORT Stylete::se::CreateCoverageStyle (const std::vector< te::rst::BandProperty * > &properties)
 Try creates an appropriate coverage style based on given band properties.
 
TESEEXPORT Descriptionte::se::CreateDescription (const std::string &title, const std::string &abst)
 Creates a description.
 
TESEEXPORT Stylete::se::CreateFeatureTypeStyle (const te::gm::GeomType &geomType, const std::string &color="")
 Try creates an appropriate feature type style based on given geometry type.
 
TESEEXPORT Fillte::se::CreateFill (const std::string &color, const std::string &opacity)
 Creates a fill.
 
TESEEXPORT Fillte::se::CreateFill (Graphic *graphicFill)
 Creates a fill.
 
TESEEXPORT Fontte::se::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.
 
TESEEXPORT Graphicte::se::CreateGraphic (Mark *mark, const std::string &size, const std::string &rotation, const std::string &opacity)
 Creates a graphic.
 
TESEEXPORT LineSymbolizerte::se::CreateLineSymbolizer (Stroke *stroke)
 Creates a line symbolizer.
 
TESEEXPORT Markte::se::CreateMark (const std::string &wellKnownName, Stroke *stroke, Fill *fill)
 Creates a mark.
 
TESEEXPORT PointSymbolizerte::se::CreatePointSymbolizer (Graphic *graphic)
 Creates a point symbolizer.
 
TESEEXPORT PolygonSymbolizerte::se::CreatePolygonSymbolizer (Stroke *stroke, Fill *fill)
 Creates a polygon symbolizer.
 
TESEEXPORT RasterSymbolizerte::se::CreateRasterSymbolizer (const std::size_t &nBands)
 Try creates an appropriate raster symbolizer style based on given number of bands.
 
TESEEXPORT Strokete::se::CreateStroke (const std::string &color, const std::string &width)
 Creates a stroke.
 
TESEEXPORT Strokete::se::CreateStroke (const std::string &color, const std::string &width, const std::string &opacity)
 Creates a stroke.
 
TESEEXPORT Strokete::se::CreateStroke (const std::string &color, const std::string &width, const std::string &opacity, const std::string &dasharray)
 Creates a stroke.
 
TESEEXPORT Strokete::se::CreateStroke (const std::string &color, const std::string &width, const std::string &opacity, const std::string &dasharray, const std::string &linecap, const std::string &linejoin)
 Creates a stroke.
 
TESEEXPORT Strokete::se::CreateStroke (Graphic *graphicFill, const std::string &width, const std::string &opacity, const std::string &dasharray, const std::string &linecap, const std::string &linejoin)
 Creates a stroke.
 
TESEEXPORT Symbolizerte::se::CreateSymbolizer (const te::gm::GeomType &geomType)
 Try creates an appropriate symbolizer based on given geometry type.
 
TESEEXPORT Symbolizerte::se::CreateSymbolizer (const te::gm::GeomType &geomType, const std::string &color)
 Try creates an appropriate symbolizer based on given geometry type and a default color.
 
TESEEXPORT TextSymbolizerte::se::CreateTextSymbolizer (const std::string &label, Fill *fill, Font *font)
 Creates a text symbolizer.
 
TESEEXPORT std::string te::se::GenerateRandomColor ()
 Creates a random RGB color encoded using two hexadecimal digits per primary-color component prefixed with a hash (#) sign.
 
TESEEXPORT void te::se::GetColor (const te::se::Fill *fill, te::color::RGBAColor &color)
 It gets the RGBA color from the Fill element.
 
TESEEXPORT void te::se::GetColor (const te::se::ParameterValue *color, const te::se::ParameterValue *opacity, te::color::RGBAColor &rgba)
 It gets the RGBA color from the parameter values.
 
TESEEXPORT te::color::RGBAColor te::se::GetColor (const te::se::ParameterValue *param)
 It gets the parameter value as a RGBA color.
 
TESEEXPORT void te::se::GetColor (const te::se::Stroke *stroke, te::color::RGBAColor &color)
 It gets the RGBA color from the Stroke element.
 
TESEEXPORT double te::se::GetDouble (const te::se::ParameterValue *param)
 It gets the parameter value as a double.
 
TESEEXPORT int te::se::GetInt (const te::se::ParameterValue *param)
 It gets the parameter value as an integer.
 
TESEEXPORT RasterSymbolizerte::se::GetRasterSymbolizer (Style *s)
 Try to get raster symbolizer from a style.
 
TESEEXPORT std::string te::se::GetString (const te::se::ParameterValue *param)
 It gets the parameter value as a string.
 

Detailed Description

Utility functions for Symbology Enconding module.

Definition in file Utils.h.