editor › Globals › SimpleMasterPlateAssignmentStrategy
Class: SimpleMasterPlateAssignmentStrategy
Hierarchy
↳ SimpleMasterPlateAssignmentStrategy
Index
Constructors
Properties
Methods
- _applyMasterPlate
- _findMasterPlate
- _getConcaveCandidates
- _getCornerAngleDifference
- _getNonRectangularPlate
- _getPlatesMaps
- _getVertexPositions
- assignMasterPlates
- assignMasterPlatesAsynchronously
Constructors
constructor
+ new SimpleMasterPlateAssignmentStrategy(jointType: Constructor‹FingerJoint›): SimpleMasterPlateAssignmentStrategy
Inherited from MasterPlateAssignmentStrategy.constructor
Defined in src/model/visualization/Joints/JointCoordination/MasterPlateAssignmentStrategy.ts:11
Parameters:
| Name | Type |
|---|---|
jointType |
Constructor‹FingerJoint› |
Returns: SimpleMasterPlateAssignmentStrategy
Properties
Protected jointType
• jointType: Constructor‹FingerJoint›
Inherited from MasterPlateAssignmentStrategy.jointType
Defined in src/model/visualization/Joints/JointCoordination/MasterPlateAssignmentStrategy.ts:12
Methods
Protected _applyMasterPlate
▸ _applyMasterPlate(vertexPosition: VertexPosition, masterPlate: Plate): void
Inherited from MasterPlateAssignmentStrategy._applyMasterPlate
Defined in src/model/visualization/Joints/JointCoordination/MasterPlateAssignmentStrategy.ts:34
Parameters:
| Name | Type |
|---|---|
vertexPosition |
VertexPosition |
masterPlate |
Plate |
Returns: void
Private _findMasterPlate
▸ _findMasterPlate(outlinePoint: OutlinePoint): Plate | null
Defined in src/model/visualization/Joints/JointCoordination/SimpleMasterPlateAssignmentStrategy.ts:62
Parameters:
| Name | Type |
|---|---|
outlinePoint |
OutlinePoint |
Returns: Plate | null
Private _getConcaveCandidates
▸ _getConcaveCandidates(outlinePoint: OutlinePoint): Plate[]
Defined in src/model/visualization/Joints/JointCoordination/SimpleMasterPlateAssignmentStrategy.ts:82
Parameters:
| Name | Type |
|---|---|
outlinePoint |
OutlinePoint |
Returns: Plate[]
Private _getCornerAngleDifference
▸ _getCornerAngleDifference(outlinePoint: OutlinePoint): number
Defined in src/model/visualization/Joints/JointCoordination/SimpleMasterPlateAssignmentStrategy.ts:93
Parameters:
| Name | Type | Description |
|---|---|---|
outlinePoint |
OutlinePoint | the outline point whose corner angle to determine |
Returns: number
how close is the corner angle to 45deg or 135deg
Private _getNonRectangularPlate
▸ _getNonRectangularPlate(outlinePoint: OutlinePoint): Plate | null
Defined in src/model/visualization/Joints/JointCoordination/SimpleMasterPlateAssignmentStrategy.ts:44
Parameters:
| Name | Type |
|---|---|
outlinePoint |
OutlinePoint |
Returns: Plate | null
Private _getPlatesMaps
▸ _getPlatesMaps(assembly: Assembly): Map‹Plate‹›, number›
Inherited from MasterPlateAssignmentStrategy._getPlatesMaps
Defined in src/model/visualization/Joints/JointCoordination/MasterPlateAssignmentStrategy.ts:49
Parameters:
| Name | Type | Description |
|---|---|---|
assembly |
Assembly | - |
Returns: Map‹Plate‹›, number›
A map giving each Plate a numerical ID
Private _getVertexPositions
▸ _getVertexPositions(plates: Map‹Plate, number›): Map‹VertexPosition‹›, number›
Inherited from MasterPlateAssignmentStrategy._getVertexPositions
Defined in src/model/visualization/Joints/JointCoordination/MasterPlateAssignmentStrategy.ts:60
Parameters:
| Name | Type | Description |
|---|---|---|
plates |
Map‹Plate, number› | - |
Returns: Map‹VertexPosition‹›, number›
A map giving each VertexPosition a numerical ID
assignMasterPlates
▸ assignMasterPlates(changedObjects: Set‹PhysicalObject›): Map‹VertexPosition, Plate›
Overrides MasterPlateAssignmentStrategy.assignMasterPlates
Defined in src/model/visualization/Joints/JointCoordination/SimpleMasterPlateAssignmentStrategy.ts:11
Parameters:
| Name | Type |
|---|---|
changedObjects |
Set‹PhysicalObject› |
Returns: Map‹VertexPosition, Plate›
assignMasterPlatesAsynchronously
▸ assignMasterPlatesAsynchronously(changedObjects: Set‹PhysicalObject›): any
Inherited from MasterPlateAssignmentStrategy.assignMasterPlatesAsynchronously
Defined in src/model/visualization/Joints/JointCoordination/MasterPlateAssignmentStrategy.ts:24
Parameters:
| Name | Type | Description |
|---|---|---|
changedObjects |
Set‹PhysicalObject› | PhysicalObjects that may need an updated master plate |
Returns: any
A cancellable promise resolving to a map assigning each vertex position its master plate