Class VoxelPartitonFactoryHistogram
Object
VoxelPartitonFactoryHistogram
- All Implemented Interfaces:
VoxelPartitionFactory<Histogram>
public class VoxelPartitonFactoryHistogram
extends Object
implements VoxelPartitionFactory<Histogram>
A factory for creating
VoxelPartition instances that use Histograms as parts.
This implementation creates VoxelPartitionHistogram objects with histograms of 256
bins (0-255).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds an unused histogram to the factory.create(int numSlices) Creates a newVoxelPartitionHistogramwith the specified number of slices.
-
Constructor Details
-
VoxelPartitonFactoryHistogram
public VoxelPartitonFactoryHistogram()
-
-
Method Details
-
create
Creates a newVoxelPartitionHistogramwith the specified number of slices.- Specified by:
createin interfaceVoxelPartitionFactory<Histogram>- Parameters:
numSlices- the number of slices in the voxel partition- Returns:
- a new
VoxelPartitionHistograminstance
-
addUnused
Adds an unused histogram to the factory.This implementation does nothing, as histograms are not reused.
- Specified by:
addUnusedin interfaceVoxelPartitionFactory<Histogram>- Parameters:
part- the unused histogram
-