ht.graph3d.DefaultInteractor(g3d)

new DefaultInteractor(g3d)

Parameters:
Name Type Description
g3d ht.graph3d.Graph3dView

场景

Extends

Members

g3d :ht.graph3d.Graph3dView

Inherited From:

gv :ht.graph3d.Graph3dView

Inherited From:

Methods

addListeners() → {void}

添加事件监听
交互器遍历自身的 handle_xxx 函数,如果发现 xxx 匹配某种事件类型,会增加相应的事件监听
例如:
handle_keydown keydown 事件处理函数

Returns:
void
Inherited From:

fi(event) → {void}

派发交互器事件

Parameters:
Name Type Description
event any
Returns:
void
Inherited From:

getClass() → {function}

获取类声明(构造函数)

Returns:
function
Inherited From:

getClassName() → {string}

获取类全名

Returns:
string
Inherited From:

getSuperClass() → {function}

获取父类声明(构造函数),继承类时可以用来调用父类构造或函数

Returns:
function -

父类声明(构造函数)

Inherited From:

getView() → {HTMLDivElement}

获取拓扑组件的根层div

Returns:
HTMLDivElement
Inherited From:

removeListeners() → {void}

移除事件监听

Returns:
void
Inherited From:

setUp() → {void}

安装函数

Returns:
void
Inherited From:

startDragging(event) → {void}

开始拖拽

Parameters:
Name Type Description
event Event
Returns:
void
Inherited From:

tearDown() → {void}

卸载函数

Returns:
void
Inherited From: