class PolyLineTag extends Object implements Serializable
Copyright (c) 2013-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
$LastChangedDate: 2016-12-13 10:31:48 +0100 (Tue, 13 Dec 2016) $, @version $Revision: 2934 $, by $Author: pknoppers $,
initial version Jul 24, 2015
| Modifier and Type | Field and Description |
|---|---|
(package private) org.djunits.value.vdouble.scalar.Length |
length
Length.
|
(package private) org.opentrafficsim.core.geometry.OTSPoint3D[] |
vertices
Points of the line.
|
| Constructor and Description |
|---|
PolyLineTag() |
PolyLineTag(org.djunits.value.vdouble.scalar.Length length,
org.opentrafficsim.core.geometry.OTSPoint3D[] vertices) |
PolyLineTag(PolyLineTag polyLineTag) |
| Modifier and Type | Method and Description |
|---|---|
(package private) static void |
parsePolyLine(String coords,
VissimNetworkLaneParser parser,
LinkTag linkTag)
Parse the LINK.POLYLINE tag.
|
static org.opentrafficsim.core.geometry.OTSPoint3D[] |
parseVertices(String cs)
Parse a coordinate with (x,y) or (x,y,z).
|
String |
toString() |
org.djunits.value.vdouble.scalar.Length length
org.opentrafficsim.core.geometry.OTSPoint3D[] vertices
public PolyLineTag(PolyLineTag polyLineTag)
polyLineTag - PolyLineTag; the parser with the lists of informationpublic PolyLineTag(org.djunits.value.vdouble.scalar.Length length,
org.opentrafficsim.core.geometry.OTSPoint3D[] vertices)
length - Length; length of the linevertices - OTSPoint3D[]; the points of the linepublic PolyLineTag()
static void parsePolyLine(String coords, VissimNetworkLaneParser parser, LinkTag linkTag) throws SAXException, org.opentrafficsim.core.network.NetworkException
coords - the XML-node to parseparser - the parser with the lists of informationlinkTag - the parent link tagSAXException - when parsing of the tag failsorg.opentrafficsim.core.network.NetworkException - when parsing of the tag failspublic static org.opentrafficsim.core.geometry.OTSPoint3D[] parseVertices(String cs)
cs - the string containing the coordinate.Copyright © 2014–2016 Delft University of Technology. All rights reserved.