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 Summary
Constructors Constructor Description VoxelizedMarkMemo(Mark mark, EnergyStackWithoutParameters stack, RegionMap regionMap)Creates a new VoxelizedMarkMemo. -
Method Summary
Modifier and Type Method Description voidassignFrom(Mark mark)Assigns a new mark to replace the existing mark.VoxelizedMarkMemoduplicateFresh()Duplicates the current mark memo, resetting the calculation state.MarkgetMark()The associated mark.RegionMapgetRegionMap()The region map.voidreset()Resets the cached voxelized mark.VoxelizedMarkvoxelized()Gets the voxelized representation of the mark.
-
Constructor Details
-
VoxelizedMarkMemo
Creates a new VoxelizedMarkMemo.- Parameters:
mark- the mark to be voxelizedstack- the energy stack without parametersregionMap- the region map
-
-
Method Details
-
voxelized
Gets the voxelized representation of the mark.- Returns:
- the voxelized mark
-
reset
public void reset()Resets the cached voxelized mark. -
assignFrom
Assigns a new mark to replace the existing mark.- Parameters:
mark- the new mark to assign
-
duplicateFresh
Duplicates the current mark memo, resetting the calculation state.- Returns:
- a new VoxelizedMarkMemo with the same mark, stack, and region map
-
getMark
The associated mark. -
getRegionMap
The region map.
-