Interface Lines
- All Superinterfaces:
VisualizationItem<Lines>
public interface Lines extends VisualizationItem<Lines>
Visualization item for visualizing segments.
- Since:
- 9.10.2
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Lines.LinePattern
Describes pattern of the drawn lines. -
Method Summary
Modifier and Type Method Description static Lines
create(ARGBColor color, Collection<Segment3d> segments, Lines.LinePattern linePattern, float lineThickness)
Creates visualization of a set of segments.static Lines
create(ARGBColor color, List<Vector3d> sequenceOfPoints, Lines.LinePattern linePattern, float lineThickness)
Creates visualization of segments connecting the given sequence of points.float
getLineThickness()
Returns the line thickness.Lines.LinePattern
getPatternType()
Returns the pattern type of the drawn lines.List<Segment3d>
getSegments()
Returns the line segments.Methods inherited from interface com.solibri.smc.api.visualization.VisualizationItem
getColor, withColor
-
Method Details
-
create
static Lines create(ARGBColor color, Collection<Segment3d> segments, Lines.LinePattern linePattern, float lineThickness)Creates visualization of a set of segments.- Parameters:
color
- the color of the displayed segmentssegments
- the segments to be visualizedlinePattern
- the line pattern of the displayed segmentslineThickness
- the thickness of the displayed line segments- Returns:
- the lines visualization
- Throws:
IllegalArgumentException
- if no segment is givenNullPointerException
- if collection of segments is null- Since:
- 9.10.2
-
create
static Lines create(ARGBColor color, List<Vector3d> sequenceOfPoints, Lines.LinePattern linePattern, float lineThickness)Creates visualization of segments connecting the given sequence of points.The last point is not connected to the first point.
- Parameters:
color
- the color of the displayed segmentssequenceOfPoints
- a sequence of two or more pointslinePattern
- the line pattern of the displayed segmentslineThickness
- the thickness of the displayed line segments- Returns:
- the lines visualization
- Throws:
IllegalArgumentException
- if given sequence of points has fewer than two pointsNullPointerException
- if list of points is null- Since:
- 9.10.2
-
getPatternType
Lines.LinePattern getPatternType()Returns the pattern type of the drawn lines.- Returns:
- the drawing pattern of the lines
- Since:
- 9.10.2
-
getLineThickness
float getLineThickness()Returns the line thickness.- Returns:
- the line thickness
- Since:
- 9.10.2
-
getSegments
Returns the line segments.- Returns:
- the segments
- Since:
- 9.12.0
-