HorizonPath

class HorizonPath(val pathId: Int, val parentPathId: Int, val offsetOnParentPath: Distance?, val geometry: List<PathGeometryElement>, elements: Map<HorizonElementType, List<HorizonElement>>)

Path in the horizon. The length of the path as well as which types of horizon elements it contains are determined by the horizon options. For information on how to manage horizon options see HorizonEngine.registerHorizonOptions and optionsHorizonOptions.

Important: This is a Public Preview API. It may be changed or removed at any time.

Constructors

Link copied to clipboard
constructor(pathId: Int, parentPathId: Int, offsetOnParentPath: Distance?, geometry: List<PathGeometryElement>, elements: Map<HorizonElementType, List<HorizonElement>>)

Properties

Link copied to clipboard

Path geometry.

Link copied to clipboard

Offset on the parent path of the stub where this path starts or null if there is no parent path.

Link copied to clipboard

Identifier of the parent path (0 if there is no parent path).

Link copied to clipboard
val pathId: Int

Identifier of this path.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard

Returns all the horizon elements that belong to this path. Elements of the same type are provided in increasing order of the start and end offsets.

Returns all the horizon elements of the specified type that belong to this path. The elements are provided in increasing order of the start offset and end offset.

Returns all the horizon elements of the specified types that belong to this path. Elements of the same type are provided in increasing order of the start offset and end offset.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String