DebugModelMatrixPrimitive

new Cesium.DebugModelMatrixPrimitive(options)

绘制由转换为世界的矩阵定义的参考坐标系的轴 坐标,即地球的WGS84坐标。最突出的例子是 原语modelMatrix

The X axis is red; Y is green; and Z is blue.

This is for debugging only; it is not optimized for production use.

Name Type Description
options Object optional 具有以下属性的对象:
Name Type Default Description
length Number 10000000.0 optional 轴的长度,以米为单位。
width Number 2.0 optional 轴的宽度(以像素为单位)。
modelMatrix Matrix4 Matrix4.IDENTITY optional 定义参考坐标系(即原点加坐标轴)的4x4矩阵。
show Boolean true optional 确定是否显示此原语。
id Object optional 使用Scene#pick选择实例时要返回的用户定义对象
Example:
primitives.add(new Cesium.DebugModelMatrixPrimitive({
  modelMatrix : primitive.modelMatrix,  // primitive to debug
  length : 100000.0,
  width : 10.0
}));

Members

拾取基元时返回的用户定义值。
Default Value: undefined
See:
轴的长度,以米为单位。
Default Value: 10000000.0
定义参考坐标系(即原点加坐标轴)的4x4矩阵。
Default Value: Matrix4.IDENTITY
确定是否显示此基本体。
Default Value: true
轴的宽度(以像素为单位)。
Default Value: 2.0

Methods

销毁此对象持有的WebGL资源。销毁一个对象允许确定性 释放WebGL资源,而不是依赖垃圾回收器销毁此对象。

Once an object is destroyed, it should not be used; calling any function other than isDestroyed will result in a DeveloperError exception. Therefore, assign the return value (undefined) to the object as done in the example.

Throws:
Example:
p = p && p.destroy();
See:

isDestroyed()Boolean

如果此对象已销毁,则返回true;否则返回false。

If this object was destroyed, it should not be used; calling any function other than isDestroyed will result in a DeveloperError exception.

Returns:
如果此对象被销毁,则为true;否则为false
See: