27 #include "../common/STLUtils.h"
56 delete m_displacement;
62 m_externalGraphics.push_back(g);
67 assert(index < m_externalGraphics.size());
71 delete m_externalGraphics[index];
73 m_externalGraphics[index] = g;
78 return m_externalGraphics;
89 assert(index < m_marks.size());
93 delete m_marks[index];
138 delete m_anchorPoint;
139 m_anchorPoint = value;
144 return m_anchorPoint;
149 delete m_displacement;
150 m_displacement = value;
155 return m_displacement;
161 m_externalGraphics.clear();
171 for(std::size_t i = 0; i < m_externalGraphics.size(); ++i)
178 for(std::size_t i = 0; i < m_marks.size(); ++i)
180 const Mark* m = m_marks[i];
const ParameterValue * getRotation() const
void setDisplacement(Displacement *value)
void setRotation(ParameterValue *value)
The Rotation element gives the rotation of a graphic in the clockwise direction about its center poin...
void setOpacity(ParameterValue *value)
The Opacity element gives the opacity to use for rendering the graphic. It has the same semantics as ...
A Mark specifies a geometric shape and applies coloring to it.
void setMark(std::size_t index, Mark *m)
A Displacement gives X and Y offset displacements to use for rendering a text label, graphic or other Symbolizer near a point.
const std::vector< ExternalGraphic * > getExternalGraphics() const
void setSize(ParameterValue *value)
The Size element gives the absolute size of the graphic in uoms encoded as a floating-point number...
void clear()
Clears the marks and the external graphics of this graphic.
The ParameterValueType uses WFS-Filter expressions to give values for SE graphic parameters.
Graphic()
It initializes a new Graphic.
A Graphic is a graphic symbol with an inherent shape, color(s), and possibly size.
void setExternalGraphic(std::size_t index, ExternalGraphic *g)
const AnchorPoint * getAnchorPoint() const
The "ParameterValueType" uses WFS-Filter expressions to give values for SE graphic parameters...
void add(ExternalGraphic *g)
Graphics can either be referenced from an external URL in a common format (such as GIF or SVG)...
An AnchorPoint identifies the location inside of a text label to use an 'anchor' for positioning it r...
The ExternalGraphic allows a reference to be made to an external graphic file with a Web URL or to in...
Graphic * clone() const
It creates a new copy of this object.
ExternalGraphic * clone() const
It creates a new copy of this object.
A Mark specifies a geometric shape and applies coloring to it.
const Displacement * getDisplacement() const
const std::vector< Mark * > getMarks() const
A Displacement gives X and Y offset displacements to use for rendering a text label, graphic or other Symbolizer near a point.
A Graphic is a graphic symbol with an inherent shape, color(s), and possibly size.
An AnchorPoint identifies the location inside of a text label to use an 'anchor' for positioning it r...
Mark * clone() const
It creates a new copy of this object.
void setAnchorPoint(AnchorPoint *value)
The ExternalGraphic allows a reference to be made to an external graphic file with a Web URL or to in...
void FreeContents(boost::unordered_map< K, V * > &m)
This function can be applied to a map of pointers. It will delete each pointer in the map...
const ParameterValue * getSize() const
const ParameterValue * getOpacity() const