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 Histogram
s as parts.
This implementation creates VoxelPartitionHistogram
objects with histograms of 256
bins (0-255).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds an unused histogram to the factory.create
(int numSlices) Creates a newVoxelPartitionHistogram
with the specified number of slices.
-
Constructor Details
-
VoxelPartitonFactoryHistogram
public VoxelPartitonFactoryHistogram()
-
-
Method Details
-
create
Creates a newVoxelPartitionHistogram
with the specified number of slices.- Specified by:
create
in interfaceVoxelPartitionFactory<Histogram>
- Parameters:
numSlices
- the number of slices in the voxel partition- Returns:
- a new
VoxelPartitionHistogram
instance
-
addUnused
Adds an unused histogram to the factory.This implementation does nothing, as histograms are not reused.
- Specified by:
addUnused
in interfaceVoxelPartitionFactory<Histogram>
- Parameters:
part
- the unused histogram
-