CallbackPositionProperty

external class CallbackPositionProperty(callback: CallbackPositionProperty, val isConstant: Boolean, var referenceFrame: ReferenceFrame = definedExternally)(source)

A PositionProperty whose value is lazily evaluated by a callback function.

Parameters

callback

The function to be called when the position property is evaluated.

See also

Constructors

Link copied to clipboard
constructor(callback: CallbackPositionProperty, isConstant: Boolean, referenceFrame: ReferenceFrame = definedExternally)

Properties

Link copied to clipboard

Gets the event that is raised whenever the definition of this property changes. The definition is considered to have changed if a call to getValue would return a different result for the same time.

Link copied to clipboard

true when the callback function returns the same value every time, false if the value will change.

Link copied to clipboard

The reference frame in which the position is defined. Default value - ReferenceFrame.FIXED

Functions

Link copied to clipboard
fun getValue(time: JulianDate? = definedExternally, result: Cartesian3? = definedExternally): Cartesian3?

Gets the value of the property at the provided time in the fixed frame.

Link copied to clipboard
fun getValueInReferenceFrame(time: JulianDate, referenceFrame: ReferenceFrame, result: Cartesian3? = definedExternally): Cartesian3?

Gets the value of the property at the provided time and in the provided reference frame.

Link copied to clipboard
fun setCallback(callback: CallbackPositionProperty, isConstant: Boolean)

Sets the callback to be used.