All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.cesium.GroundGeometryUpdater.kt Maven / Gradle / Ivy

The newest version!
// Automatically generated - do not modify!

@file:JsModule("cesium")

@file:Suppress(
    "NON_EXTERNAL_DECLARATION_IN_INAPPROPRIATE_FILE",
)

package cesium

/**
 * An abstract class for updating ground geometry entities.
 * @see Online Documentation
 */
external class GroundGeometryUpdater(options: ConstructorOptions) {
    /**
     * @property [entity] The entity containing the geometry to be visualized.
     * @property [scene] The scene where visualization is taking place.
     * @property [geometryOptions] Options for the geometry
     * @property [geometryPropertyName] The geometry property name
     * @property [observedPropertyNames] The entity properties this geometry cares about
     */
    interface ConstructorOptions {
        var entity: Entity
        var scene: Scene
        var geometryOptions: Any
        var geometryPropertyName: String
        var observedPropertyNames: Array
    }

    /**
     * Gets the zindex
     * @see Online Documentation
     */
    val zIndex: Int

    /**
     * Destroys and resources used by the object.  Once an object is destroyed, it should not be used.
     * @see Online Documentation
     */
    fun destroy()
}

inline fun GroundGeometryUpdater(
    block: GroundGeometryUpdater.ConstructorOptions.() -> Unit,
): GroundGeometryUpdater {
    val options: GroundGeometryUpdater.ConstructorOptions = js("({})")
    block(options)
    return GroundGeometryUpdater(options)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy