跳到主要内容
版本:v10.0

M3D / M3D / Animation / AnimationPlayApi

Class: AnimationPlayApi

M3D.Animation.AnimationPlayApi

Memberof

M3D.Animation

Description

动画播放接口

Author

YF

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new AnimationPlayApi(): AnimationPlayApi

Returns

AnimationPlayApi

Memberof

AnimationPlayApi

Properties

bCollisionInited

bCollisionInited: boolean

Description

干涉数据是否已经被初始化标志

Memberof

AnimationPlayApi


bCollisionInterruptFlg

bCollisionInterruptFlg: boolean

Description

是否命令干涉检查标志

Memberof

AnimationPlayApi


cameraMtx

cameraMtx: number[][]

Description

摄像机的矩阵,播放摄像机时将摄像机的位置先存入该变量,当位置、方向、缩放比例插值计算都完成时,一些设置到摄像机中

Memberof

AnimationPlayApi


clipNormal

clipNormal: Vector3

Description

剖面的法向

Memberof

AnimationPlayApi


clipPos

clipPos: number[]

Description

剖面的位置

Memberof

AnimationPlayApi


clipVisible

clipVisible: boolean

Description

剖面的显示隐藏状态

Memberof

AnimationPlayApi


pAnimationPlayCBList

pAnimationPlayCBList: AnimationPlayCBList

Description

附加的动画播放回调函数,要标准动画播放回调函数中,有些模块的内容不可访问,可以在各个模块注册与自己模块相关的动画播放回调函数

Memberof

AnimationPlayApi

Methods

calculatelRotationMtx

calculatelRotationMtx(plcIdPath, fPivot, fMtxAA): void

Parameters

NameType
plcIdPathstring
fPivotnumber[]
fMtxAAnumber[][]

Returns

void


calculatelTanslationMtx

calculatelTanslationMtx(plcIdPath, fPivot, fMtxAA): void

Parameters

NameType
plcIdPathstring
fPivotnumber[]
fMtxAAnumber[][]

Returns

void


cameraRotation

cameraRotation(plcIdPath, fPivot, fMtxAA): void

Parameters

NameType
plcIdPathstring
fPivotnumber[]
fMtxAAnumber[][]

Returns

void

Description

相机旋转

Memberof

AnimationPlayApi


cameraScale

cameraScale(plcIdPath, fPivot, fMtxAA, iCamType, scene): void

Parameters

NameType
plcIdPathstring
fPivotnumber[]
fMtxAAnumber[][]
iCamTypenumber
sceneScene

Returns

void


cameraTargetPntToPosition

cameraTargetPntToPosition(plcIdPath, fTarget, fRotMatrix, fPosition, scene): void

Parameters

NameType
plcIdPathstring
fTargetnumber[]
fRotMatrixnumber[][]
fPositionnumber[]
sceneScene

Returns

void


cameraTranslation

cameraTranslation(plcIdPath, fPivot, fMtxAA): void

Parameters

NameTypeDescription
plcIdPathstring动画路径
fPivotnumber[]
fMtxAAnumber[][]

Returns

void

Description

相机转换

Memberof

AnimationPlayApi


getCamera

getCamera(plcIdPath, fScale, fMtxAA): void

Parameters

NameType
plcIdPathstring
fScalenumber[]
fMtxAAnumber[][]

Returns

void

Deprecated

Memberof

AnimationPlayApi


getCameraTargetPnt

getCameraTargetPnt(plcIdPath, fTargetPnt): void

Parameters

NameType
plcIdPathstring
fTargetPntnumber[]

Returns

void

Deprecated

Memberof

AnimationPlayApi


getFocalDistance

getFocalDistance(plcIdPath, scene): number

Parameters

NameType
plcIdPathstring
sceneScene

Returns

number

Deprecated

Memberof

AnimationPlayApi


getModelPlcMtx

getModelPlcMtx(plcIdPath, fMtxAA): void

