Class AndKernel
Object
Kernel
BinaryKernel
AndKernel
Combines two
BinaryKernels so that they only a true value exists only at a point where
both kernels return true.
This implements a logical and operator.
- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsConstructorDescriptionAndKernel(BinaryKernel kernel1, BinaryKernel kernel2) Create for the two kernels. -
Method Summary
Modifier and TypeMethodDescriptionbooleancalculateAt(KernelPointCursor point) Calculates the boolean at a particular point.voidnotifyBuffer(LocalSlices slices, int sliceIndex) Called to inform theKernelof buffers that are currently being processed.
-
Constructor Details
-
AndKernel
Create for the two kernels.- Parameters:
kernel1- the first kernel.kernel2- the second kernel.
-
-
Method Details
-
notifyBuffer
Description copied from class:KernelCalled to inform theKernelof buffers that are currently being processed.Only a single z-slice is processed at a particular time.
This should be repeatedly called each time the focus changes to a different z-slice.
- Specified by:
notifyBufferin classKernel- Parameters:
slices- slices that can be processed by the kernel, localized to a current local area of focus.sliceIndex- the global z-index of the slice that is currently the focus of the kernel.
-
calculateAt
Description copied from class:BinaryKernelCalculates the boolean at a particular point.- Specified by:
calculateAtin classBinaryKernel- Parameters:
point- the point.- Returns:
- the boolean result at this point.
-