Skip to content

editorGlobalsNestingHierarchy

Class: NestingHierarchy ‹NestingType

A Nesting Hierarchy is an extension of a model hierarchy. There are typically fewer NestingHierarchy nodes than ModelHierarchy nodes for the same model, because nodes get merged through arrows or adjacency. When that happens, one NestingHierarchy node is equivalent to multiple ModelHierarchy nodes which are all connected through parent-child relations. That means, all children of all these nodes are now children of the NestingHierarchy node and all PlateGroups of the nodes are within the NestingHierarchy node.

Each node represents an Unfolding or UnfoldingGroup and knows the head ModelHierarchy-node of that nesting. It can represent the result of any step.

Type parameters

NestingType: Nesting

Hierarchy

  • NestingHierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

+ new NestingHierarchy(modelHierarchy: ModelHierarchy, nesting: NestingType): NestingHierarchy

Defined in src/modules/kyub.core.svgObjExporter/src/export/Roadkill/NestingHierarchy.ts:25

Parameters:

Name Type
modelHierarchy ModelHierarchy
nesting NestingType

Returns: NestingHierarchy

Properties

Private Readonly children

children: Map‹NestingHierarchy‹NestingType›, NestingHierarchyChildType = new Map, NestingHierarchyChildType>()

Defined in src/modules/kyub.core.svgObjExporter/src/export/Roadkill/NestingHierarchy.ts:24


Private Readonly childrenReceivingGroup

childrenReceivingGroup: Map‹NestingHierarchy‹NestingType›, PlateGroup‹›› = new Map, PlateGroup>()

Defined in src/modules/kyub.core.svgObjExporter/src/export/Roadkill/NestingHierarchy.ts:25


Private Readonly modelHierarchy

modelHierarchy: ModelHierarchy

Defined in src/modules/kyub.core.svgObjExporter/src/export/Roadkill/NestingHierarchy.ts:22


Private nesting

nesting: NestingType

Defined in src/modules/kyub.core.svgObjExporter/src/export/Roadkill/NestingHierarchy.ts:23

Methods

Private _checkExisting

_checkExisting(child: NestingHierarchy‹NestingType›, shouldExist: boolean): void

Defined in src/modules/kyub.core.svgObjExporter/src/export/Roadkill/NestingHierarchy.ts:79

Parameters:

Name Type Default
child NestingHierarchy‹NestingType› -
shouldExist boolean true

Returns: void


addChild

addChild(child: NestingHierarchy‹NestingType›, type: NestingHierarchyChildType, receivingPlateGroup: PlateGroup): void

Defined in src/modules/kyub.core.svgObjExporter/src/export/Roadkill/NestingHierarchy.ts:58

Parameters:

Name Type
child NestingHierarchy‹NestingType›
type NestingHierarchyChildType
receivingPlateGroup PlateGroup

Returns: void


getChildren

getChildren(): Array‹NestingHierarchy‹NestingType››

Defined in src/modules/kyub.core.svgObjExporter/src/export/Roadkill/NestingHierarchy.ts:40

Returns: Array‹NestingHierarchy‹NestingType››


getModelHierarchy

getModelHierarchy(): ModelHierarchy

Defined in src/modules/kyub.core.svgObjExporter/src/export/Roadkill/NestingHierarchy.ts:32

Returns: ModelHierarchy


getNesting

getNesting(): NestingType

Defined in src/modules/kyub.core.svgObjExporter/src/export/Roadkill/NestingHierarchy.ts:36

Returns: NestingType


getReceivingPlateGroupOfChild

getReceivingPlateGroupOfChild(child: NestingHierarchy‹NestingType›): PlateGroup

Defined in src/modules/kyub.core.svgObjExporter/src/export/Roadkill/NestingHierarchy.ts:49

Parameters:

Name Type
child NestingHierarchy‹NestingType›

Returns: PlateGroup


getTypeOfChild

getTypeOfChild(child: NestingHierarchy‹NestingType›, shouldExist: boolean): NestingHierarchyChildType

Defined in src/modules/kyub.core.svgObjExporter/src/export/Roadkill/NestingHierarchy.ts:44

Parameters:

Name Type Default
child NestingHierarchy‹NestingType› -
shouldExist boolean true

Returns: NestingHierarchyChildType


removeChild

removeChild(child: any): void

Defined in src/modules/kyub.core.svgObjExporter/src/export/Roadkill/NestingHierarchy.ts:68

Parameters:

Name Type
child any

Returns: void


setChildType

setChildType(child: NestingHierarchy‹NestingType›, type: NestingHierarchyChildType): void

Defined in src/modules/kyub.core.svgObjExporter/src/export/Roadkill/NestingHierarchy.ts:74

Parameters:

Name Type
child NestingHierarchy‹NestingType›
type NestingHierarchyChildType

Returns: void


setNesting

setNesting(nesting: NestingType): void

Defined in src/modules/kyub.core.svgObjExporter/src/export/Roadkill/NestingHierarchy.ts:54

Parameters:

Name Type
nesting NestingType

Returns: void