Class: VoxelEntity

ov. VoxelEntity

new ov.VoxelEntity()

webgl/module/voxelModule/ov-Voxel.js, line 85

Voxel實體。

Methods

addSectionPlane(param){ov.VoxelSectionPlane}

webgl/module/voxelModule/ov-Voxel.js, line 166

新增一個Voxel裁切面。

Name Type Description
param object

參數。

Name Type Default Description
point GeoPoint

原點,相對於Voxel實體

tilt number 0 optional

傾角。

orientation number 0 optional

方位角。

Returns:
Type Description
ov.VoxelSectionPlane

addSlice(param){ov.VoxelSlice|null}

webgl/module/voxelModule/ov-Voxel.js, line 186

新增一個Voxel裁切體。(上限8個,到達上限則回傳null)

Name Type Description
param object

參數。

Name Type Default Description
point GeoPoint

原點,相對於Voxel實體

tilt number 0 optional

傾角。

orientation number 0 optional

方位角。

Returns:
Type Description
ov.VoxelSlice | null

goto()

webgl/module/voxelModule/ov-Voxel.js, line 139

前往該Voxel實體所在地。

removeSectionPlane(plane)

webgl/module/voxelModule/ov-Voxel.js, line 174

移除一個Voxel裁切面。

Name Type Description
plane ov.VoxelSectionPlane

Voxel裁切面。

removeSlice(slice)

webgl/module/voxelModule/ov-Voxel.js, line 198

移除一個Voxel裁切體。

Name Type Description
slice ov.VoxelSlice

Voxel裁切體。

setOnClickEntity(callback)

webgl/module/voxelModule/ov-Voxel.js, line 126

設定此實體裁切面被點即時的回呼。

Name Type Description
callback ov.VoxelEntity~setOnClickEntityCallback

裁切面被點即時的回呼。

update(param)

webgl/module/voxelModule/ov-Voxel.js, line 148

更新參數。

Name Type Description
param object

參數。

See:

Type Definitions

setOnClickEntityCallback(value, pos)

webgl/module/voxelModule/ov-Voxel.js, line 129
Name Type Description
value number

數值。

pos GeoPoint

滑鼠坐標。

See: