All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
te::se::Halo Class Reference

A Halo is a type of Fill that is applied to the backgrounds of font glyphs. More...

#include <Halo.h>

Inheritance diagram for te::se::Halo:

Public Member Functions

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

Methods related to instantiation and destruction.

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

Methods used to get or set properties.

void setRadius (ParameterValue *radius)
 
const ParameterValuegetRadius () const
 
void setFill (Fill *fill)
 
const FillgetFill () const
 

Private Attributes

Fillm_fill
 Specifies how the hallo text area will be filled. (Optional) More...
 
ParameterValuem_radius
 The Radius element gives the absolute size of a halo radius in pixels encoded as a floating-point number. The radius is taken from the outside edge of a font glyph to extend the area of coverage of the glyph (and the inside edge of 'holes' in the glyphs). The halo of a text label is considered to be a single shape. (Optional) More...
 

Detailed Description

A Halo is a type of Fill that is applied to the backgrounds of font glyphs.

A Halo fills an extended area outside the glyphs of a rendered text label to make the label easier to read over a background. The Radius element gives the absolute size of a halo radius in pixels encoded as a floating-point number. The radius is taken from the outside edge of a font glyph to extend the area of coverage of the glyph (and the inside edge of "holes" in the glyphs). The halo of a text label is considered to be a single shape. The default radius is one pixel. Negative values are not allowed. The default halo fill is solid white (Color "#FFFFFF"). The glyph’s fill is plotted on top of the halo. The default font fill is solid black (Color "#000000"). If no Halo is selected in the containing TextSymbolizer, then no halo will be rendered.

See also
TextSymbolizer, Fill, ParameterValue

Definition at line 64 of file Halo.h.

Constructor & Destructor Documentation

te::se::Halo::Halo ( )

It initializes a new Halo.

Definition at line 31 of file Halo.cpp.

te::se::Halo::~Halo ( )

Destructor.

Definition at line 37 of file Halo.cpp.

Member Function Documentation

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

It creates a new copy of this object.

Definition at line 65 of file Halo.cpp.

References setFill(), and setRadius().

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

const te::se::Fill * te::se::Halo::getFill ( ) const

Definition at line 60 of file Halo.cpp.

Referenced by te::se::serialize::Save(), and te::map::CanvasConfigurer::visit().

const te::se::ParameterValue * te::se::Halo::getRadius ( ) const

Definition at line 49 of file Halo.cpp.

Referenced by te::se::serialize::Save(), and te::map::CanvasConfigurer::visit().

void te::se::Halo::setFill ( Fill fill)

Definition at line 54 of file Halo.cpp.

Referenced by clone().

void te::se::Halo::setRadius ( ParameterValue radius)

Definition at line 43 of file Halo.cpp.

Referenced by clone().

Member Data Documentation

Fill* te::se::Halo::m_fill
private

Specifies how the hallo text area will be filled. (Optional)

Definition at line 102 of file Halo.h.

ParameterValue* te::se::Halo::m_radius
private

The Radius element gives the absolute size of a halo radius in pixels encoded as a floating-point number. The radius is taken from the outside edge of a font glyph to extend the area of coverage of the glyph (and the inside edge of 'holes' in the glyphs). The halo of a text label is considered to be a single shape. (Optional)

Definition at line 101 of file Halo.h.


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