Interface ProcessBufferUnary<T>

Type Parameters:
T - buffer-type
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface
public interface ProcessBufferUnary<T>
Processes a 3D point like ProcessPoint but also retrieves a buffer for the current z-slice.

It is very similar to ProcessVoxelBufferUnary but uses buffer instead of a VoxelBuffer.

Author:
Owen Feehan
  • Method Summary

    Modifier and Type Method Description
    default void notifyChangeSlice​(int z)
    Notifies the processor that there has been a change in slice.
    void process​(Point3i point, T buffer, int offset)
    Processes a voxel location in a buffer.
  • Method Details

    • notifyChangeSlice

      default void notifyChangeSlice​(int z)
      Notifies the processor that there has been a change in slice.
      Parameters:
      z - the slice-index (global coordinates).
    • process

      void process​(Point3i point, T buffer, int offset)
      Processes a voxel location in a buffer.
      Parameters:
      point - a point with global coordinates.
      buffer - a buffer for the current slice for which {code offset} refers to a particular location.
      offset - an offset value for the current slice (i.e. indexing XY only, but not Z).