This class contains styling properties to determine how a label is placed on a path.
More...
#include <luciad/layers/styles/OnPathLabelStyle.h>
This class contains styling properties to determine how a label is placed on a path.
It can be used as parameter to the luciad::FeatureCanvas::LabelDrawCommand::onPath
method.
- Since
- 2021.0
◆ asBuilder()
Returns a new builder that has all properties of this instance.
- Returns
- a new builder that has all properties of this instance.
◆ getHorizontalAlignment()
- Returns
- The horizontal alignment of the label relative to the curve.
◆ getHorizontalOffset()
double luciad::OnPathLabelStyle::getHorizontalOffset |
( |
| ) |
const |
◆ getRelativeLocation()
std::optional< double > luciad::OnPathLabelStyle::getRelativeLocation |
( |
| ) |
const |
- Returns
- The relative location on the curve. This value is in the interval
[0,1]
. A value of 0 represents the start of the curve and a value of 1 represents the end of the curve. If this value is std::nullopt
, then the label can be placed anywhere along the path.
◆ getVerticalOffset()
double luciad::OnPathLabelStyle::getVerticalOffset |
( |
| ) |
const |
◆ getVerticalPosition()
- Returns
- The vertical position of the label relative to the curve.
◆ newBuilder()
static Builder luciad::OnPathLabelStyle::newBuilder |
( |
| ) |
|
|
static |