亚洲动漫在线观看-亚洲动漫第一页-亚洲丁香婷婷-亚洲丶国产丶欧美一区二区三区-亚洲第一综合网站-亚洲第一永久色

ReferenceProperty

AProperty透明地鏈接到所提供對(duì)象上的另一個(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)識(shí)符或任何子屬性包含#。或者他們必須逃跑。
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) 將值存儲(chǔ)到的對(duì)象(如果省略),將創(chuàng)建并返回新實(shí)例。
getValueInReferenceFrame(time, referenceFrame, result) → {Cartesian3}
在提供的時(shí)間和提供的引用框架中獲取屬性的值。只有被引用的屬性是aPositionProperty時(shí),此方法才有效。
Parameters:
time (JulianDate) 檢索值的時(shí)間。
referenceFrame (ReferenceFrame) 所需的結(jié)果參考框架。
result (Cartesian3) 將值存儲(chǔ)到的對(duì)象(如果省略),將創(chuàng)建并返回新實(shí)例。
主站蜘蛛池模板: 4hc44四虎永久地址链接 | 99re8在线精品视频免费播放 | 青草热久精品视频在线观看 | 2015台湾永久免费平台 | www.亚洲视频 | 五月性| 久久受www免费人成_看片中文 | 久久中文字幕亚洲精品最新 | 国产重口老太伦 | 性美国人xxxxx18 | 免费xxxx日本大片在线观看 | 美女下面揉出水免费视频 | 草草影院在线 | 3d蒂法精品啪啪一区二区免费 | 亚洲欧美优优色在线影院 | 免费人成网址在线观看国内 | 大杳蕉在线影院在线播放 | 亚洲国产在线观看免费视频 | 精品欧美一区二区在线观看欧美熟 | 亚洲国产自拍在线 | www.福利 | 美女逼逼软件 | 国产成人h视频在线播放网站 | tk白嫩玉足脚心vk | 亚洲国产精品成人午夜在线观看 | 热99精品 | 男女一级簧色带 | 国产精品久久久久久影院 | 青草青青在线 | 亚洲尿尿 | 日产精品一二三四区国产 | 国产91页 | 国产一区精品视频 | 免费日批| 日韩永久在线观看免费视频 | 日本mv精品中文字幕 | 日本大乳护士的引诱图片 | 国产精品毛片高清在线完整版 | 亚洲精品国产AV成人毛片 | 男人狂躁女人下面狂叫图片 | 久久久久青草大香线综合精品 |