Interface VoxelPartitionFactory<T>
- Type Parameters:
T
- the type of parts stored in the voxel partition
- All Known Implementing Classes:
VoxelPartitonFactoryHistogram
public interface VoxelPartitionFactory<T>
A factory for creating
VoxelPartition
instances.-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds an unused part to the factory.create
(int numSlices) Creates a newVoxelPartition
with the specified number of slices.
-
Method Details
-
create
Creates a newVoxelPartition
with the specified number of slices.- Parameters:
numSlices
- the number of slices in the voxel partition- Returns:
- a new
VoxelPartition
instance
-
addUnused
Adds an unused part to the factory.This method is typically used to recycle parts that are no longer needed, allowing them to be reused in future voxel partitions.
- Parameters:
part
- the unused part to add
-