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

PointPrimitiveCollection

可渲染的點(diǎn)集合。

點(diǎn)使用PointPrimitiveCollection#addPointPrimitiveCollection#remove從集合中添加和刪除。
new PointPrimitiveCollection(options)
Parameters:
options (Object)
Name Description
options.modelMatrix
Matrix4
default Matrix4.IDENTITY
將每個(gè)點(diǎn)從模型坐標(biāo)轉(zhuǎn)換為世界坐標(biāo)的4x4變換矩陣。
options.debugShowBoundingVolume
Boolean
default false
僅用于調(diào)試。確定是否顯示此基元的命令的邊界球。
options.blendOption
BlendOption
default BlendOption.OPAQUE_AND_TRANSLUCENT
點(diǎn)混合選項(xiàng)。默認(rèn)值用于渲染不透明點(diǎn)和半透明點(diǎn)。但是,如果所有點(diǎn)都是完全不透明的或都是完全半透明的,則將該技術(shù)設(shè)置為blendoption.opaque或blendoption.transparent可以將性能提高2倍。
Example
// Create a pointPrimitive collection with two points
var points = scene.primitives.add(new bmgl.PointPrimitiveCollection());
points.add({
  position : new bmgl.Cartesian3(1.0, 2.0, 3.0),
  color : bmgl.Color.YELLOW
});
points.add({
  position : new bmgl.Cartesian3(4.0, 5.0, 6.0),
  color : bmgl.Color.CYAN
});
See:

Members

blendOption : BlendOption

點(diǎn)混合選項(xiàng)。默認(rèn)值用于渲染不透明點(diǎn)和半透明點(diǎn)。但是,如果所有點(diǎn)都是完全不透明的或都是完全半透明的,則將該技術(shù)設(shè)置為blendoption.opaque或blendoption.transparent可以將性能提高2倍。
Default Value: BlendOption.OPAQUE_AND_TRANSLUCENT

debugShowBoundingVolume : Boolean

此屬性僅用于調(diào)試;它既不用于生產(chǎn),也不進(jìn)行優(yōu)化。

為基本體中的每個(gè)draw命令繪制邊界球體。

Default Value: false

length : Number

返回此集合中的點(diǎn)數(shù)。這通常與PointPrimitiveCollection#get一起用于迭代集合中的所有點(diǎn)。

modelMatrix : Matrix4

4x4變換矩陣,將集合中的每個(gè)點(diǎn)從模型坐標(biāo)轉(zhuǎn)換為世界坐標(biāo)。當(dāng)這是單位矩陣時(shí),點(diǎn)基元以世界坐標(biāo)繪制,即地球的wgs84坐標(biāo)。本地參考幀可以通過(guò)提供不同的轉(zhuǎn)換矩陣來(lái)使用,如Transforms.eastNorthUpToFixedFrame返回的轉(zhuǎn)換矩陣。
Default Value: Matrix4.IDENTITY
See:
Example:
var center = bmgl.Cartesian3.fromDegrees(-75.59777, 40.03883);
pointPrimitives.modelMatrix = bmgl.Transforms.eastNorthUpToFixedFrame(center);
pointPrimitives.add({
  color : bmgl.Color.ORANGE,
  position : new bmgl.Cartesian3(0.0, 0.0, 0.0) // center
});
pointPrimitives.add({
  color : bmgl.Color.YELLOW,
  position : new bmgl.Cartesian3(1000000.0, 0.0, 0.0) // east
});
pointPrimitives.add({
  color : bmgl.Color.GREEN,
  position : new bmgl.Cartesian3(0.0, 1000000.0, 0.0) // north
});
pointPrimitives.add({
  color : bmgl.Color.CYAN,
  position : new bmgl.Cartesian3(0.0, 0.0, 1000000.0) // up
});

Methods

add(options) → {PointPrimitive}
創(chuàng)建具有指定初始屬性的點(diǎn)并將其添加到集合中。將返回添加的點(diǎn),以便以后可以修改或從集合中刪除它。
Parameters:
options (Object) 描述點(diǎn)屬性的模板,如示例1所示。
Examples
// Example 1:  Add a point, specifying all the default values.
var p = pointPrimitives.add({
  show : true,
  position : bmgl.Cartesian3.ZERO,
  pixelSize : 10.0,
  color : bmgl.Color.WHITE,
  outlineColor : bmgl.Color.TRANSPARENT,
  outlineWidth : 0.0,
  id : undefined
});
// Example 2:  Specify only the point's cartographic position.
var p = pointPrimitives.add({
  position : bmgl.Cartesian3.fromDegrees(longitude, latitude, height)
});
Throws
  • DeveloperError : 此對(duì)象已被銷毀,即調(diào)用destroy()。
