ModelWithSetup
Multi-piece models may wish to implement the setup method, which is called before any piece is built. Some initialisation isn't possible within the init
block. For example, anything that using Custom fields (because these fields are set AFTER the class is created, but before setup and build are called.
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns piece names by looking Piece annotations on methods.
Link copied to clipboard
The same as pieceNames, but includes the "default" pieceName of null
as the first item in the list.
Link copied to clipboard
Link copied to clipboard
Returns SlicerValues by looking for Slice annotations on the build method.
Returns SlicerValues by looking for Slice annotations on the method named pieceName or the build method if pieceName is null.