editor › Globals › JointRenderer
Class: JointRenderer ‹JointType›
A Joint Renderer calculates the necessary shape changes needed to actually embed a specific joint into a physical object. Subclasses have to be registered in PlateRenderer.
Type parameters
▪ JointType: Joint
Hierarchy
- JointRenderer
↳ IntersectionAvoidanceCrossJointRenderer
↳ IntersectionAvoidanceEdgeJointRenderer
Index
Constructors
Properties
Methods
Constructors
constructor
+ new JointRenderer(jointInstance: JointType): JointRenderer
Defined in src/model/visualization/Joints/Renderer/JointRenderer.ts:33
Parameters:
| Name | Type |
|---|---|
jointInstance |
JointType |
Returns: JointRenderer
Properties
Protected Readonly jointInstance
• jointInstance: JointType
Defined in src/model/visualization/Joints/Renderer/JointRenderer.ts:35
Methods
calculateFlexShapeChanges
▸ calculateFlexShapeChanges(plate: Plate, config: PlatePipelineConfig, rasterizedOutlines: RasterizedOutline[], plateMatrix: Matrix4): IFlexShapeChanges
Defined in src/model/visualization/Joints/Renderer/JointRenderer.ts:46
Parameters:
| Name | Type |
|---|---|
plate |
Plate |
config |
PlatePipelineConfig |
rasterizedOutlines |
RasterizedOutline[] |
plateMatrix |
Matrix4 |
Returns: IFlexShapeChanges
Abstract calculateShapeChanges
▸ calculateShapeChanges(physicalObject: PhysicalObject, options: PlatePipelineConfig, rasterizedOutlines: RasterizedOutline[]): IShapeChanges
Defined in src/model/visualization/Joints/Renderer/JointRenderer.ts:40
Calculates the shape changes for this specific physical object.
Parameters:
| Name | Type |
|---|---|
physicalObject |
PhysicalObject |
options |
PlatePipelineConfig |
rasterizedOutlines |
RasterizedOutline[] |
Returns: IShapeChanges
Static canRender
▸ canRender(joint: Joint): boolean
Defined in src/model/visualization/Joints/Renderer/JointRenderer.ts:31
Subclasses should use this to specify whether a given Joint is supporter by this JointRenderer
Parameters:
| Name | Type |
|---|---|
joint |
Joint |
Returns: boolean