M3D / M3D / Animation / PlayBeginCB
Class: PlayBeginCB
Memberof
M3D.Animation
Description
开始播放回调
Author
YF
Hierarchy
-
↳
PlayBeginCB
Table of contents
Constructors
Properties
Methods
- execute
- getEvents
- getId
- getLineVertexAndIndex
- getModelBoundingBoxCenter
- onExecute
- onExecuteFun
- registerEvent
- removeEvent
- setActionFun
- setId
- showAniTrochoid
Constructors
constructor
• new PlayBeginCB(): PlayBeginCB
Returns
Description
构造函数
Inherited from
Properties
functor
• functor: function_buffer
Inherited from
id
• id: number
Inherited from
count
▪ Static count: number
Inherited from
Methods
execute
▸ execute(): ActionState
Returns
Description
执行Action
Inherited from
getEvents
▸ getEvents(): M3DEvent[]
Returns
M3DEvent[]
Description
获得事件列表
Inherited from
getId
▸ getId(): number
Returns
number
Description
获取id
Inherited from
getLineVertexAndIndex
▸ getLineVertexAndIndex(pAnimation, oVecLineVertex, oVecLineIndex): void
Parameters
| Name | Type |
|---|---|
pAnimation | Animation |
oVecLineVertex | Vector3[] |
oVecLineIndex | any[] |
Returns
void
Deprecated
Description
获取动画的所有顶点及索引值
Memberof
PlayBeginCB
getModelBoundingBoxCenter
▸ getModelBoundingBoxCenter(model): Vector3
Parameters
| Name | Type | Description |
|---|---|---|
model | Model | 模型 |
Returns
Description
获取模型包围盒中心点
Memberof
AniCallbackFun
Inherited from
AniCallbackFun.getModelBoundingBoxCenter
onExecute
▸ onExecute(parameter1?, parameter2?, parameter3?, parameter4?, parameter5?): ActionState
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
parameter1? | any | null | 参数1 |
parameter2? | any | null | 参数2 |
parameter3? | any | null | 参数3 |
parameter4? | any | null | 参数4 |
parameter5? | any | null | 参数5 |
Returns
Description
执行动画动作
Memberof
AniCallbackFun
Inherited from
onExecuteFun
▸ onExecuteFun(parameter1?, parameter2?, parameter3?, parameter4?, parameter5?): void
Parameters
| Name | Type | Default value |
|---|---|---|
parameter1 | any | null |
parameter2 | any | null |
parameter3 | any | null |
parameter4 | any | null |
parameter5 | any | null |