Skip to main content

Class: SelectionWidget

Extra-Helpers.SelectionWidget

Hierarchy​

Implements​

Properties​

assetType​

• assetType: "widget"

Implementation of​

IWidget.assetType


modelObject​

• modelObject: SelectionWidget

Internal three.js Object3D instance (like Mesh, Group, etc)

Implementation of​

IWidget.modelObject


boundingScaleMultiplier​

• boundingScaleMultiplier: number = 1.


setDirty​

• Optional setDirty: (options?: AnyOptions) => void

Type declaration​

▸ (options?): void

Parameters​
NameType
options?AnyOptions
Returns​

void

Implementation of​

IWidget.setDirty


_stablePoses​

• Optional _stablePoses: { distance: number ; faceNormal: Vector3 ; area: number ; face: Face ; maxEdgeLength: number ; xform: Matrix4 ; edgePoint: Vector3 }[]

Inherited from​

Group._stablePoses


_poseIndex​

• Optional _poseIndex: number

Inherited from​

Group._poseIndex


_originalXform​

• Optional _originalXform: Matrix4

Inherited from​

Group._originalXform


_geometry​

• Protected Optional _geometry: BufferGeometry<NormalBufferAttributes, BufferGeometryEventMap>

Constructors​

constructor​

• new SelectionWidget()

Overrides​

Group.constructor

Methods​

setVisible​

▸ setVisible(v): void

Parameters​

NameType
vboolean

Returns​

void


attach​

▸ attach(object): SelectionWidget

Parameters​

NameType
objectObject3D<Object3DEventMap>

Returns​

SelectionWidget

Implementation of​

IWidget.attach

Overrides​

Group.attach


detach​

▸ detach(): SelectionWidget

Returns​

SelectionWidget

Implementation of​

IWidget.detach


_updater​

▸ Protected _updater(): void

Returns​

void


_initGeometry​

▸ Protected _initGeometry(g): void

Parameters​

NameType
gBufferGeometry<NormalBufferAttributes, BufferGeometryEventMap>

Returns​

void

Accessors​

object​

• get object(): null | Object3D<Object3DEventMap>

Returns​

null | Object3D<Object3DEventMap>

Implementation of​

IWidget.object