Interface Deformers


public interface Deformers
Deformers in one Cubism model.
  • Method Summary

    Modifier and Type
    Method
    Description
    all()
     
    createRotation(String name, Part parent, int index)
    Creates a Rotation Deformer with name under parent at index (negative = append; null parent = model root).
    default WarpDeformer
    createWarp(String name, Part parent, int index, int rows, int columns)
    Creates a Warp Deformer with name and rows×columns grid under parent at index (negative = append; null parent = model root).
     
    default void
    remove(Deformer deformer)
    Deletes deformer through the native selection + native DELETE command path.
  • Method Details

    • all

      List<Deformer> all()
    • find

      Deformer find(DeformerId id)
      Throws:
      NoSuchElementException - when the ID is absent
    • createWarp

      default WarpDeformer createWarp(String name, Part parent, int index, int rows, int columns)
      Creates a Warp Deformer with name and rows×columns grid under parent at index (negative = append; null parent = model root).

      The native two-phase flow is used: construct CWarpDeformerSource → set grid → add to the Deformer source set → attach to the Part tree, all admitted into one native Undo entry.

      Throws:
      IllegalArgumentException - when name is blank or rows/columns are not positive
    • createRotation

      default RotationDeformer createRotation(String name, Part parent, int index)
      Creates a Rotation Deformer with name under parent at index (negative = append; null parent = model root).
      Throws:
      IllegalArgumentException - when name is blank
    • remove

      default void remove(Deformer deformer)
      Deletes deformer through the native selection + native DELETE command path.