Interface UpdatableBeforeCondition

All Known Implementing Classes:
AndCondition, NeighborhoodCondition, WrapAsUpdatable

public interface UpdatableBeforeCondition
A two-stage process for checking if two ObjectMasks should be merged.

This interface allows for a more efficient checking process:

  1. Set the source object (which may involve costly pre-computations)
  2. Check multiple destination objects against the pre-computed source

This approach is particularly useful for operations like growing object-masks to check for neighboring objects.

  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    accept(ObjectMask destination)
    Checks if the destination object should be merged with the previously set source object.
    void
    Updates the source object and performs any necessary pre-computations.