LuciadCPillar 2023.1.04
|
Creates a pattern with a triangle shape. More...
#include <luciad/layers/styles/complexstrokes/builders/TrianglePatternBuilder.h>
Public Member Functions | |
ComplexStrokePattern | build () |
Build the triangle pattern as configured. More... | |
TrianglePatternBuilder & | fillColor (Color color) |
Sets the fill color. More... | |
TrianglePatternBuilder & | lineColor (Color color) |
Sets the line color. More... | |
TrianglePatternBuilder & | lineWidth (double lineWidth) |
Sets the line width. More... | |
TrianglePatternBuilder & | p0 (Coordinate coordinate) |
The 2D coordinate of the first point of the triangle. More... | |
TrianglePatternBuilder & | p1 (Coordinate coordinate) |
The 2D coordinate of the second point of the triangle. More... | |
TrianglePatternBuilder & | p2 (Coordinate coordinate) |
The 2D coordinate of the third point of the triangle. More... | |
TrianglePatternBuilder & | relative (bool relative) |
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. More... | |
Creates a pattern with a triangle shape.
ComplexStrokePattern luciad::TrianglePatternBuilder::build | ( | ) |
Build the triangle pattern as configured.
luciad::LogicException | when the points have not been set. |
TrianglePatternBuilder & luciad::TrianglePatternBuilder::fillColor | ( | Color | color | ) |
Sets the fill color.
color | the fill color, by default there is no fill. |
TrianglePatternBuilder & luciad::TrianglePatternBuilder::lineColor | ( | Color | color | ) |
Sets the line color.
color | the line's color, defaults to black. |
TrianglePatternBuilder & luciad::TrianglePatternBuilder::lineWidth | ( | double | lineWidth | ) |
Sets the line width.
lineWidth | the line's width, defaults to 1 . |
luciad::InvalidArgumentException | lineWidth must be >0 . |
TrianglePatternBuilder & luciad::TrianglePatternBuilder::p0 | ( | Coordinate | coordinate | ) |
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. |
TrianglePatternBuilder & luciad::TrianglePatternBuilder::p1 | ( | Coordinate | coordinate | ) |
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. |
TrianglePatternBuilder & luciad::TrianglePatternBuilder::p2 | ( | Coordinate | coordinate | ) |
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. |
TrianglePatternBuilder & luciad::TrianglePatternBuilder::relative | ( | bool | relative | ) |
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. |