te::se::PointSymbolizer Class Referenceabstract

A PointSymbolizer specifies the rendering of a graphic Symbolizer at a point. More...

#include <PointSymbolizer.h>

Inheritance diagram for te::se::PointSymbolizer:
te::se::Symbolizer te::common::BaseVisitable< Visitor >

Public Types

typedef void ReturnType
 
typedef Visitor VisitorType
 

Public Member Functions

virtual ReturnType accept (VisitorType &guest) const=0
 It call the visit method from the guest object. More...
 
Initializer Methods

Methods related to instantiation and destruction.

 PointSymbolizer ()
 It initializes a new PointSymbolizer. More...
 
 PointSymbolizer (const PointSymbolizer &rhs)
 Copy constructor. More...
 
 ~PointSymbolizer ()
 Destructor. More...
 

Accessor methods

Methods used to get or set properties.

te::fe::PropertyNamem_geometry
 A Geometry gives reference to a (the) geometry property of a feature to be used for rendering. (Optional) More...
 
Graphicm_graphic
 A Graphic specifies or refers to a graphic Symbolizer with inherent shape, size, and coloring. (Optional) More...
 
static const std::string sm_type
 A static data member used in the implementation of getType method. More...
 
void setGeometry (te::fe::PropertyName *geometry)
 
const te::fe::PropertyNamegetGeometry () const
 
void setGraphic (Graphic *graphic)
 
const GraphicgetGraphic () const
 
const std::string & getType () const
 It returns the symbolizer type. More...
 
Symbolizerclone () const
 It creates a new copy of this object. More...
 

Accessor methods

Methods used to get or set properties.

std::string m_name
 It allows the symbolizer to be referenced externally, which is needed in some methods of SE usage. (Optional) More...
 
Descriptionm_description
 It gives the familiar short title for display lists and longer description for the symbolizer. (Optional) More...
 
te::xl::SimpleLinkm_baseSymbolizer
 A BaseSymbolizer (an OnlineResource) defines the default properties of a Symbolizer to be those of an external Symbolizer, which will frequently be inside of an OGC Symbolizer repository. The Symbolizer properties given in-line override the base-Symbolizer properties. (Optional) More...
 
std::string m_version
 The version is an optional attribute on the FeatureType Style element that identifies the SE version number that the FeatureTypeStyle corresponds to. For now, the only allowed value is 1.1.0. (Mandatory) More...
 
const te::common::BaseUnitOfMeasure * m_uom
 Unit of measurement. If no uom is set inside of Symbolizer, all units are measured in pixel. (Mandatory) More...
 
void setName (const std::string &name)
 
const std::string & getName () const
 
void setDescription (Description *d)
 
const DescriptiongetDescription () const
 
void setBaseSymbolizer (te::xl::SimpleLink *baseSymbolizer)
 
const te::xl::SimpleLinkgetBaseSymbolizer () const
 
void setVersion (const std::string &version)
 
const std::string & getVersion () const
 
void setUom (const te::common::BaseUnitOfMeasure *uom)
 It sets the unit-of-measure. More...
 
const te::common::BaseUnitOfMeasure * getUom () const
 

Detailed Description

A PointSymbolizer specifies the rendering of a graphic Symbolizer at a point.

In the PointSymbolizer case, if a line, polygon, or raster geometry is used, then the semantic is to use the centroid of the geometry, or any similar representative point.

See also
Symbolizer, Graphic, te::fe::PropertyName

Definition at line 52 of file PointSymbolizer.h.

Member Typedef Documentation

◆ ReturnType

typedef void te::common::BaseVisitable< Visitor , void >::ReturnType
inherited

Definition at line 58 of file BaseVisitable.h.

◆ VisitorType

typedef Visitor te::common::BaseVisitable< Visitor , void >::VisitorType
inherited

Definition at line 57 of file BaseVisitable.h.

Constructor & Destructor Documentation

◆ PointSymbolizer() [1/2]

te::se::PointSymbolizer::PointSymbolizer ( )

It initializes a new PointSymbolizer.

◆ PointSymbolizer() [2/2]

te::se::PointSymbolizer::PointSymbolizer ( const PointSymbolizer rhs)

Copy constructor.

Parameters
rhsThe other point symbolizer.

◆ ~PointSymbolizer()

te::se::PointSymbolizer::~PointSymbolizer ( )

Destructor.

Member Function Documentation

◆ accept()

virtual ReturnType te::common::BaseVisitable< Visitor , void >::accept ( VisitorType guest) const
pure virtualinherited

It call the visit method from the guest object.

