Class VoxelizedMarkMemo

Object
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

    • VoxelizedMarkMemo

      public VoxelizedMarkMemo(Mark mark, EnergyStackWithoutParameters stack, RegionMap regionMap)
      Creates a new VoxelizedMarkMemo.
      Parameters:
      mark - the mark to be voxelized
      stack - the energy stack without parameters
      regionMap - the region map
  • 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.