Package qupath.lib.gui.measure
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 SummaryModifier and TypeMethodDescriptionList<LazyValue<PathObject, ?>> createValues(PathObjectListWrapper wrapper) Create the lazy values for the objects contained in the wrapper.static PathObjectValueFactoryjoin(Collection<? extends PathObjectValueFactory> factories) Join multiple factories for a collection to create all of their values.static PathObjectValueFactoryjoin(PathObjectValueFactory... factories) Join multiple factories to create all of their values.
- 
Method Details- 
createValuesCreate 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
 
- 
joinJoin multiple factories for a collection to create all of their values.- Parameters:
- factories-
- Returns:
 
- 
joinJoin multiple factories to create all of their values.- Parameters:
- factories-
- Returns:
 
 
-