@JsType(isNative=true, namespace="Cesium", name="ReferenceProperty") public class ReferenceProperty extends Property
Constructor and Description |
---|
ReferenceProperty(EntityCollection targetCollection,
String targetId,
String[] targetPropertyNames)
A Property which transparently links to another property on a provided object.
|
Modifier and Type | Method and Description |
---|---|
Event |
definitionChanged()
Gets the event that is raised whenever the definition of this property changes.
|
boolean |
equals(Property other)
Compares this property to the provided property and returns true if they are equal, false otherwise.
|
ReferenceProperty |
fromString(EntityCollection targetCollection,
String referenceString)
Creates a new instance given the entity collection that will be used to resolve it and a string indicating the
target entity id and property.
|
String |
getType(JulianDate time)
Gets the Material type at the provided time.
|
Object |
getValue(JulianDate time)
Gets the value of the property at the provided time.
|
Object |
getValue(JulianDate time,
Object result)
Gets the value of the property at the provided time.
|
Cartesian3 |
getValueInReferenceFrame(JulianDate time,
Integer referenceFrame)
Gets the value of the property at the provided time and in the provided reference frame.
|
Cartesian3 |
getValueInReferenceFrame(JulianDate time,
Integer referenceFrame,
Cartesian3 result)
Gets the value of the property at the provided time and in the provided reference frame.
|
boolean |
isConstant()
Gets a value indicating if this property is constant.
|
Integer |
referenceFrame()
Gets the reference frame that the position is defined in.
|
Property |
resolvedProperty()
Gets the resolved instance of the underlying referenced property.
|
EntityCollection |
targetCollection()
Gets the collection containing the entity being referenced.
|
String |
targetId()
Gets the id of the entity being referenced.
|
String[] |
targetPropertyNames()
Gets the array of property names used to retrieve the referenced property.
|
getValueOrUndefined
@JsConstructor public ReferenceProperty(EntityCollection targetCollection, String targetId, String[] targetPropertyNames)
targetCollection
- The entity collection which will be used to resolve the reference.targetId
- The id of the entity which is being referenced.targetPropertyNames
- The names of the property on the target entity which we will use.@JsProperty(name="definitionChanged") public Event definitionChanged()
definitionChanged
in class Property
@JsProperty(name="isConstant") public boolean isConstant()
isConstant
in class Property
@JsProperty(name="referenceFrame") public Integer referenceFrame()
@JsProperty(name="resolvedProperty") public Property resolvedProperty()
@JsProperty(name="targetCollection") public EntityCollection targetCollection()
@JsProperty(name="targetId") public String targetId()
@JsProperty(name="targetPropertyNames") public String[] targetPropertyNames()
@JsMethod public ReferenceProperty fromString(EntityCollection targetCollection, String referenceString)
targetCollection
- referenceString
- @JsMethod public boolean equals(Property other)
@JsMethod public String getType(JulianDate time)
time
- The time for which to retrieve the type.@JsMethod public Object getValue(JulianDate time)
@JsMethod public Object getValue(JulianDate time, Object result)
@JsMethod public Cartesian3 getValueInReferenceFrame(JulianDate time, Integer referenceFrame)
time
- The time for which to retrieve the value.referenceFrame
- ReferenceFrame
The desired referenceFrame of the result.@JsMethod public Cartesian3 getValueInReferenceFrame(JulianDate time, Integer referenceFrame, Cartesian3 result)
time
- The time for which to retrieve the value.referenceFrame
- ReferenceFrame
The desired referenceFrame of the result.result
- The object to store the value into, if omitted, a new instance is created and returned.Copyright © 2019. All rights reserved.