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

M3D / M3D / Shapes / TranslateInLineCommand

Class: TranslateInLineCommand

M3D.Shapes.TranslateInLineCommand

Memberof

M3D.Shapes

Description

TranslateInLineCommand

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 TranslateInLineCommand(): TranslateInLineCommand

Returns

TranslateInLineCommand

Description

构造函数

Overrides

MotionCommand.constructor

new TranslateInLineCommand(start, end): TranslateInLineCommand

Parameters

NameType
startVector3
endVector3

Returns

TranslateInLineCommand

Description

构造函数

Overrides

MotionCommand.constructor

Properties

id

id: number

Inherited from

MotionCommand.id


count

Static count: number

Inherited from

MotionCommand.count

Methods

getEvents

getEvents(): M3DEvent[]

Returns

M3DEvent[]

Description

获得事件列表

Inherited from

MotionCommand.getEvents


getId

getId(): number

Returns

number

Description

获取id

Inherited from

MotionCommand.getId


getLineEnd

getLineEnd(): Vector3

Returns

Vector3

Description

获取终点


getLineStart

getLineStart(): Vector3

Returns

Vector3

Description

获取起点


getLocalToWorld

getLocalToWorld(): Matrix3x4

Returns

Matrix3x4

Description

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

Inherited from

MotionCommand.getLocalToWorld


getRefDragger

getRefDragger(): Dragger

Returns

Dragger

Description

获取拖拽器

Inherited from

MotionCommand.getRefDragger


getStage

getStage(): Stage

Returns

Stage

Description

获取状态

Inherited from

MotionCommand.getStage


getTranslation

getTranslation(): Vector3

Returns

Vector3

Description

获取平移向量


getType

getType(): Type

Returns

Type

Description

获取command类型

Overrides

MotionCommand.getType


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.

Inherited from

MotionCommand.getWorldToLocal


registerEvent

registerEvent(event): void

Parameters

NameTypeDescription
eventM3DEventM3D事件

Returns

void

Description

注册事件

Inherited from

MotionCommand.registerEvent


removeEvent

removeEvent(): void

Returns

void

Description

删除事件

Inherited from

MotionCommand.removeEvent


setId

setId(v): void

Parameters

NameTypeDescription
vnumberShapeId

Returns

void

Description

设置id

Inherited from

MotionCommand.setId


setLine

setLine(start, end): void

Parameters

NameType
startVector3
endVector3

Returns

void

Description

设置线起始点


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.

Inherited from

MotionCommand.setLocalToWorldAndWorldToLocal


setRefDragger

setRefDragger(dragger): void

Parameters

NameType
draggerDragger

Returns

void

Description

设置拖拽器

Inherited from

MotionCommand.setRefDragger


setStage

setStage(stage): void

Parameters

NameType
stageStage

Returns

void

Description

设置状态

Inherited from

MotionCommand.setStage


setTranslation

setTranslation(translation): void

Parameters

NameType
translationVector3

Returns

void

Description

设置平移向量