Parameters

NameType
plcIdPathstring
fMtxAAnumber[][]

Returns

void


modelRotation

modelRotation(plcIdPath, fPivot, fMtxAA): void

Parameters

NameType
plcIdPathstring
fPivotnumber[]
fMtxAAnumber[][]

Returns

void


modelScale

modelScale(plcIdPath, fPivot, fMtxAA, fScale): void

Parameters

NameType
plcIdPathstring
fPivotnumber[]
fMtxAAnumber[][]
fScalenumber[]

Returns

void


modelTanslation

modelTanslation(plcIdPath, fPivot, fMtxAA): void

Parameters

NameType
plcIdPathstring
fPivotnumber[]
fMtxAAnumber[][]

Returns

void


play

play(type, plcIdPath, fPivot, fMtxAA): boolean

Parameters

NameType
typenumber
plcIdPathstring
fPivotnumber[]
fMtxAAnumber[][]

Returns

boolean


playAnimationImage

playAnimationImage(plcIdPath, name, fPos, fScale, bOnOffFlg): void

Parameters

NameType
plcIdPathstring
namestring
fPosnumber[]
fScalenumber[]
bOnOffFlgboolean

Returns

void


playBegin

playBegin(): void

Returns

void


playCamera

playCamera(plcIdPath, type, fPivot, fMtxAA, iCamType, scene): boolean

Parameters

NameType
plcIdPathstring
typenumber
fPivotnumber[]
fMtxAAnumber[][]
iCamTypenumber
sceneScene

Returns

boolean


playClipPlane

playClipPlane(type, plcIdPath, name, fNormal, fPos, bOnOff): void

Parameters

NameType
typenumber
plcIdPathstring
namestring
fNormalnumber[]
fPosnumber[]
bOnOffboolean

Returns

void


playColor

playColor(plcIdPath, name, fColor, scene): void

Parameters

NameType
plcIdPathstring
namestring
fColorVector3
sceneScene

Returns

void


playEnd

playEnd(): void

Returns

void

Description

播放结束

Memberof

AnimationPlayApi


playScale

playScale(type, plcIdPath, fPivot, fMtxAA, fScale): boolean

Parameters

NameType
typenumber
plcIdPathstring
fPivotnumber[]
fMtxAAnumber[][]
fScalenumber[]

Returns

boolean


playToolAnimation

playToolAnimation(nType, plcIdPath, strToolPath, strParentPath): void

Parameters

NameType
nTypenumber
plcIdPathstring
strToolPathstring
strParentPathstring

Returns

void


playVisible

playVisible(plcIdPath, name, bOnOff, fTran, scene): void

Parameters

NameType
plcIdPathstring
namestring
bOnOffboolean
fTrannumber
sceneScene

Returns

void


setCamera

setCamera(plcIdPath, fScale, fMtxAA, scene): void

Parameters

NameType
plcIdPathstring
fScalenumber[]
fMtxAAnumber[][]
sceneScene

Returns

void

Description

设置相机


setModelPlcMtx

setModelPlcMtx(plcIdPath, fMtxAA): void

Parameters

NameType
plcIdPathstring
fMtxAAnumber[][]

Returns

void


setModelPlcMtxScale

setModelPlcMtxScale(plcIdPath, fMtxAA, fScale): void

Parameters

NameType
plcIdPathstring
fMtxAAnumber[][]
fScalenumber[]

Returns

void


setTargetState

setTargetState(vecTarget): void

Parameters

NameType
vecTargetTargetObjectInfo[]

Returns

void


updateView

updateView(pBehaviorManager): void

Parameters

NameType
pBehaviorManagerany

Returns

void


SAPlcPathToDispPlcPath

SAPlcPathToDispPlcPath(oldPlcPath, bPre?): string

Parameters

NameTypeDefault value
oldPlcPathstringundefined
bPrebooleantrue

Returns

string