Interface PathObjectValueFactory

All Known Implementing Classes:
MeasurementListValueFactory, MetadataValueFactory

public interface PathObjectValueFactory
Interface defining a way to create lazy values from an image and associated objects.

This purpose of this is to help define 'smart' measurements and measurement tables, which adapt to the image and objects that should be measured.

  • Method Details

    • createValues

      List<LazyValue<PathObject,?>> createValues(PathObjectListWrapper wrapper)
      Create the lazy values for the objects contained in the wrapper.

      A simple implementation might return a fixed list of lazy values that extract properties common to all objects. But other implementations might query the objects to be measured, and return values that are relevant to their contents.

      Parameters:
      wrapper - a wrapper that encapsulate the relevant objects and the image they belong to
      Returns:
      a list of lazy values
    • join

      static PathObjectValueFactory join(Collection<? extends PathObjectValueFactory> factories)
      Join multiple factories for a collection to create all of their values.
      Parameters:
      factories -
      Returns:
    • join

      static PathObjectValueFactory join(PathObjectValueFactory... factories)
      Join multiple factories to create all of their values.
      Parameters:
      factories -
      Returns: