Skip to content

Class: TranslationControlComponents

Components are used to attach functionality to object3D, it has an owner object3D. The component can receive update events at each frame.

Hierarchy

Constructors

Properties

Accessors

Methods

Constructors

constructor

new TranslationControlComponents(): TranslationControlComponents

Returns

TranslationControlComponents

Inherited from

TransformControllerBaseComponent.constructor

Defined in

src/util/transformUtil/TransformControllerBaseComponent.ts:29

Properties

object3D

object3D: Object3D = null

owner object3D

Inherited from

TransformControllerBaseComponent.object3D

Defined in

src/components/ComponentBase.ts:17


isDestroyed

Optional isDestroyed: boolean

Inherited from

TransformControllerBaseComponent.isDestroyed

Defined in

src/components/ComponentBase.ts:38

Accessors

eventDispatcher

get eventDispatcher(): CEventDispatcher

Returns

CEventDispatcher

Inherited from

TransformControllerBaseComponent.eventDispatcher

Defined in

src/components/ComponentBase.ts:23

set eventDispatcher(value): void

Parameters

NameType
valueCEventDispatcher

Returns

void

Inherited from

TransformControllerBaseComponent.eventDispatcher

Defined in

src/components/ComponentBase.ts:28


isStart

get isStart(): boolean

Returns

boolean

Inherited from

TransformControllerBaseComponent.isStart

Defined in

src/components/ComponentBase.ts:40


transform

get transform(): Transform

Return the Transform component attached to the Object3D.

Returns

Transform

Inherited from

TransformControllerBaseComponent.transform

Defined in

src/components/ComponentBase.ts:47


enable

get enable(): boolean

Enable/disable components. The enabled components can be updated, while the disabled components cannot be updated.

Returns

boolean

Inherited from

TransformControllerBaseComponent.enable

Defined in

src/components/ComponentBase.ts:68

set enable(value): void

Enable/disable components. The enabled components can be updated, while the disabled components cannot be updated.

Parameters

NameType
valueboolean

Returns

void

Inherited from

TransformControllerBaseComponent.enable

Defined in

src/components/ComponentBase.ts:54


target

get target(): Object3D

Returns

Object3D

Inherited from

TransformControllerBaseComponent.target

Defined in

src/util/transformUtil/TransformControllerBaseComponent.ts:40


mX

get mX(): Object3D

Returns

Object3D

Inherited from

TransformControllerBaseComponent.mX

Defined in

src/util/transformUtil/TransformControllerBaseComponent.ts:44


mY

get mY(): Object3D

Returns

Object3D

Inherited from

TransformControllerBaseComponent.mY

Defined in

src/util/transformUtil/TransformControllerBaseComponent.ts:48


mZ

get mZ(): Object3D

Returns

Object3D

Inherited from

TransformControllerBaseComponent.mZ

Defined in

src/util/transformUtil/TransformControllerBaseComponent.ts:52


transformSpaceMode

get transformSpaceMode(): TransformSpaceMode

Returns

TransformSpaceMode

Inherited from

TransformControllerBaseComponent.transformSpaceMode

Defined in

src/util/transformUtil/TransformControllerBaseComponent.ts:56

Methods

stop

stop(): void

Returns

void

Inherited from

TransformControllerBaseComponent.stop

Defined in

src/components/ComponentBase.ts:114


onLateUpdate

onLateUpdate(view?): any

Parameters

NameType
view?View3D

Returns

any

Inherited from

TransformControllerBaseComponent.onLateUpdate

Defined in

src/components/ComponentBase.ts:118


onBeforeUpdate

onBeforeUpdate(view?): any

Parameters

NameType
view?View3D

Returns

any

Inherited from

TransformControllerBaseComponent.onBeforeUpdate

Defined in

src/components/ComponentBase.ts:119


onCompute

onCompute(view?, command?): any

Parameters

NameType
view?View3D
command?GPUCommandEncoder

Returns

any

Inherited from

TransformControllerBaseComponent.onCompute

