class GeometryTransformer: Any

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

Fields

Name Description
val configuration: Roadspaces2CitygmlConfiguration

parameters for the geometry transformation, such as discretization step sizes

Constructors

<init>

constructor(configuration: Roadspaces2CitygmlConfiguration)

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

Parameters

Name Description
configuration: Roadspaces2CitygmlConfiguration

parameters for the geometry transformation, such as discretization step sizes

Methods

isSetSolid

fun isSetSolid(): this::polygonsOfSolidResult.isInitialized

ReturnValue

Name Description
this::polygonsOfSolidResult.isInitialized

isSetMultiSurface

fun isSetMultiSurface(): this::polygonsOfSurfaceResult.isInitialized

ReturnValue

Name Description
this::polygonsOfSurfaceResult.isInitialized

isSetMultiCurve

fun isSetMultiCurve(): this::multiCurveResult.isInitialized

ReturnValue

Name Description
this::multiCurveResult.isInitialized

isSetPoint

fun isSetPoint(): this::pointResult.isInitialized

ReturnValue

Name Description
this::pointResult.isInitialized

isSetImplicitGeometry

fun isSetImplicitGeometry(): isSetPoint()

ReturnValue

Name Description
isSetPoint()

isSetRotation

fun isSetRotation(): this::rotation.isInitialized

ReturnValue

Name Description
this::rotation.isInitialized

isSetHeight

fun isSetHeight(): !height.isNaN()

ReturnValue

Name Description
!height.isNaN()

isSetDiameter

fun isSetDiameter(): !diameter.isNaN()

ReturnValue

Name Description
!diameter.isNaN()

getSolid

fun getSolid(): Result<SolidProperty, Exception>

Returns the result of the created solid geometry. If no solid geometry is available, an IllegalStateException is thrown.

ReturnValue

Name Description
Result<SolidProperty, Exception>

getMultiSurface

fun getMultiSurface(): Result<MultiSurfaceProperty, Exception>

Returns the result of the created multi surface geometry. If no multi surface geometry is available, an IllegalStateException is thrown.

ReturnValue

Name Description
Result<MultiSurfaceProperty, Exception>

getMultiCurve

fun getMultiCurve(): Result<MultiCurveProperty, Exception>

Returns the result of the created multi curve geometry. If no multi curve geometry is available, an IllegalStateException is thrown.

ReturnValue

Name Description
Result<MultiCurveProperty, Exception>

getPoint

fun getPoint(): Result<PointProperty, Exception>

Returns the result of the created point geometry. If no point geometry is available, an IllegalStateException is thrown.

ReturnValue

Name Description
Result<PointProperty, Exception>

getRotation

fun getRotation(): Result<Rotation3D, IllegalStateException>

Returns the result of the rotation. If no rotation value is available, an IllegalStateException is thrown.

ReturnValue

Name Description
Result<Rotation3D, IllegalStateException>

getHeight

fun getHeight(): Result<Double, IllegalStateException>

Returns the result of the height value. If no height value is available, an IllegalStateException is thrown.

ReturnValue

Name Description
Result<Double, IllegalStateException>

getDiameter

fun getDiameter(): Result<Double, IllegalStateException>

Returns the result of the diameter value. If no diameter value is available, an IllegalStateException is thrown.

ReturnValue

Name Description
Result<Double, IllegalStateException>

getImplicitGeometry

fun getImplicitGeometry(): Result<ImplicitGeometryProperty, Exception>

Returns the result of the created implicit geometry. If no implicit geometry is available, an IllegalStateException is thrown.

ReturnValue

Name Description
Result<ImplicitGeometryProperty, Exception>

getSolidCutoutOrSurface

fun getSolidCutoutOrSurface(vararg solidFaceSelection: FaceType): Result<MultiSurfaceProperty, IllegalStateException>

Returns either a cutout of a solid geometry (if it exists) or a MultiSurfaceProperty itself (if it exists).

Parameters

Name Description
vararg solidFaceSelection: FaceType

list of FaceType to be cutout of a solid geometry

ReturnValue

Name Description
Result<MultiSurfaceProperty, IllegalStateException>

cutout of a solid geometry or a MultiSurfaceProperty

getSolidCutout

fun getSolidCutout(vararg faceSelection: FaceType): Result<MultiSurfaceProperty, Exception>

Returns a MultiSurfaceProperty constructed of a solid's polygons which have been filtered by FaceType.

Parameters

Name Description
vararg faceSelection: FaceType

list of relevant FaceType

ReturnValue

Name Description
Result<MultiSurfaceProperty, Exception>

MultiSurfaceProperty of selected polygons from a solid geometry

visit

fun visit(vector3D: Vector3D)

Parameters

Name Description
vector3D: Vector3D

ReturnValue

Name Description
Unit

visit

fun visit(abstractCurve3D: AbstractCurve3D)

Parameters

Name Description
abstractCurve3D: AbstractCurve3D

ReturnValue

Name Description
Unit

visit

fun visit(abstractSurface3D: AbstractSurface3D)

Parameters

Name Description
abstractSurface3D: AbstractSurface3D

ReturnValue

Name Description
Unit

visit

fun visit(circle3D: Circle3D)

Parameters

Name Description
circle3D: Circle3D

ReturnValue

Name Description
Unit

visit

fun visit(parametricBoundedSurface3D: ParametricBoundedSurface3D)

Parameters

Name Description
parametricBoundedSurface3D: ParametricBoundedSurface3D

ReturnValue

Name Description
Unit

visit

fun visit(abstractSolid3D: AbstractSolid3D)

Parameters

Name Description
abstractSolid3D: AbstractSolid3D

ReturnValue

Name Description
Unit

visit

fun visit(cylinder3D: Cylinder3D)

Parameters

Name Description
cylinder3D: Cylinder3D

ReturnValue

Name Description
Unit

visit

fun visit(parametricSweep3D: ParametricSweep3D)

Parameters

Name Description
parametricSweep3D: ParametricSweep3D

ReturnValue

Name Description
Unit

visit

fun visit(abstractGeometry3D: AbstractGeometry3D)

Parameters

Name Description
abstractGeometry3D: AbstractGeometry3D

ReturnValue

Name Description
Unit

CompanionObject

GeometryTransformer

class GeometryTransformer: Any

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

Methods

of

fun of(roadspaceObject: RoadspaceObject, configuration: Roadspaces2CitygmlConfiguration): GeometryTransformer

Parameters

Name Description
roadspaceObject: RoadspaceObject
configuration: Roadspaces2CitygmlConfiguration

ReturnValue

Name Description
GeometryTransformer