Interface Lines

All Superinterfaces:
VisualizationItem<Lines>

public interface Lines extends VisualizationItem<Lines>
Visualization item for visualizing segments.
Since:
9.10.2
  • 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 segments
      segments - the segments to be visualized
      linePattern - the line pattern of the displayed segments
      lineThickness - the thickness of the displayed line segments
      Returns:
      the lines visualization
      Throws:
      IllegalArgumentException - if no segment is given
      NullPointerException - 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 segments
      sequenceOfPoints - a sequence of two or more points
      linePattern - the line pattern of the displayed segments
      lineThickness - the thickness of the displayed line segments
      Returns:
      the lines visualization
      Throws:
      IllegalArgumentException - if given sequence of points has fewer than two points
      NullPointerException - 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

      List<Segment3d> getSegments()
      Returns the line segments.
      Returns:
      the segments
      Since:
      9.12.0