Class ProcessVoxelNeighborFactory
Object
ProcessVoxelNeighborFactory
Creates
ProcessVoxelNeighbor
to match certain circumstances.- Author:
- Owen Feehan
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ProcessVoxelNeighbor
<T> within
(Optional<ObjectMask> containingMask, Extent extentFallback, ProcessVoxelNeighborAbsolute<T> process) Creates to process neighbors that must lie within either an object-mask or an extent (as a fallback).static <T> ProcessVoxelNeighbor
<T> Creates to process neighbors that must lie within an extent.static <T> ProcessVoxelNeighbor
<T> withinMask
(ObjectMask object, ProcessChangedPointAbsoluteMasked<T> process) Creates to process neighbors that must lie within anObjectMask
.static <T> ProcessVoxelNeighbor
<T> withinMask
(ObjectMask object, ProcessVoxelNeighborAbsolute<T> process) Creates to process neighbors that must lie within anObjectMask
.
-
Method Details
-
within
public static <T> ProcessVoxelNeighbor<T> within(Optional<ObjectMask> containingMask, Extent extentFallback, ProcessVoxelNeighborAbsolute<T> process) Creates to process neighbors that must lie within either an object-mask or an extent (as a fallback).- Parameters:
containingMask
- if defined, the process is restricted to only process points within this object-mask.extentFallback
- ifcontainingMask
is not defined, then as a fallback, the process is restricted to only process points in this extent.process
- a process which will be wrapped inside a restriction.- Returns:
- a new process with a restriction on the existing process.
-
withinExtent
public static <T> ProcessVoxelNeighbor<T> withinExtent(ProcessVoxelNeighborAbsoluteWithSlidingBuffer<T> process) Creates to process neighbors that must lie within an extent.The extent is derived from the
SlidingBuffer
associated withprocess
.- Parameters:
process
- a process which will be wrapped inside a restriction.- Returns:
- a new process with a restriction on the existing process.
-
withinMask
public static <T> ProcessVoxelNeighbor<T> withinMask(ObjectMask object, ProcessChangedPointAbsoluteMasked<T> process) Creates to process neighbors that must lie within anObjectMask
.- Parameters:
object
- the object-mask voxels must lie within.process
- a process which will be wrapped inside a restriction.- Returns:
- a new process with a restriction on the existing process.
-
withinMask
public static <T> ProcessVoxelNeighbor<T> withinMask(ObjectMask object, ProcessVoxelNeighborAbsolute<T> process) Creates to process neighbors that must lie within anObjectMask
.- Parameters:
object
- the object-mask voxels must lie within.process
- a process which will be wrapped inside a restriction.- Returns:
- a new process with a restriction on the existing process.
-