Class VoxelizedMarkMemo
Object
VoxelizedMarkMemo
Memoization of retrieving a
VoxelizedMark
from a mark.
This class caches the voxelized representation of a mark to avoid repeated calculations.
-
Constructor Summary
ConstructorsConstructorDescriptionVoxelizedMarkMemo
(Mark mark, EnergyStackWithoutParameters stack, RegionMap regionMap) Creates a new VoxelizedMarkMemo. -
Method Summary
Modifier and TypeMethodDescriptionvoid
assignFrom
(Mark mark) Assigns a new mark to replace the existing mark.Duplicates the current mark memo, resetting the calculation state.getMark()
The associated mark.The region map.void
reset()
Resets the cached voxelized mark.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.
-