Class: Moon

Moon

new Moon()

绘制三维月球。

Name Type Default Description
options.show Boolean true 可选

确定是否渲染月球。

options.textureUrl String buildModuleUrl('Assets/Textures/moonSmall.jpg') 可选

月球的纹理。

options.ellipsoid Ellipsoid Ellipsoid.MOON 可选

月球椭球体。

options.onlySunLighting Boolean true 可选

将太阳作为唯一的光源。

See:
Example
scene.moon = new SuperMap3D.Moon();

Members

readonly ellipsoidEllipsoid

获取确定月球形状的椭球体。

Default Value:
Ellipsoid.MOON

onlySunLightingBoolean

将太阳作为唯一的光源。

Default Value:
true

showBoolean

确定是否显示月球。

Default Value:
true

textureUrlString

月球的纹理。

Default Value:
buildModuleUrl('Assets/Textures/moonSmall.jpg')

Methods

destroy(){undefined}

销毁该对象持有的 WebGL 资源。销毁对象可以确定性地释放 WebGL 资源,而不是依赖垃圾回收器来销毁该对象。

一旦对象被销毁,就不得再使用;调用 isDestroyed 以外的任何函数都将导致 DeveloperError 异常。 因此,请按照示例中的方法将返回值(undefined)赋值给对象。

See:
Throws:

该对象已被销毁,即 destroy() 被调用。

Type
DeveloperError
Returns:
Type Description
undefined
Example
moon = moon && moon.destroy();

isDestroyed(){Boolean}

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

如果该对象已被销毁,则不应使用;调用 isDestroyed 以外的任何函数都将导致 DeveloperError 异常。

See:
Returns:
Type Description
Boolean 如果该对象已被销毁,则为 true;否则为 false。