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

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

// Automatically generated - do not modify!

@file:Suppress(
    "EXTERNAL_CLASS_CONSTRUCTOR_PROPERTY_PARAMETER",
)

package cesium

/**
 * A [Property] whose value is an array whose items are the computed value
 * of other PositionProperty instances.
 * @see Online Documentation
 *
 * @constructor
 * @param [value] An array of Property instances.
 * @property [referenceFrame] The reference frame in which the position is defined.
 *   Default value - [ReferenceFrame.FIXED]
 * @see Online Documentation
 */
@JsName("\$cesium__PositionPropertyArray")
external class PositionPropertyArray(
    value: Array? = definedExternally,
    var referenceFrame: ReferenceFrame = definedExternally,
) {
    /**
     * Gets a value indicating if this property is constant.  This property
     * is considered constant if all property items in the array are constant.
     * @see Online Documentation
     */
    val isConstant: Boolean

    /**
     * Gets the event that is raised whenever the definition of this property changes.
     * The definition is changed whenever setValue is called with data different
     * than the current value or one of the properties in the array also changes.
     * @see Online Documentation
     */
    val definitionChanged: Event

    /**
     * Gets the value of the property.
     * @param [time] The time for which to retrieve the value.
     * @param [result] The object to store the value into, if omitted, a new instance is created and returned.
     * @return The modified result parameter or a new instance if the result parameter was not supplied.
     * @see Online Documentation
     */
    fun getValue(
        time: JulianDate,
        result: Array? = definedExternally,
    ): Array

    /**
     * Gets the value of the property at the provided time and in the provided reference frame.
     * @param [time] The time for which to retrieve the value.
     * @param [referenceFrame] The desired referenceFrame of the result.
     * @param [result] The object to store the value into, if omitted, a new instance is created and returned.
     * @return The modified result parameter or a new instance if the result parameter was not supplied.
     * @see Online Documentation
     */
    fun getValueInReferenceFrame(
        time: JulianDate,
        referenceFrame: ReferenceFrame,
        result: Array? = definedExternally,
    ): Array

    /**
     * Sets the value of the property.
     * @param [value] An array of Property instances.
     * @see Online Documentation
     */
    fun setValue(value: Array)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy