Package dev.turboism.sdk.cubism.model
Interface Parts
public interface Parts
Parts in one Cubism model.
-
Method Summary
Modifier and TypeMethodDescriptiondefault PartCreates a new Part under the root Part and returns it.default PartCreates a new Part under the requested parent Part and returns it.default PartCreates a new Part under the root Part and returns it.default PartCreates a new Part under the requested parent Part and returns it.all()default PartDuplicates one Part (including its subtree) next to the source Part and returns the copy.default PartCreates a Part withnameand appends it under the model root.default PartCreates a Part withnameunderparentatindex(negative = append;nullparent = model root).default voidDeletespartthrough the native selection + native DELETE command path.default voidDeletes one Part and its entire subtree.
-
Method Details
-
all
-
create
Creates a Part withnameand appends it under the model root.The native two-phase flow is used: construct
CPartSource→ add to the Part source set → attach to the Part tree, all admitted into one native Undo entry. -
create
Creates a Part withnameunderparentatindex(negative = append;nullparent = model root).- Throws:
IllegalArgumentException- whennameis blank
-
remove
Deletespartthrough the native selection + native DELETE command path. -
find
- Throws:
NoSuchElementException- when the ID is absent
-
add
Creates a new Part under the root Part and returns it.The Part is created with the requested ID as its display name and the Editor default draw order. The write is undoable and generation-bound.
- Throws:
IllegalArgumentException- when the ID is blank or already present
-
add
Creates a new Part under the root Part and returns it.- Throws:
IllegalArgumentException- when the ID is blank or already present
-
add
Creates a new Part under the requested parent Part and returns it.- Throws:
IllegalArgumentException- when the ID is blank or already presentNoSuchElementException- when the parent Part is absent
-
add
Creates a new Part under the requested parent Part and returns it.- Throws:
IllegalArgumentException- when the ID is blank or already presentNoSuchElementException- when the parent Part is absent
-
copy
Duplicates one Part (including its subtree) next to the source Part and returns the copy.- Throws:
NoSuchElementException- when the source Part is absent
-
remove
Deletes one Part and its entire subtree.- Throws:
NoSuchElementException- when the Part is absent
-