websceneSunLighting
太阳光照对象,是Web场景环境的一部分,包含场景视图如何被太阳照亮的相关信息。
关系
Extends
websceneSunLighting Extends Accessor
继承: Accessor
构造函数
websceneSunLighting
太阳光照对象,是Web场景环境的一部分,包含场景视图如何被太阳照亮的相关信息。
new websceneSunLighting(properties?)
参数
- properties?:
websceneSunLightingProperties
返回:websceneSunLighting websceneSunLighting对象
属性
declaredClass
声明的类名
declaredClass: string
类型: string
destroyed
指示对象是否已被销毁
destroyed: boolean
类型: boolean
directShadowsEnabled
指示是否显示太阳投射的阴影。
directShadowsEnabled: boolean
类型: boolean
displayUTCOffset
在用户界面中显示日期时应使用的UTC时区偏移量(小时)。
displayUTCOffset: number
类型: number
initialized
指示对象是否已初始化
initialized: boolean
类型: boolean
type
指示光源是模拟的太阳位置。
type: "sun"
类型: "sun"
访问器
date
模拟太阳的当前日期和时间。
get date(): Date
返回: Date 模拟太阳的当前日期和时间。
方法
addHandles
添加事件句柄到指定组
addHandles(handles, groupKey?): void
返回:void
clone
创建此对象的深度克隆。
clone(): websceneSunLighting
返回:websceneSunLighting
destroy
销毁对象实例
destroy(): void
返回:void
hasHandles
检查是否存在指定组的句柄
hasHandles(groupKey?): boolean
参数
- groupKey?:
Exclude<T> 组标识键
返回:boolean
removeHandles
移除指定组的所有句柄
removeHandles(groupKey?): void
参数
- groupKey?:
Exclude<T> 组标识键,如果不指定则移除默认组的句柄
返回:void
set
设置单个属性值
set(propertyName, value): this
参数
propertyName:
stringT属性名称 ###### value 属性值
返回:this
watch
监听属性变化
watch(path, callback, sync?): WatchHandle
参数
- path:
string|string要监听的属性路径,可以是字符串或字符串数组 - callback:
WatchCallback属性变化时的回调函数 - sync?:
boolean是否同步执行回调,默认为false
返回:WatchHandle

BIMFlux AI
