te::se::Fill Class Reference

A Fill specifies the pattern for filling an area geometry. More...

#include <Fill.h>

Inheritance diagram for te::se::Fill:

Public Member Functions

Fillclone () const
 It creates a new copy of this object. More...
 
Initializer Methods

Methods related to instantiation and destruction.

 Fill ()
 It initializes a new Fill. More...
 
 ~Fill ()
 Destructor. More...
 
Accessor methods

Methods used to get or set properties.

void setGraphicFill (Graphic *g)
 Sets the GraphicFill element to this Fill. GraphicFill defines that the pixels of the area will be drawn repeating an area-fill pattern. More...
 
const GraphicgetGraphicFill () const
 Gets the GraphicFill element associate to this Fill. More...
 
void add (SvgParameter *p)
 Add a SvgParameter to this Fill. More...
 
void setColor (const std::string &color)
 
void setOpacity (const std::string &opacity)
 
const SvgParametergetColor () const
 
const SvgParametergetOpacity () const
 

Private Member Functions

const SvgParametergetParameter (const std::string &name) const
 
void setParameter (const std::string &name, const std::string &value)
 

Private Attributes

Graphicm_graphicFill
 Repeated graphic fill style. If omitted, then no fill will be rendered. (Optional) More...
 
std::map< std::string, SvgParameter * > m_svgParams
 Solid color style. (Optional) More...
 

Static Private Attributes

static const std::string sm_fill
 SVG/CSS "fill" parameter. More...
 
static const std::string sm_opacity
 SVG/CSS "fill-opacity parameter. More...
 

Detailed Description

A Fill specifies the pattern for filling an area geometry.

Here, the SvgParameter names are "fill" instead of "stroke" and "fill-opacity" instead of "stroke-opacity".

See also
PolygonSymbolizer, Graphic, FillBasicColor, Mark, TextSymbolizer, Halo

Definition at line 59 of file Fill.h.

Constructor & Destructor Documentation

◆ Fill()

te::se::Fill::Fill ( )

It initializes a new Fill.

◆ ~Fill()

te::se::Fill::~Fill ( )

Destructor.

Member Function Documentation

◆ add()

void te::se::Fill::add ( SvgParameter p)

Add a SvgParameter to this Fill.

Note
If there is already a SvgParamater with the same name it will be overrided.
The Fill object will take the ownership of the informed p pointer.

◆ clone()

Fill* te::se::Fill::clone ( ) const

It creates a new copy of this object.

◆ getColor()

const SvgParameter* te::se::Fill::getColor ( ) const

◆ getGraphicFill()

const Graphic* te::se::Fill::getGraphicFill ( ) const

Gets the GraphicFill element associate to this Fill.

Returns
The GraphicFill element.

◆ getOpacity()

const SvgParameter* te::se::Fill::getOpacity ( ) const

◆ getParameter()

const SvgParameter* te::se::Fill::getParameter ( const std::string &  name) const
private

◆ setColor()

void te::se::Fill::setColor ( const std::string &  color)

◆ setGraphicFill()

void te::se::Fill::setGraphicFill ( Graphic g)

Sets the GraphicFill element to this Fill. GraphicFill defines that the pixels of the area will be drawn repeating an area-fill pattern.

Note
The Fill object will take the ownership of the informed fill pointer.

◆ setOpacity()

void te::se::Fill::setOpacity ( const std::string &  opacity)

◆ setParameter()

void te::se::Fill::setParameter ( const std::string &  name,
const std::string &  value 
)
private

Member Data Documentation

◆ m_graphicFill

Graphic* te::se::Fill::m_graphicFill
private

Repeated graphic fill style. If omitted, then no fill will be rendered. (Optional)

Definition at line 125 of file Fill.h.

◆ m_svgParams

std::map<std::string, SvgParameter*> te::se::Fill::m_svgParams
private

Solid color style. (Optional)

Definition at line 126 of file Fill.h.

◆ sm_fill

const std::string te::se::Fill::sm_fill
staticprivate

SVG/CSS "fill" parameter.

Definition at line 128 of file Fill.h.

◆ sm_opacity

const std::string te::se::Fill::sm_opacity
staticprivate

SVG/CSS "fill-opacity parameter.

Definition at line 129 of file Fill.h.


The documentation for this class was generated from the following file: