class Curve2DBuilder: Any

Builder for curves in 2D from the OpenDRIVE data model.

Constructors

<init>

constructor(reportLogger: Logger, configuration: Opendrive2RoadspacesConfiguration)

Builder for curves in 2D from the OpenDRIVE data model.

Parameters

Name Description
reportLogger: Logger
configuration: Opendrive2RoadspacesConfiguration

Methods

buildCurve2DFromPlanViewGeometries

fun buildCurve2DFromPlanViewGeometries(id: RoadspaceIdentifier, planViewGeometryList: List<RoadPlanViewGeometry>, offset: Vector2D): Result<CompositeCurve2D, IllegalArgumentException>

Builds a concatenated curve in 2D for the OpenDRIVE's plan view elements.

Parameters

Name Description
id: RoadspaceIdentifier
planViewGeometryList: List<RoadPlanViewGeometry>

source geometry curve segments of OpenDRIVE

offset: Vector2D

applied translational offset

ReturnValue

Name Description
Result<CompositeCurve2D, IllegalArgumentException>

buildLateralTranslatedCurve

fun buildLateralTranslatedCurve(repeat: RoadObjectsObjectRepeat, roadReferenceLine: Curve3D): Result<LateralTranslatedCurve2D, IllegalArgumentException>

Builds the function for laterally translating the roadReferenceLine which is inter alia required for the building of road objects.

Parameters

Name Description
repeat: RoadObjectsObjectRepeat
roadReferenceLine: Curve3D

ReturnValue

Name Description
Result<LateralTranslatedCurve2D, IllegalArgumentException>