Skip to content

editorGlobalsDirectionalHintPositionProvider

Class: DirectionalHintPositionProvider

Extension of HintPositionProvider that can provide some kind of direction

Hierarchy

HintPositionProvider

DirectionalHintPositionProvider

DirectionHintPositionWrapper

MeshEdgePositionProvider

CenterProvider

ImportedModelPositionProvider

PlatePositionProvider

Index

Methods

Methods

Abstract calculate

calculate(): void

Inherited from HintDataProvider.calculate

Defined in src/renderContext/hints/HintDataProvider.ts:15

Trigger recalculation of internally stored values

Returns: void


destroy

destroy(): void

Inherited from HintDataProvider.destroy

Defined in src/renderContext/hints/HintDataProvider.ts:20

Called when the hint that uses this provider is destroyed. You want to do cleanup here.

Returns: void


getCanvasPoints

getCanvasPoints(): Vector3[]

Inherited from HintPositionProvider.getCanvasPoints

Defined in src/renderContext/hints/HintPositionProviders/HintPositionProvider.ts:37

Return the edge points of the hint on the screen. Used for filtering hints

Returns: Vector3[]


Abstract getEnd

getEnd(): Vector3

Defined in src/renderContext/hints/HintPositionProviders/DirectionalHintPositionProvider.ts:16

Get the end point in the original coordinate system (mainly assembly coordinates)

Returns: Vector3


Abstract getEndCanvas

getEndCanvas(): Vector3

Defined in src/renderContext/hints/HintPositionProviders/DirectionalHintPositionProvider.ts:26

Get the end point in the screen coordinate system

Returns: Vector3


Abstract getPosition

getPosition(): Vector3

Inherited from HintPositionProvider.getPosition

Defined in src/renderContext/hints/HintPositionProviders/HintPositionProvider.ts:11

Get internally stored position in canvas space. Will get updated with calculate().

Returns: Vector3


Abstract getStart

getStart(): Vector3

Defined in src/renderContext/hints/HintPositionProviders/DirectionalHintPositionProvider.ts:11

Get the start point in the original coordinate system (mainly assembly coordinates)

Returns: Vector3


Abstract getStartCanvas

getStartCanvas(): Vector3

Defined in src/renderContext/hints/HintPositionProviders/DirectionalHintPositionProvider.ts:21

Get the start point in the screen coordinate system

Returns: Vector3


Abstract getWorldPosition

getWorldPosition(): Vector3

Inherited from HintPositionProvider.getWorldPosition

Defined in src/renderContext/hints/HintPositionProviders/HintPositionProvider.ts:16

Get internally stored position in 3D world space. Will get updated with calculate().

Returns: Vector3


Abstract isValid

isValid(): boolean

Inherited from HintDataProvider.isValid

Defined in src/renderContext/hints/HintDataProvider.ts:10

Checks whether this hint is still valid (e.g. edge it annotates still exists)

Returns: boolean


setCanvasSizeGetter

setCanvasSizeGetter(getCanvasSize: function): void

Inherited from HintPositionProvider.setCanvasSizeGetter

Defined in src/renderContext/hints/HintPositionProviders/HintPositionProvider.ts:29

Called by the hint when it's added to the hintManager. The hintManager will provide a function to get the canvas size to the hint, which will foward it to the provider. Override if needed.

Parameters:

getCanvasSize: function

▸ (): IDimensions2

Returns: void


setConversionMethod

setConversionMethod(worldToCanvas: function): void

Inherited from HintPositionProvider.setConversionMethod

Defined in src/renderContext/hints/HintPositionProviders/HintPositionProvider.ts:22

Called by the hint when it's added to the hintManager. The hintManager will give a worldToCanvas conversion method to the hint, which will forward it to the provider. Override if needed.

Parameters:

worldToCanvas: function

▸ (Vector3: any): Vector3

Parameters:

Name Type
Vector3 any

Returns: void