Class VoxelizedMarkMemo

Object
org.anchoranalysis.mpp.mark.voxelized.memo.VoxelizedMarkMemo

public class VoxelizedMarkMemo
extends Object
Memoization of retrieving a VoxelizedMark from a mark.

This class caches the voxelized representation of a mark to avoid repeated calculations.

  • Constructor Details

  • Method Details

    • voxelized

      public VoxelizedMark voxelized()
      Gets the voxelized representation of the mark.
      Returns:
      the voxelized mark
    • reset

      public void reset()
      Resets the cached voxelized mark.
    • assignFrom

      public void assignFrom​(Mark mark)
      Assigns a new mark to replace the existing mark.
      Parameters:
      mark - the new mark to assign
    • duplicateFresh

      public VoxelizedMarkMemo duplicateFresh()
      Duplicates the current mark memo, resetting the calculation state.
      Returns:
      a new VoxelizedMarkMemo with the same mark, stack, and region map
    • getMark

      public Mark getMark()
      The associated mark.
    • getRegionMap

      public RegionMap getRegionMap()
      The region map.