Interface VoxelPartition<T>

Type Parameters:
T - The type representing the voxel partition
All Known Implementing Classes:
VoxelPartitionHistogram

public interface VoxelPartition<T>
A partition of voxel values by slice.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addForSlice(int sliceID, int val)
    Adds a value to the voxel partition for a specific slice.
    void
    Cleans up the voxel partition using the provided factory.
    Gets the combined voxel partition for all slices.
    getSlice(int sliceID)
    Gets the voxel partition for a specific slice.
    int
    Gets the number of slices in the partition.
  • Method Details

    • getSlice

      T getSlice(int sliceID)
      Gets the voxel partition for a specific slice. This method should only be used for read-only operations to maintain integrity with the combined list.
      Parameters:
      sliceID - The ID of the slice
      Returns:
      The voxel partition for the specified slice
    • addForSlice

      void addForSlice(int sliceID, int val)
      Adds a value to the voxel partition for a specific slice.
      Parameters:
      sliceID - The ID of the slice
      val - The value to add
    • getCombined

      T getCombined()
      Gets the combined voxel partition for all slices. This method should only be used for read-only operations.
      Returns:
      The combined voxel partition
    • cleanUp

      void cleanUp(VoxelPartitionFactory<T> factory)
      Cleans up the voxel partition using the provided factory.
      Parameters:
      factory - The factory to use for cleanup
    • numberSlices

      int numberSlices()
      Gets the number of slices in the partition.
      Returns:
      The number of slices