A Displacement gives X and Y offset displacements to use for rendering a text label, graphic or other Symbolizer near a point. More...
#include <Displacement.h>
Public Member Functions | |
Displacement * | clone () const |
It creates a new copy of this object. More... | |
Initializer Methods | |
Methods related to instantiation and destruction. | |
Displacement () | |
It initializes a new Displacement. More... | |
~Displacement () | |
Destructor. More... | |
Accessor methods | |
Methods used to get or set properties. | |
void | setDisplacementX (ParameterValue *x) |
const ParameterValue * | getDisplacementX () const |
void | setDisplacementY (ParameterValue *y) |
const ParameterValue * | getDisplacementY () const |
Private Attributes | |
ParameterValue * | m_x |
It gives the X offset displacement. More... | |
ParameterValue * | m_y |
It gives the Y offset displacement. More... | |
A Displacement gives X and Y offset displacements to use for rendering a text label, graphic or other Symbolizer near a point.
This element may be used to avoid over-plotting of multiple graphic symbols used as part of the same point symbol. The displacements are in units of measure above and to the right of the point. The default displacement is X = 0, Y = 0.
If Displacement is used in conjunction with Size and/or Rotation then the graphic symbol shall be scaled and/or rotated before it is displaced.
Definition at line 58 of file Displacement.h.
te::se::Displacement::Displacement | ( | ) |
It initializes a new Displacement.
Definition at line 30 of file Displacement.cpp.
te::se::Displacement::~Displacement | ( | ) |
Destructor.
Definition at line 36 of file Displacement.cpp.
te::se::Displacement * te::se::Displacement::clone | ( | ) | const |
It creates a new copy of this object.
Definition at line 64 of file Displacement.cpp.
References setDisplacementX(), and setDisplacementY().
Referenced by te::se::PolygonSymbolizer::PolygonSymbolizer().
const te::se::ParameterValue * te::se::Displacement::getDisplacementX | ( | ) | const |
Definition at line 48 of file Displacement.cpp.
Referenced by te::se::serialize::Save(), te::qt::widgets::LocalGraphicWidget::updateUi(), te::qt::widgets::WellKnownGraphicWidget::updateUi(), and te::qt::widgets::GlyphGraphicWidget::updateUi().
const te::se::ParameterValue * te::se::Displacement::getDisplacementY | ( | ) | const |
Definition at line 59 of file Displacement.cpp.
Referenced by te::se::serialize::Save(), te::qt::widgets::LocalGraphicWidget::updateUi(), te::qt::widgets::WellKnownGraphicWidget::updateUi(), and te::qt::widgets::GlyphGraphicWidget::updateUi().
void te::se::Displacement::setDisplacementX | ( | ParameterValue * | x | ) |
Definition at line 42 of file Displacement.cpp.
Referenced by clone(), and te::qt::widgets::AbstractGraphicWidget::setGraphicDisplacement().
void te::se::Displacement::setDisplacementY | ( | ParameterValue * | y | ) |
Definition at line 53 of file Displacement.cpp.
Referenced by clone(), and te::qt::widgets::AbstractGraphicWidget::setGraphicDisplacement().
|
private |
It gives the X offset displacement.
Definition at line 95 of file Displacement.h.
|
private |
It gives the Y offset displacement.
Definition at line 96 of file Displacement.h.