婷婷久久网-婷婷久久久久-婷婷久久久-婷婷久-国产微拍精品一区-国产网址在线观看

ReferenceProperty

AProperty透明地鏈接到所提供對象上的另一個(gè)屬性。
new ReferenceProperty(targetCollection, targetId, targetPropertyNames)
Parameters:
targetCollection (EntityCollection) 將用于解析引用的實(shí)體集合。
targetId (String) 正在引用的實(shí)體的ID。
targetPropertyNames (Array.<String>) 目標(biāo)實(shí)體上要使用的屬性的名稱。
Example
var collection = new bmgl.EntityCollection();

//Create a new entity and assign a billboard scale.
var object1 = new bmgl.Entity({id:'object1'});
object1.billboard = new bmgl.BillboardGraphics();
object1.billboard.scale = new bmgl.ConstantProperty(2.0);
collection.add(object1);

//Create a second entity and reference the scale from the first one.
var object2 = new bmgl.Entity({id:'object2'});
object2.model = new bmgl.ModelGraphics();
object2.model.scale = new bmgl.ReferenceProperty(collection, 'object1', ['billboard', 'scale']);
collection.add(object2);

//Create a third object, but use the fromString helper function.
var object3 = new bmgl.Entity({id:'object3'});
object3.billboard = new bmgl.BillboardGraphics();
object3.billboard.scale = bmgl.ReferenceProperty.fromString(collection, 'object1#billboard.scale');
collection.add(object3);

//You can refer to an entity with a # or . in id and property names by escaping them.
var object4 = new bmgl.Entity({id:'#object.4'});
object4.billboard = new bmgl.BillboardGraphics();
object4.billboard.scale = new bmgl.ConstantProperty(2.0);
collection.add(object4);

var object5 = new bmgl.Entity({id:'object5'});
object5.billboard = new bmgl.BillboardGraphics();
object5.billboard.scale = bmgl.ReferenceProperty.fromString(collection, '\\#object\\.4#billboard.scale');
collection.add(object5);

Members

(readonly) definitionChanged : Event

獲取每當(dāng)此屬性的定義更改時(shí)引發(fā)的事件。只要被引用屬性的定義被更改,定義就會(huì)被更改。

(readonly) isConstant : Boolean

獲取一個(gè)值,該值指示此屬性是否為常量。

(readonly) referenceFrame : ReferenceFrame

獲取在其中定義位置的引用框架。僅當(dāng)引用的屬性為PositionProperty時(shí),此屬性才有效。

(readonly) resolvedProperty : Property

獲取基礎(chǔ)引用屬性的已解析實(shí)例。

(readonly) targetCollection : EntityCollection

獲取包含正在引用的實(shí)體的集合。

(readonly) targetId : String

獲取被引用實(shí)體的ID。

(readonly) targetPropertyNames : Array.<String>

獲取用于檢索引用屬性的屬性名數(shù)組。

Methods

(static) fromString(targetCollection, referenceString) → {ReferenceProperty}
為將用于解析的實(shí)體集合和指示目標(biāo)實(shí)體ID和屬性的字符串創(chuàng)建一個(gè)新實(shí)例。字符串的格式是“objectid#foo.bar”,其中#將ID與屬性路徑和分隔開。分離子屬性。如果引用標(biāo)識符或任何子屬性包含#。或者他們必須逃跑。
Parameters:
targetCollection (EntityCollection)
referenceString (String)
Throws
equals(other) → {Boolean}
將此屬性與提供的屬性進(jìn)行比較,如果相等,則返回true,否則返回false
Parameters:
other (Property) 其他財(cái)產(chǎn)。
getType(time) → {String}
在提供的時(shí)間獲取Material類型。只有被引用的屬性是aMaterialProperty時(shí),此方法才有效。
Parameters:
time (JulianDate) 檢索類型的時(shí)間。
getValue(time, result) → {Object}
獲取所提供時(shí)間的屬性值。
Parameters:
time (JulianDate) 檢索值的時(shí)間。
result (Object) 將值存儲到的對象(如果省略),將創(chuàng)建并返回新實(shí)例。
getValueInReferenceFrame(time, referenceFrame, result) → {Cartesian3}
在提供的時(shí)間和提供的引用框架中獲取屬性的值。只有被引用的屬性是aPositionProperty時(shí),此方法才有效。
Parameters:
time (JulianDate) 檢索值的時(shí)間。
referenceFrame (ReferenceFrame) 所需的結(jié)果參考框架。
result (Cartesian3) 將值存儲到的對象(如果省略),將創(chuàng)建并返回新實(shí)例。
主站蜘蛛池模板: 彭丹主演的经典电影| 小贝流浪记动画片全集| 妈妈写给叛逆儿子的信看哭孩子| 欧美video丝袜连裤袜| 狂野殴美激情性bbbbbb| 暗夜与黎明电视连续剧| 1024电影| 大胆艺术| 爱情陷阱| 内蒙古电视台节目表| 隐形变异作风问题清单及整改措施| 黑帮大佬365日| 早晚体重一样说明瘦了| 雪山飞狐之塞北宝藏演员表| 白上关花电影在线观看免费| ss培养基| 电影在线观看免费完整高清网站| 王渝萱主演的电影大全| 王梦婷| 泰诺对乙酰氨基酚缓释片说明书| 同志微电影| 八哥疯玩院| 祈今朝电视剧免费观看影视大全| 电影《此时此刻》| 1到100数字表图片| 我和我的| 加入民盟的好处和坏处| 曹查理林雅诗电影全集| 少妇av网站| 五年级上册学法大视野答案| 七龙珠2| 假男假女| 真实游戏完整版高清观看| 3片| 纵横欲海| 财税2010121号原文| 白上之黑电影高清完整版在线观看| 婷婷sese| 春天的芭蕾歌词| 魔镜电影免费观看完整版高清| 巴黎最后的探戈|