package io.rtron.transformer.roadspaces2citygml.geometry

Classes

Name Description
class GeometryTransformer: Any

Generates a surface based geometry representation for CityGML by visiting the geometry class.

enum class LevelOfDetail: Enum<LevelOfDetail>

Methods

populateGeometryOrImplicitGeometry

fun AbstractOccupiedSpace.populateGeometryOrImplicitGeometry(geometryTransformer: GeometryTransformer, lod: LevelOfDetail): Result<Unit, Exception>

Populates the lod geometry of an AbstractOccupiedSpace, if available. Otherwise the lod implicit geometry of the GeometryTransformer is populated.

Receiver

Name Description
AbstractOccupiedSpace

Parameters

Name Description
geometryTransformer: GeometryTransformer

source geometries

lod: LevelOfDetail

target level of detail

ReturnValue

Name Description
Result<Unit, Exception>

Result.success is returned, if a geometry or implicit geometry has been populated; Result.error, if no geometry could be assigned

populateImplicitGeometry

fun AbstractOccupiedSpace.populateImplicitGeometry(geometryTransformer: GeometryTransformer, lod: LevelOfDetail): Result<Unit, Exception>

Populates the lod implicit geometry of an AbstractOccupiedSpace object with the source geometries of the GeometryTransformer.

Receiver

Name Description
AbstractOccupiedSpace

Parameters

Name Description
geometryTransformer: GeometryTransformer

source geometries

lod: LevelOfDetail

target level of detail

ReturnValue

Name Description
Result<Unit, Exception>

Result.success is returned, if an implicit geometry has been populated; Result.error, if no implicit geometry could be assigned

populateGeometry

fun AbstractSpace.populateGeometry(geometryTransformer: GeometryTransformer, lod: LevelOfDetail): Result<Unit, Exception>

Populates the lod geometry of an AbstractSpace object with the source geometries of the GeometryTransformer.

Receiver

Name Description
AbstractSpace

Parameters

Name Description
geometryTransformer: GeometryTransformer

source geometries

lod: LevelOfDetail

target level of detail

ReturnValue

Name Description
Result<Unit, Exception>

Result.success is returned, if a geometry has been populated; Result.error, if no adequate geometry could be assigned

populateLod0Geometry

fun AbstractSpace.populateLod0Geometry(geometryTransformer: GeometryTransformer): Result<Unit, Exception>

Populates the LoD0 point geometry of an AbstractSpace object with the source geometries of the GeometryTransformer.

Receiver

Name Description
AbstractSpace

Parameters

Name Description
geometryTransformer: GeometryTransformer

source geometries

ReturnValue

Name Description
Result<Unit, Exception>

Result.success is returned, if a geometry has been populated; Result.error, if no adequate geometry could be assigned

populateLod1Geometry

fun AbstractSpace.populateLod1Geometry(geometryTransformer: GeometryTransformer): Result<Unit, Exception>

Populates the LoD1 geometry of an AbstractSpace object with the source geometries of the GeometryTransformer. So only the solid geometry are populated at LoD1 (since multiSurface, multiCurve are not available at this LoD).

Receiver

Name Description
AbstractSpace

Parameters

Name Description
geometryTransformer: GeometryTransformer

source geometries

ReturnValue

Name Description
Result<Unit, Exception>

Result.success is returned, if a geometry has been populated; Result.error, if no adequate geometry could be assigned

populateLod2Geometry

fun AbstractSpace.populateLod2Geometry(geometryTransformer: GeometryTransformer): Result<Unit, Exception>

Populates the LoD2 geometry of an AbstractSpace object with the source geometries of the GeometryTransformer. Only the first available geometry type is populated, with the prioritization order being: solid, multiSurface, multiCurve.

Receiver

Name Description
AbstractSpace

Parameters

Name Description
geometryTransformer: GeometryTransformer

source geometries

ReturnValue

Name Description
Result<Unit, Exception>

Result.success is returned, if a geometry has been populated; Result.error, if no adequate geometry could be assigned

populateLod3Geometry

fun AbstractSpace.populateLod3Geometry(geometryTransformer: GeometryTransformer): Result<Unit, Exception>

Populates the LoD2 geometry of an AbstractSpace object with the source geometries of the GeometryTransformer. Only the first available geometry type is populated, with the prioritization order being: solid, multiSurface, multiCurve.

Receiver

Name Description
AbstractSpace

Parameters

Name Description
geometryTransformer: GeometryTransformer

source geometries

ReturnValue

Name Description
Result<Unit, Exception>

Result.success is returned, if a geometry has been populated; Result.error, if no adequate geometry could be assigned

populateLod2MultiSurfaceOrLod0Geometry

fun AbstractThematicSurface.populateLod2MultiSurfaceOrLod0Geometry(geometryTransformer: GeometryTransformer): Result<Unit, Exception>

Receiver

Name Description
AbstractThematicSurface

Parameters

Name Description
geometryTransformer: GeometryTransformer

ReturnValue

Name Description
Result<Unit, Exception>

populateLod1MultiSurface

fun AbstractThematicSurface.populateLod1MultiSurface(geometryTransformer: GeometryTransformer): Result<Unit, Exception>

Populates the LoD1 geometry of an AbstractThematicSurface object with the source geometries of the GeometryTransformer.

Receiver

Name Description
AbstractThematicSurface

Parameters

Name Description
geometryTransformer: GeometryTransformer

source geometries

ReturnValue

Name Description
Result<Unit, Exception>

Result.success is returned, if a geometry has been populated; Result.error, if no adequate geometry could be assigned

populateLod2MultiSurface

fun AbstractThematicSurface.populateLod2MultiSurface(geometryTransformer: GeometryTransformer): Result<Unit, Exception>

Populates the LoD2 geometry of an AbstractThematicSurface object with the source geometries of the GeometryTransformer.

Receiver

Name Description
AbstractThematicSurface

Parameters

Name Description
geometryTransformer: GeometryTransformer

source geometries

ReturnValue

Name Description
Result<Unit, Exception>

Result.success is returned, if a geometry has been populated; Result.error, if no adequate geometry could be assigned

populateLod3MultiSurface

fun AbstractThematicSurface.populateLod3MultiSurface(geometryTransformer: GeometryTransformer): Result<Unit, Exception>

Populates the LoD3 geometry of an AbstractThematicSurface object with the source geometries of the GeometryTransformer.

Receiver

Name Description
AbstractThematicSurface

Parameters

Name Description
geometryTransformer: GeometryTransformer

source geometries

ReturnValue

Name Description
Result<Unit, Exception>

Result.success is returned, if a geometry has been populated; Result.error, if no adequate geometry could be assigned

toGmlTransformationMatrix4x4

fun Affine3D.toGmlTransformationMatrix4x4(): GmlTransformationMatrix4x4

Converts a GmlTransformationMatrix4x4 object from an affine matrix.

Receiver

Name Description
Affine3D

ReturnValue

Name Description
GmlTransformationMatrix4x4