VectorPrimitive
Cesium v1.147 · 中文

以特定样式绘制 BufferPrimitiveCollection 中的原始元素。 由向量控件控制。多个向量控件可以绘制相同的集合。当原始元素被添加到集合中时,它们会被绘制。 collection. Vector primitives are drawn when added to Scene#primitives。

abstract new Cesium.VectorPrimitive(options)

Name Type Description
options VectorPrimitiveOptions
Experimental

This 此特性尚未确定,可能根据 Cesium 的标准弃用政策发生变化。

See:

Members

由向量控件绘制的原始元素。向量控件并不拥有该集合;销毁集合不会破坏其完整性。 own the collection; destroying it leaves the collection intact.
是否绘制该向量控件。
Default Value: true

Methods

销毁向量控件的 GPU 资源。集合本身不会被销毁。 被销毁。

isDestroyed() → boolean

如果此对象被销毁,则返回 true;否则返回 false。
Returns:
True if this object was destroyed; otherwise, false.
将视觉属性标记为“脏”,因此会重新评估每个原始元素的回调函数。 在下一帧时再次评估。否则,回调函数仅在原始元素发生变化或属性被设置时评估。因此在回调读取的数据发生变化后调用此函数。 如果原始元素发生变化或属性被赋值,则调用此函数。 返回原始元素的视觉属性值,如果是回调函数则调用它。
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.