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

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

// Automatically generated - do not modify!

@file:JsModule("cesium")

@file:Suppress(
    "EXTERNAL_CLASS_CONSTRUCTOR_PROPERTY_PARAMETER",
)

package cesium

/**
 * A utility object for tracking an entity with the camera.
 * @see Online Documentation
 *
 * @constructor
 * @property [entity] The entity to track with the camera.
 * @property [scene] The scene to use.
 * @property [ellipsoid] The ellipsoid to use for orienting the camera.
 *   Default value - [Ellipsoid.WGS84]
 * @see Online Documentation
 */
external class EntityView(
    var entity: Entity,
    var scene: Scene,
    var ellipsoid: Ellipsoid = definedExternally,
) {
    /**
     * The bounding sphere of the object.
     * @see Online Documentation
     */
    var boundingSphere: BoundingSphere

    /**
     * Should be called each animation frame to update the camera
     * to the latest settings.
     * @param [time] The current animation time.
     * @param [boundingSphere] bounding sphere of the object.
     * @see Online Documentation
     */
    fun update(
        time: JulianDate,
        boundingSphere: BoundingSphere? = definedExternally,
    )

    companion object {
        /**
         * Gets or sets a camera offset that will be used to
         * initialize subsequent EntityViews.
         * @see Online Documentation
         */
        var defaultOffset3D: Cartesian3
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy