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

M3D / M3D / Shapes / MotionCommand

Class: MotionCommand

M3D.Shapes.MotionCommand

Memberof

M3D.Shapes

Description

MotionCommand

Author

zyc

Date

2023-10-17

Version

1.0

Copyright

All Rights Reserved. Copyright (C) 2022 HOTEAMSOFT, Ltd

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new MotionCommand(): MotionCommand

Returns

MotionCommand

Description

构造函数

Overrides

M3DObject.constructor

Properties

id

id: number

Inherited from

M3DObject.id


count

Static count: number

Inherited from

M3DObject.count

Methods

getEvents

getEvents(): M3DEvent[]

Returns

M3DEvent[]

Description

获得事件列表

Inherited from

M3DObject.getEvents


getId

getId(): number

Returns

number

Description

获取id

Inherited from

M3DObject.getId


getLocalToWorld

getLocalToWorld(): Matrix3x4

Returns

Matrix3x4

Description

Gets the matrix for transforming the command's local coordinate system to the world/object coordinate system.


getRefDragger

getRefDragger(): Dragger

Returns

Dragger

Description

获取拖拽器


getStage

getStage(): Stage

Returns

Stage

Description

获取状态


getType

getType(): Type

Returns

Type

Description

获取command类型


getWorldToLocal

getWorldToLocal(): Matrix3x4

Returns

Matrix3x4

Description

Gets the matrix for transforming the command's world/object coordinate system to the command's local coordinate system.


registerEvent

registerEvent(event): void

Parameters

NameTypeDescription
eventM3DEventM3D事件

Returns

void

Description

注册事件

Inherited from

M3DObject.registerEvent


removeEvent

removeEvent(): void

Returns

void

Description

删除事件

Inherited from

M3DObject.removeEvent


setId

setId(v): void

Parameters

NameTypeDescription
vnumberShapeId

Returns

void

Description

设置id

Inherited from

M3DObject.setId


setLocalToWorldAndWorldToLocal

setLocalToWorldAndWorldToLocal(localToWorld, worldToLocal): void

Parameters

NameType
localToWorldMatrix3x4
worldToLocalMatrix3x4

Returns

void

Description

Sets the matrix for transforming the command's local coordinate system to the world/object coordinate system.


setRefDragger

setRefDragger(dragger): void

Parameters

NameType
draggerDragger

Returns

void

Description

设置拖拽器


setStage

setStage(stage): void

Parameters

NameType
stageStage

Returns

void

Description

设置状态