Class Export

java.lang.Object
org.djutils.draw.Export

public final class Export extends Object
Export.java.

Copyright (c) 2023-2023 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://djutils.org. The DJUTILS project is distributed under a three-clause BSD-style license, which can be found at https://djutils.org/docs/license.html.

Author:
Alexander Verbraeck
  • Method Details

    • toPlot

      public static String toPlot(LineSegment2d lineSegment)
      Convert a LineSegment2d to Peter's plot format.
      Parameters:
      lineSegment - LineSegment2d; the line segment to convert
      Returns:
      String; the line segment in Peter's plot format
    • toPlot

      public static String toPlot(PolyLine2d polyLine)
      Convert a PolyLine2d to Peter's plot format.
      Parameters:
      polyLine - PolyLine2d; the polyline to convert
      Returns:
      String; the polyline in Peter's plot format
    • toPlot

      public static String toPlot(Polygon2d polygon)
      Convert a Polygon2d into Peter's plot format.
      Parameters:
      polygon - Polygon2d; the polygon to convert
      Returns:
      String; the polygon in Peter's plot format
    • toTsv

      public static String toTsv(LineSegment2d lineSegment)
      Convert a LineSegment2d into something that a TSV parser can handle.
      Parameters:
      lineSegment - LineSegment2d; the line segment to convert
      Returns:
      String; the line segment in TSV format
    • toTsv

      public static String toTsv(PolyLine2d polyLine)
      Convert a PolyLine2d into something that a TSV parser can handle.
      Parameters:
      polyLine - PolyLine2d; the polyline to convert
      Returns:
      String; the polyline in TSV format
    • toTsv

      public static String toTsv(Polygon2d polygon)
      Convert a Polygon2d into something that a TSV parser can handle.
      Parameters:
      polygon - Polygon2d; the polygon to convert
      Returns:
      String; the polygon in TSV format
    • toTsv

      public static String toTsv(LineSegment3d lineSegment)
      Convert a LineSegment3d into something that a TSV parser can handle.
      Parameters:
      lineSegment - LineSegment3d; the line segment to convert
      Returns:
      String; the line segment in TSV format
    • toTsv

      public static String toTsv(PolyLine3d polyline)
      Convert a PolyLine3d into something that a TSV parser can handle.
      Parameters:
      polyline - PolyLine3d; the polyline to convert
      Returns:
      String; the polyline in TSV format
    • toTsv

      public static String toTsv(Polygon3d polygon)
      Convert a Polygon3d into something that a TSV parser can handle.
      Parameters:
      polygon - Polygon3d; the polygon to convert
      Returns:
      String; the polygon in TSV format