Defined in

src/components/ComponentBase.ts:120


onGraphic

onGraphic(view?): any

Parameters

NameType
view?View3D

Returns

any

Inherited from

TransformControllerBaseComponent.onGraphic

Defined in

src/components/ComponentBase.ts:121


onParentChange

onParentChange(lastParent?, currentParent?): any

Parameters

NameType
lastParent?Object3D
currentParent?Object3D

Returns

any

Inherited from

TransformControllerBaseComponent.onParentChange

Defined in

src/components/ComponentBase.ts:122


onAddChild

onAddChild(child): any

Parameters

NameType
childObject3D

Returns

any

Inherited from

TransformControllerBaseComponent.onAddChild

Defined in

src/components/ComponentBase.ts:123


onRemoveChild

onRemoveChild(child): any

Parameters

NameType
childObject3D

Returns

any

Inherited from

TransformControllerBaseComponent.onRemoveChild

Defined in

src/components/ComponentBase.ts:124


cloneTo

cloneTo(obj): void

clone component data to target object3D

Parameters

NameTypeDescription
objObject3Dtarget object3D

Returns

void

Inherited from

TransformControllerBaseComponent.cloneTo

Defined in

src/components/ComponentBase.ts:131


copyComponent

copyComponent(from): this

Parameters

NameType
fromthis

Returns

this

Inherited from

TransformControllerBaseComponent.copyComponent

Defined in

src/components/ComponentBase.ts:133


beforeDestroy

beforeDestroy(force?): void

before release this component, object refrences are not be set null now.

Parameters

NameType
force?boolean

Returns

void

Inherited from

TransformControllerBaseComponent.beforeDestroy

Defined in

src/components/ComponentBase.ts:200


destroy

destroy(force?): void

release this component

Parameters

NameType
force?boolean

Returns

void

Inherited from

TransformControllerBaseComponent.destroy

Defined in

src/components/ComponentBase.ts:207


start

start(): void

Returns

void

Inherited from

TransformControllerBaseComponent.start

Defined in

src/util/transformUtil/TransformControllerBaseComponent.ts:94


onEnable

onEnable(view?): void

Parameters

NameType
view?View3D

Returns

void

Inherited from

TransformControllerBaseComponent.onEnable

Defined in

src/util/transformUtil/TransformControllerBaseComponent.ts:98


onDisable

onDisable(view?): void

Parameters

NameType
view?View3D

Returns

void

Inherited from

TransformControllerBaseComponent.onDisable

Defined in

src/util/transformUtil/TransformControllerBaseComponent.ts:107


reset

reset(): void

Returns

void

Inherited from

TransformControllerBaseComponent.reset

Defined in

src/util/transformUtil/TransformControllerBaseComponent.ts:115


onMouseDown

onMouseDown(e): void

Parameters

NameType
ePointerEvent3D

Returns

void

Inherited from

TransformControllerBaseComponent.onMouseDown

Defined in

src/util/transformUtil/TransformControllerBaseComponent.ts:198


onMouseMove

onMouseMove(e): void

Parameters

NameType
ePointerEvent3D

Returns

void

Inherited from

TransformControllerBaseComponent.onMouseMove

Defined in

src/util/transformUtil/TransformControllerBaseComponent.ts:220


onMouseUp

onMouseUp(e): void

Parameters

NameType
ePointerEvent3D

Returns

void

Inherited from

TransformControllerBaseComponent.onMouseUp

Defined in

src/util/transformUtil/TransformControllerBaseComponent.ts:274


onUpdate

onUpdate(view?): void

Parameters

NameType
view?View3D

Returns

void

Inherited from

TransformControllerBaseComponent.onUpdate

Defined in

src/util/transformUtil/TransformControllerBaseComponent.ts:282


init

init(param?): void

Parameters

NameType
param?any

Returns

void

Overrides

TransformControllerBaseComponent.init

Defined in

src/util/transformUtil/TranslationControlComponents.ts:18

Released under the MIT License