Package org.djutils.draw
Class Export
java.lang.Object
org.djutils.draw.Export
Export methods for djutils-draw objects.
Copyright (c) 2023-2025 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, Peter Knoppers, Wouter Schakel
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringtoPlot(LineSegment2d lineSegment) Convert a LineSegment2d to Peter's plot format.static StringConvert a Polygon2d into Peter's plot format.static StringtoPlot(PolyLine2d polyLine) Convert a PolyLine2d to Peter's plot format.static StringtoTsv(LineSegment2d lineSegment) Convert a LineSegment2d into something that a TSV parser can handle.static StringtoTsv(LineSegment3d lineSegment) Convert a LineSegment3d into something that a TSV parser can handle.static StringConvert a Polygon2d into something that a TSV parser can handle.static StringConvert a Polygon3d into something that a TSV parser can handle.static StringtoTsv(PolyLine2d polyLine) Convert a PolyLine2d into something that a TSV parser can handle.static StringtoTsv(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- the line segment to convert- Returns:
- the line segment in Peter's plot format
- Throws:
NullPointerException- whenlineSegmentisnull
-
toPlot
Convert a PolyLine2d to Peter's plot format.- Parameters:
polyLine- the polyline to convert- Returns:
- the polyline in Peter's plot format
- Throws:
NullPointerException- whenpolyLineisnull
-
toPlot
Convert a Polygon2d into Peter's plot format.- Parameters:
polygon- the polygon to convert- Returns:
- the polygon in Peter's plot format
- Throws:
NullPointerException- whenpolygonisnull
-
toTsv
Convert a LineSegment2d into something that a TSV parser can handle.- Parameters:
lineSegment- the line segment to convert- Returns:
- the line segment in TSV format
- Throws:
NullPointerException- whenlineSegmentisnull
-
toTsv
Convert a PolyLine2d into something that a TSV parser can handle.- Parameters:
polyLine- the polyline to convert- Returns:
- the polyline in TSV format
- Throws:
NullPointerException- whenpolyLineisnull
-
toTsv
Convert a Polygon2d into something that a TSV parser can handle.- Parameters:
polygon- the polygon to convert- Returns:
- the polygon in TSV format
- Throws:
NullPointerException- whenpolygonisnull
-
toTsv
Convert a LineSegment3d into something that a TSV parser can handle.- Parameters:
lineSegment- the line segment to convert- Returns:
- the line segment in TSV format
- Throws:
NullPointerException- whenlineSegmentisnull
-
toTsv
Convert a PolyLine3d into something that a TSV parser can handle.- Parameters:
polyline- the polyline to convert- Returns:
- the polyline in TSV format
- Throws:
NullPointerException- whenpolylineisnull
-
toTsv
Convert a Polygon3d into something that a TSV parser can handle.- Parameters:
polygon- the polygon to convert- Returns:
- the polygon in TSV format
- Throws:
NullPointerException- whenpolygonisnull
-