Appearance
KBE3D / KBCore / Cesium / ConstantProperty
类: ConstantProperty
A Property whose value does not change with respect to simulation time.
参数
The property value.
属性
isConstant
readonlyisConstant:boolean
Gets a value indicating if this property is constant. This property always returns <code>true</code>.
definitionChanged
readonlydefinitionChanged:Event
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.
方法
getValue()
getValue(
time?:JulianDate,result?:any):any
Gets the value of the property.
参数
time?
The time for which to retrieve the value. This parameter is unused since the value does not change with respect to time.
result?
any
The object to store the value into, if omitted, a new instance is created and returned.
返回
any
The modified result parameter or a new instance if the result parameter was not supplied.
setValue()
setValue(
value:any):void
Sets the value of the property.
参数
value
any
The property value.
返回
void
equals()
equals(
other?:Property):boolean
Compares this property to the provided property and returns <code>true</code> if they are equal, <code>false</code> otherwise.
参数
other?
The other property.
返回
boolean
true if left and right are equal, false otherwise.
valueOf()
valueOf():
any
Gets this property's value.
返回
any
This property's value.
toString()
toString():
string
Creates a string representing this property's value.
返回
string
A string representing the property's value.
构造函数
构造函数
new ConstantProperty(
value?:any):ConstantProperty
参数
value?
any
返回
ConstantProperty
