editor › Globals › MasterPlateAssignmentStrategy
Class: MasterPlateAssignmentStrategy
Hierarchy
- MasterPlateAssignmentStrategy
↳ IdealMasterPlateAssignmentStrategy
↳ SimpleMasterPlateAssignmentStrategy
Index
Constructors
Properties
Methods
- _applyMasterPlate
- _assignCornerLoopInDirection
- _assignMasterPlatesToAdjacentJoints
- _assignPriorities
- _getPlatesMaps
- _getVertexPositions
- assignMasterPlates
- assignMasterPlatesAsynchronously
Constructors
constructor
+ new MasterPlateAssignmentStrategy(jointType: Constructor‹FingerJoint›): MasterPlateAssignmentStrategy
Defined in src/model/visualization/Joints/JointCoordination/MasterPlateAssignmentStrategy.ts:11
Parameters:
| Name | Type |
|---|---|
jointType |
Constructor‹FingerJoint› |
Returns: MasterPlateAssignmentStrategy
Properties
Protected jointType
• jointType: Constructor‹FingerJoint›
Defined in src/model/visualization/Joints/JointCoordination/MasterPlateAssignmentStrategy.ts:12
Methods
Protected _applyMasterPlate
▸ _applyMasterPlate(vertexPosition: VertexPosition, masterPlate: Plate): void
Defined in src/model/visualization/Joints/JointCoordination/MasterPlateAssignmentStrategy.ts:34
Parameters:
| Name | Type |
|---|---|
vertexPosition |
VertexPosition |
masterPlate |
Plate |
Returns: void
Private _assignCornerLoopInDirection
▸ _assignCornerLoopInDirection(outlinePoint: OutlinePoint, masterPlate: Plate, direction: "starting" | "ending", maxSteps: number): boolean
Defined in src/model/visualization/Joints/JointCoordination/MasterPlateAssignmentStrategy.ts:101
Assign the cutout priorities for all joints sharing a corner, starting at the master plate continuing to neighbors. Following plate has priority over previous plate.
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
outlinePoint |
OutlinePoint | - | - |
masterPlate |
Plate | - | - |
direction |
"starting" | "ending" | - | - |
maxSteps |
number | Infinity | - |
Returns: boolean
whether the master plate was found, i.e. whether the plates at outlinePoint form a closed loop
Private _assignMasterPlatesToAdjacentJoints
▸ _assignMasterPlatesToAdjacentJoints(outlinePoint: OutlinePoint, masterPlate: Plate): void
Defined in src/model/visualization/Joints/JointCoordination/MasterPlateAssignmentStrategy.ts:149
Parameters:
| Name | Type |
|---|---|
outlinePoint |
OutlinePoint |
masterPlate |
Plate |
Returns: void
Private _assignPriorities
▸ _assignPriorities(outlinePoint: OutlinePoint, masterPlate: Plate): void
Defined in src/model/visualization/Joints/JointCoordination/MasterPlateAssignmentStrategy.ts:74
Parameters:
| Name | Type |
|---|---|
outlinePoint |
OutlinePoint |
masterPlate |
Plate |
Returns: void
Private _getPlatesMaps
▸ _getPlatesMaps(assembly: Assembly): Map‹Plate‹›, number›
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›
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
Abstract assignMasterPlates
▸ assignMasterPlates(changedObjects: Set‹PhysicalObject›): Map‹VertexPosition, Plate›
Defined in src/model/visualization/Joints/JointCoordination/MasterPlateAssignmentStrategy.ts:18
Parameters:
| Name | Type | Description |
|---|---|---|
changedObjects |
Set‹PhysicalObject› | PhysicalObjects that may need an updated master plate |
Returns: Map‹VertexPosition, Plate›
A map assigning each vertex position its master plate
assignMasterPlatesAsynchronously
▸ assignMasterPlatesAsynchronously(changedObjects: Set‹PhysicalObject›): any
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