All Implemented Interfaces:
Provider<Mask>, ProviderAsStack

public class Invert extends MaskProviderUnary
Switches on voxels to off and vice-versa.

By default, this occurs by modifying the associated binary-values (an index) rather than modifying the voxel buffers.

Author:
Owen Feehan
  • Constructor Details

    • Invert

      public Invert()
  • Method Details

    • createFromMask

      public Mask createFromMask(Mask maskToInvert) throws ProvisionFailedException
      Description copied from class: MaskProviderUnary
      Creates a Mask given the entity provided by the delegate.
      Specified by:
      createFromMask in class MaskProviderUnary
      Parameters:
      maskToInvert - the entity provided by the delegate.
      Returns:
      the created Mask that is returned by the provider.
      Throws:
      ProvisionFailedException - if the provider cannot complete successfully.
    • getRestrictTo

      public MaskProvider getRestrictTo()
      If set, the inversion only occurs on a particular region of the mask, as determined by this mask
    • setRestrictTo

      public void setRestrictTo(MaskProvider restrictTo)
      If set, the inversion only occurs on a particular region of the mask, as determined by this mask
    • isForceChangeBytes

      public boolean isForceChangeBytes()
      If true, rather than modifying the binary-values (an index) bytes are modified in the buffer to reflect the existing binary-values.
    • setForceChangeBytes

      public void setForceChangeBytes(boolean forceChangeBytes)
      If true, rather than modifying the binary-values (an index) bytes are modified in the buffer to reflect the existing binary-values.