Package org.djutils.draw
Class Export
java.lang.Object
org.djutils.draw.Export
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 Summary
Modifier and TypeMethodDescriptionstatic String
toPlot
(LineSegment2d lineSegment) Convert a LineSegment2d to Peter's plot format.static String
Convert a Polygon2d into Peter's plot format.static String
toPlot
(PolyLine2d polyLine) Convert a PolyLine2d to Peter's plot format.static String
toTsv
(LineSegment2d lineSegment) Convert a LineSegment2d into something that a TSV parser can handle.static String
toTsv
(LineSegment3d lineSegment) Convert a LineSegment3d into something that a TSV parser can handle.static String
Convert a Polygon2d into something that a TSV parser can handle.static String
Convert a Polygon3d into something that a TSV parser can handle.static String
toTsv
(PolyLine2d polyLine) Convert a PolyLine2d into something that a TSV parser can handle.static String
toTsv
(PolyLine3d polyline) Convert a PolyLine3d into something that a TSV parser can handle.
-
Method Details
-
toPlot
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
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
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
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
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
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
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
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
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
-