PrismPoint

.Anchor. PrismPoint

棱锥锚点类,用于创建单个棱锥锚点,并进行相关设置操作

Constructor

new Glodon.Bimface.Plugins.Anchor.PrismPoint(prismPointConfig)

Parameters:
Name Type Description
prismPointConfig Glodon.Bimface.Plugins.Anchor.PrismPointConfig

构造棱锥锚点对象

Methods

getColor()

获取棱锥锚点面颜色

Returns:
Type Description
Glodon.Web.Graphics.Color

棱锥锚点面颜色

getDuration()

获取棱锥锚点悬浮动画循环一次的时间

Returns:
Type Description
Number

棱锥锚点悬浮动画循环一次的时间

getId()

获取棱锥锚点对象ID

Returns:
Type Description
String

棱锥锚点对象ID

getPosition()

获取棱锥锚点位置

Returns:
Type Description
Object

棱锥锚点位置

getSize()

获取棱锥锚点大小

Returns:
Type Description
Number

棱锥锚点大小

getWireframeColor()

获取棱锥锚点线框颜色

Returns:
Type Description
Glodon.Web.Graphics.Color

棱锥锚点线框颜色

onClick(callback)

棱锥锚点对象的点击事件

Parameters:
Name Type Description
callback function

棱锥锚点对象点击事件的回调函数

onHover(callback)

棱锥锚点对象的悬浮事件

Parameters:
Name Type Description
callback function

棱锥锚点对象悬浮事件的回调函数

setColor(color)

设置棱锥锚点面颜色

Parameters:
Name Type Description
color Glodon.Web.Graphics.Color

棱锥锚点面颜色

setDuration(duration)

设置棱锥锚点悬浮动画循环一次的时间

Parameters:
Name Type Description
duration Number

棱锥锚点悬浮动画循环一次的时间

setPosition(position)

设置棱锥锚点位置

Parameters:
Name Type Description
position Object

棱锥锚点位置

setSize(size)

设置棱锥锚点大小

Parameters:
Name Type Description
size Number

棱锥锚点大小

setWireframeColor(wireframeColor)

设置棱锥锚点线框颜色

Parameters:
Name Type Description
wireframeColor Glodon.Web.Graphics.Color

棱锥锚点线框颜色

update()

更新容器内的三维锚点对象