LuciadCPillar C# 2023.1.04
|
Creates a pattern with a triangle shape. More...
Creates a pattern with a triangle shape.
ComplexStrokePatternFactory::triangleBuilder()
2023.1
|
inline |
Build the triangle pattern as configured.
the ComplexStrokePattern.
luciad::LogicException
when the points have not been set.
|
inline |
|
inline |
Sets the fill color.
color
the fill color, by default there is no fill.
this builder.
|
inline |
Sets the line color.
color
the line's color, defaults to black.
this builder.
|
inline |
Sets the line width.
lineWidth
the line's width, defaults to 1.
this builder.
luciad::InvalidArgumentException
lineWidth must be >0.
|
inline |
The 2D coordinate of the first point of the triangle.
These coordinates are pixel values. If relative is set to true the x-coordinate is a length relative to the line (a value in [0,1]) but the y-coordinate remains a pixel value. This parameter is mandatory. If it is not set, build throws an exception.
coordinate
a 2D coordinate.
this builder.
|
inline |
The 2D coordinate of the second point of the triangle.
These coordinates are pixel values. If relative is set to true the x-coordinate is a length relative to the line (a value in [0,1]) but the y-coordinate remains a pixel value. This parameter is mandatory. If it is not set, build throws an exception.
coordinate
a 2D coordinate.
this builder.
|
inline |
The 2D coordinate of the third point of the triangle.
These coordinates are pixel values. If relative is set to true the x-coordinate is a length relative to the line (a value in [0,1]) but the y-coordinate remains a pixel value. This parameter is mandatory. If it is not set, build throws an exception.
coordinate
a 2D coordinate.
this builder.
|
inline |
Sets whether the x coordinates of the points need to be interpreted as pixel values or as values in range [0,1] relative to the line.
Defaults to false.
relative
whether the coordinates are relative or not.
this builder.