Parameters
guestThe guest or visitor.
Returns
Any valid value define by the template type R.

◆ clone()

Symbolizer* te::se::PointSymbolizer::clone ( ) const
virtual

It creates a new copy of this object.

Implements te::se::Symbolizer.

◆ getBaseSymbolizer()

const te::xl::SimpleLink* te::se::Symbolizer::getBaseSymbolizer ( ) const
inherited

◆ getDescription()

const Description* te::se::Symbolizer::getDescription ( ) const
inherited

◆ getGeometry()

const te::fe::PropertyName* te::se::PointSymbolizer::getGeometry ( ) const

◆ getGraphic()

const Graphic* te::se::PointSymbolizer::getGraphic ( ) const

◆ getName()

const std::string& te::se::Symbolizer::getName ( ) const
inherited

◆ getType()

const std::string& te::se::PointSymbolizer::getType ( ) const
virtual

It returns the symbolizer type.

Returns
The symbolizer type.

Implements te::se::Symbolizer.

◆ getUom()

const te::common::BaseUnitOfMeasure* te::se::Symbolizer::getUom ( ) const
inherited

◆ getVersion()

const std::string& te::se::Symbolizer::getVersion ( ) const
inherited

◆ setBaseSymbolizer()

void te::se::Symbolizer::setBaseSymbolizer ( te::xl::SimpleLink baseSymbolizer)
inherited

◆ setDescription()

void te::se::Symbolizer::setDescription ( Description d)
inherited

◆ setGeometry()

void te::se::PointSymbolizer::setGeometry ( te::fe::PropertyName geometry)

◆ setGraphic()

void te::se::PointSymbolizer::setGraphic ( Graphic graphic)

◆ setName()

void te::se::Symbolizer::setName ( const std::string &  name)
inherited

◆ setUom()

void te::se::Symbolizer::setUom ( const te::common::BaseUnitOfMeasure *  uom)
inherited

It sets the unit-of-measure.

All Symbolizers include an optional gml:uom-attribute as used by GML (this is set inside the abstract SymbolizerType and therefore inherited by all Symbolizers). This applies to all elements included inside a Symbolizer such as stroke-width, size, font-size, Gap, InitialGap, Displacement and PerpendicularOffset. If no uom is set inside of Symbolizer, all units are measured in pixel, the behaviour used by SLD 1.0.0. The following uom definitions are recommended to be used:

◆ setVersion()

void te::se::Symbolizer::setVersion ( const std::string &  version)
inherited

Member Data Documentation

◆ m_baseSymbolizer

te::xl::SimpleLink* te::se::Symbolizer::m_baseSymbolizer
privateinherited

A BaseSymbolizer (an OnlineResource) defines the default properties of a Symbolizer to be those of an external Symbolizer, which will frequently be inside of an OGC Symbolizer repository. The Symbolizer properties given in-line override the base-Symbolizer properties. (Optional)

Definition at line 164 of file Symbolizer.h.

◆ m_description

Description* te::se::Symbolizer::m_description
privateinherited

It gives the familiar short title for display lists and longer description for the symbolizer. (Optional)

Definition at line 163 of file Symbolizer.h.

◆ m_geometry

te::fe::PropertyName* te::se::PointSymbolizer::m_geometry
private

A Geometry gives reference to a (the) geometry property of a feature to be used for rendering. (Optional)

Definition at line 100 of file PointSymbolizer.h.

◆ m_graphic

Graphic* te::se::PointSymbolizer::m_graphic
private

A Graphic specifies or refers to a graphic Symbolizer with inherent shape, size, and coloring. (Optional)

Definition at line 101 of file PointSymbolizer.h.

◆ m_name

std::string te::se::Symbolizer::m_name
privateinherited

It allows the symbolizer to be referenced externally, which is needed in some methods of SE usage. (Optional)

Definition at line 162 of file Symbolizer.h.

◆ m_uom

const te::common::BaseUnitOfMeasure* te::se::Symbolizer::m_uom
privateinherited

Unit of measurement. If no uom is set inside of Symbolizer, all units are measured in pixel. (Mandatory)

Definition at line 166 of file Symbolizer.h.

◆ m_version

std::string te::se::Symbolizer::m_version
privateinherited

The version is an optional attribute on the FeatureType Style element that identifies the SE version number that the FeatureTypeStyle corresponds to. For now, the only allowed value is 1.1.0. (Mandatory)

Definition at line 165 of file Symbolizer.h.

◆ sm_type

const std::string te::se::PointSymbolizer::sm_type
staticprivate

A static data member used in the implementation of getType method.

Definition at line 103 of file PointSymbolizer.h.


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