See:
contains(pointPrimitive) → {Boolean}
檢查此集合是否包含給定點(diǎn)。
Parameters:
pointPrimitive (PointPrimitive) 要檢查的點(diǎn)。
See:
destroy()
銷毀此對(duì)象持有的WebGL資源。銷毀對(duì)象允許確定地釋放WebGL資源,而不是依賴?yán)占鱽?lái)銷毀此對(duì)象。

一旦對(duì)象被破壞,就不應(yīng)使用它;調(diào)用除isDestroyed以外的任何函數(shù)都將導(dǎo)致DeveloperError異常。因此,將返回值(undefined)賦給對(duì)象,如示例中所述。
Example
pointPrimitives = pointPrimitives && pointPrimitives.destroy();
Throws
  • DeveloperError : 此對(duì)象已被銷毀,即調(diào)用destroy()。
See:
get(index) → {PointPrimitive}
返回集合中指定索引處的點(diǎn)。指數(shù)以零為基礎(chǔ),隨著點(diǎn)數(shù)的增加而增加。刪除一個(gè)點(diǎn)后,所有點(diǎn)都向左移動(dòng),更改其索引。此函數(shù)通常與PointPrimitiveCollection#length一起用于迭代集合中的所有點(diǎn)。
Parameters:
index (Number) 點(diǎn)的從零開始的索引。
Example
// Toggle the show property of every point in the collection
var len = pointPrimitives.length;
for (var i = 0; i < len; ++i) {
  var p = pointPrimitives.get(i);
  p.show = !p.show;
}
Throws
  • DeveloperError : 此對(duì)象已被銷毀,即調(diào)用destroy()。
See:
isDestroyed() → {Boolean}
如果此對(duì)象被破壞,則返回true;否則返回false。

如果此對(duì)象被破壞,則不應(yīng)使用它;調(diào)用除isDestroyed以外的任何函數(shù)將導(dǎo)致DeveloperError異常。
See:
remove(pointPrimitive) → {Boolean}
從集合中刪除一個(gè)點(diǎn)。
Parameters:
pointPrimitive (PointPrimitive) 要?jiǎng)h除的點(diǎn)。
Example
var p = pointPrimitives.add(...);
pointPrimitives.remove(p);  // Returns true
Throws
  • DeveloperError : 此對(duì)象已被銷毀,即調(diào)用destroy()。
See:
removeAll()
從集合中移除所有點(diǎn)。
Example
pointPrimitives.add(...);
pointPrimitives.add(...);
pointPrimitives.removeAll();
Throws
  • DeveloperError : 此對(duì)象已被銷毀,即調(diào)用destroy()。
See:
主站蜘蛛池模板: 成人影院在线观看免费 | 国产成人影院一区二区 | 高清一级做a爱免费视 | 15同性同志18 | 久久黄色免费 | a级特黄毛片免费观看 | 肉浦团在线观看 | 欧美视频一二三区 | 日韩成片 | 黑人好大好硬好深好爽想要h | 98色花堂永久地址国产精品 | 青青青国产成人久久111网站 | 成3d漫二区三区四区 | 九九在线精品视频 | 东北美女野外bbwbbw免费 | 国产成人精品福利色多多 | xxx美国 | 国产探花视频 | videos变态极端 | 国内免费高清视频在线观看 | 欧美日本道免费一区二区三区 | 日韩经典在线观看 | 亚洲人成网站在线观看播放青青 | 国产精品午夜国产小视频 | 精品亚洲欧美中文字幕在线看 | 5g影院天天 | 亚州一区二区 | 亚洲热在线视频 | 欧美精品国产一区二区 | 国产精品成人网红女主播 | 成人在线免费观看视频 | 久久精品国产久精国产果冻传媒 | 亚洲日本视频在线 | 美人老师沦为 | 99青青青精品视频在线 | 成年人在线观看免费视频 | 久久WWW免费人成一看片 | 日韩拍拍拍 | 网友自拍偷拍 | 日韩欧美在线观看综合网另类 | 第一次做m被调教经历 |