LuciadCPillar C# 2023.1.04
|
Creates a pattern containing an icon. More...
Creates a pattern containing an icon.
The icon must be set by calling the icon method before calling build. All other methods are optional. ComplexStrokePatternFactory::iconBuilder()
2023.1
|
inline |
Build the icon pattern as configured.
the ComplexStrokePattern.
luciad::LogicException
when the icon has not been set.
|
inline |
|
inline |
Sets the icon to be displayed.
May not be nullptr.
icon
the icon to be displayed.
this builder.
luciad::InvalidArgumentException
icon may not be nullptr.
|
inline |
Sets the offset of the icon, relative to the base line, in pixels.
Defaults to 0.
offset
the offset of the icon.
this builder.
|
inline |
The opacity of the icon, determines how transparent an icon will be painted.
It needs to be specified between 0 and 1. 0 indicates that the icon is painted completely transparent and 1 indicates that the original opacity of the icon is used.
opacity
the icon's opacity in the [0,1] interval, defaults to 1.
this builder.
luciad::InvalidArgumentException
opacity must be in range [0,1].
|
inline |
Indicates if the icon should be flipped when it is turned upside down.
Defaults to false.
rotateUp
Indicates if the icon should be flipped when it is turned upside down.
this builder.
|
inline |
The rotation angle around the center of the icon's image, specified in degrees.
Rotations are applied in a clock-wise fashion relatively to the direction of the underlying line. When rotateUp is set to true, the flipping occurs on the already rotated icon. The default is 0, which implies the icon is not rotated.
rotation
the rotation, defaults to 0 degrees.
this builder.
|
inline |
Sets the factor by which the icon will be scaled.
Defaults to 1 (no scaling).
scale
the scale factor.
this builder.
luciad::InvalidArgumentException
scale must be >0.