Class IndexByChannel<T>

Object
IndexByChannel<T>
Type Parameters:
T - The type of the voxel partition

public class IndexByChannel<T> extends Object
An index structure that organizes voxel partitions by channel.
  • Constructor Details

    • IndexByChannel

      public IndexByChannel()
  • Method Details

    • add

      public boolean add(IndexByRegion<T> e)
      Adds an IndexByRegion to the channel index.
      Parameters:
      e - The IndexByRegion to add
      Returns:
      true if the IndexByRegion was successfully added, false otherwise
    • initialize

      public void initialize(VoxelPartitionFactory<T> factory, int numChannel, int numRegions, int numSlices)
      Initializes the channel index with a specified number of channels, regions, and slices.
      Parameters:
      factory - The factory to create voxel partitions
      numChannel - The number of channels
      numRegions - The number of regions per channel
      numSlices - The number of slices per region
    • get

      public IndexByRegion<T> get(int index)
      Gets the IndexByRegion for a specific channel.
      Parameters:
      index - The index of the channel
      Returns:
      The IndexByRegion for the specified channel
    • size

      public int size()
      Gets the number of channels in the index.
      Returns:
      The number of channels
    • cleanUp

      public void cleanUp(VoxelPartitionFactory<T> factory)
      Cleans up the voxel partitions for all channels using the provided factory.
      Parameters:
      factory - The factory to use for cleanup