All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 = "fill"
 SVG/CSS "fill" parameter. More...
 
static const std::string sm_opacity = "fill-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

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

It initializes a new Fill.

Definition at line 35 of file Fill.cpp.

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

Destructor.

Definition at line 40 of file Fill.cpp.

References te::common::FreeContents().

Member Function Documentation

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.

Definition at line 57 of file Fill.cpp.

References te::se::SvgParameter::getName().

Referenced by clone().

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

Definition at line 76 of file Fill.cpp.

Referenced by te::se::GetColor(), and te::se::serialize::Save().

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

Definition at line 81 of file Fill.cpp.

Referenced by te::se::GetColor(), and te::se::serialize::Save().

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

Definition at line 109 of file Fill.cpp.

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

Definition at line 66 of file Fill.cpp.

Referenced by te::se::CreateFill().

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.

Definition at line 46 of file Fill.cpp.

Referenced by clone(), te::se::CreateFill(), te::qt::widgets::GraphicFillWidget::GraphicFillWidget(), and te::qt::widgets::PolygonSymbolizerProperty::onPolyGraphicChanged().

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

Definition at line 101 of file Fill.cpp.

Member Data Documentation

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.

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

Solid color style. (Optional)

Definition at line 126 of file Fill.h.

const std::string te::se::Fill::sm_fill = "fill"
staticprivate

SVG/CSS "fill" parameter.

Definition at line 128 of file Fill.h.

const std::string te::se::Fill::sm_opacity = "fill-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 files: