A LinePlacement specifies how a text label should be rendered relative to a linear geometry. More...
#include <LinePlacement.h>
Public Member Functions | |
LinePlacement * | clone () const |
It creates a new copy of this object. More... | |
Initializer Methods | |
Methods related to instantiation and destruction. | |
LinePlacement () | |
It initializes a new LinePlacement. More... | |
~LinePlacement () | |
Destructor. More... | |
Accessor methods | |
Methods used to get or set properties. | |
void | setPerpendicularOffset (ParameterValue *p) |
const ParameterValue * | getPerpendicularOffset () const |
void | setIsRepeated (bool i) |
bool | isRepeated () const |
void | setInitialGap (ParameterValue *p) |
const ParameterValue * | getInitialGap () const |
void | setGap (ParameterValue *p) |
const ParameterValue * | getGap () const |
void | setIsAligned (bool i) |
bool | isAligned () const |
void | setGeneralizeLine (bool g) |
bool | getGeneralizeLine () const |
Private Attributes | |
ParameterValue * | m_gap |
Gap defines the empty space between two Graphics or Labels. (Optional) More... | |
bool | m_generalizeLine |
It allows the actual geometry, be it a linestring or polygon, to be generalized for label placement. This is e.g. useful for labelling polygons inside their interior when there is need for the label to resemble the shape of the polygon. (Optional) More... | |
ParameterValue * | m_initialGap |
Initial gap defines the initial empty space, before the first Graphic or Label should be rendered. (Optional) More... | |
bool | m_isAligned |
Labels can either be aligned to the line geometry if m_isAligned is "true" (the default) or are drawn horizontally. (Optional) More... | |
bool | m_isRepeated |
If IsRepeated is "true", the label will be repeatedly drawn along the line with m_initialGap and m_gap defining the spaces at the beginning and between labels. (Optional) More... | |
ParameterValue * | m_perpendicularOffset |
A perpendicular offset gives the perpendicular distance away from a line to draw a label. (Optional) More... | |
A LinePlacement specifies how a text label should be rendered relative to a linear geometry.
For a LinePlacement, a perpendicular offset can be specified, to allow the line itself to be plotted also. This might be useful for labelling a road or a river, for example. The default behaviour of LinePlacement is to draw of the label along the line. If IsRepeated is "true", the label will be repeatedly drawn along the line with InitialGap and Gap defining the spaces at the beginning and between labels. GeneralizeLine allows the actual geometry, be it a linestring or polygon to be generalized for label placement. This is e.g. useful for labelling polygons inside their interior when there is need for the label to resemble the shape of the polygon.
Definition at line 61 of file LinePlacement.h.
te::se::LinePlacement::LinePlacement | ( | ) |
It initializes a new LinePlacement.
te::se::LinePlacement::~LinePlacement | ( | ) |
Destructor.
LinePlacement* te::se::LinePlacement::clone | ( | ) | const |
It creates a new copy of this object.
|
inline |
Definition at line 97 of file LinePlacement.h.
|
inline |
Definition at line 105 of file LinePlacement.h.
|
inline |
Definition at line 93 of file LinePlacement.h.
|
inline |
Definition at line 85 of file LinePlacement.h.
|
inline |
Definition at line 101 of file LinePlacement.h.
|
inline |
Definition at line 89 of file LinePlacement.h.
void te::se::LinePlacement::setGap | ( | ParameterValue * | p | ) |
void te::se::LinePlacement::setGeneralizeLine | ( | bool | g | ) |
void te::se::LinePlacement::setInitialGap | ( | ParameterValue * | p | ) |
void te::se::LinePlacement::setIsAligned | ( | bool | i | ) |
void te::se::LinePlacement::setIsRepeated | ( | bool | i | ) |
void te::se::LinePlacement::setPerpendicularOffset | ( | ParameterValue * | p | ) |
|
private |
Gap defines the empty space between two Graphics or Labels. (Optional)
Definition at line 117 of file LinePlacement.h.
|
private |
It allows the actual geometry, be it a linestring or polygon, to be generalized for label placement. This is e.g. useful for labelling polygons inside their interior when there is need for the label to resemble the shape of the polygon. (Optional)
Definition at line 119 of file LinePlacement.h.
|
private |
Initial gap defines the initial empty space, before the first Graphic or Label should be rendered. (Optional)
Definition at line 116 of file LinePlacement.h.
|
private |
Labels can either be aligned to the line geometry if m_isAligned is "true" (the default) or are drawn horizontally. (Optional)
Definition at line 118 of file LinePlacement.h.
|
private |
If IsRepeated is "true", the label will be repeatedly drawn along the line with m_initialGap and m_gap defining the spaces at the beginning and between labels. (Optional)
Definition at line 115 of file LinePlacement.h.
|
private |
A perpendicular offset gives the perpendicular distance away from a line to draw a label. (Optional)
Definition at line 114 of file LinePlacement.h.