Class CalculateIntersecting

Object
org.anchoranalysis.feature.calculate.part.CalculationPart<S,​T>
org.anchoranalysis.plugin.image.feature.object.calculation.delegate.CalculateInputFromDelegate<org.anchoranalysis.image.feature.input.FeatureInputPairObjects,​org.anchoranalysis.image.feature.input.FeatureInputSingleObject,​org.anchoranalysis.image.voxel.object.ObjectCollection>
org.anchoranalysis.plugin.image.feature.bean.object.single.shared.intersecting.CalculateIntersecting
All Implemented Interfaces:
org.anchoranalysis.feature.calculate.cache.ResettableCalculation

public class CalculateIntersecting
extends CalculateInputFromDelegate<org.anchoranalysis.image.feature.input.FeatureInputPairObjects,​org.anchoranalysis.image.feature.input.FeatureInputSingleObject,​org.anchoranalysis.image.voxel.object.ObjectCollection>
Calculates a FeatureInputPairObjects from a FeatureInputSingleObject and an intersecting ObjectCollection.
  • Constructor Summary

    Constructors 
    Constructor Description
    CalculateIntersecting​(org.anchoranalysis.feature.calculate.cache.part.ResolvedPart<org.anchoranalysis.image.voxel.object.ObjectCollection,​org.anchoranalysis.image.feature.input.FeatureInputSingleObject> intersecting, int index)
    Creates a new CalculateIntersecting instance.
  • Method Summary

    Modifier and Type Method Description
    protected boolean canEqual​(Object other)  
    protected org.anchoranalysis.image.feature.input.FeatureInputPairObjects deriveFromDelegate​(org.anchoranalysis.image.feature.input.FeatureInputSingleObject input, org.anchoranalysis.image.voxel.object.ObjectCollection delegate)
    Derives the result from the delegate calculation.
    boolean equals​(Object o)  
    int hashCode()  

    Methods inherited from class org.anchoranalysis.plugin.image.feature.object.calculation.delegate.CalculateInputFromDelegate

    execute, getDelegate

    Methods inherited from class org.anchoranalysis.feature.calculate.part.CalculationPart

    getOrCalculate, hasCachedResult, invalidate

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CalculateIntersecting

      public CalculateIntersecting​(org.anchoranalysis.feature.calculate.cache.part.ResolvedPart<org.anchoranalysis.image.voxel.object.ObjectCollection,​org.anchoranalysis.image.feature.input.FeatureInputSingleObject> intersecting, int index)
      Creates a new CalculateIntersecting instance.
      Parameters:
      intersecting - the resolved part containing the intersecting objects
      index - the index of the object in the intersecting collection to use
  • Method Details

    • deriveFromDelegate

      protected org.anchoranalysis.image.feature.input.FeatureInputPairObjects deriveFromDelegate​(org.anchoranalysis.image.feature.input.FeatureInputSingleObject input, org.anchoranalysis.image.voxel.object.ObjectCollection delegate)
      Description copied from class: CalculateInputFromDelegate
      Derives the result from the delegate calculation.
      Specified by:
      deriveFromDelegate in class CalculateInputFromDelegate<org.anchoranalysis.image.feature.input.FeatureInputPairObjects,​org.anchoranalysis.image.feature.input.FeatureInputSingleObject,​org.anchoranalysis.image.voxel.object.ObjectCollection>
      Parameters:
      input - the input for the calculation
      delegate - the result of the delegate calculation
      Returns:
      the derived result
    • equals

      public boolean equals​(Object o)
      Overrides:
      equals in class CalculateInputFromDelegate<org.anchoranalysis.image.feature.input.FeatureInputPairObjects,​org.anchoranalysis.image.feature.input.FeatureInputSingleObject,​org.anchoranalysis.image.voxel.object.ObjectCollection>
    • canEqual

      protected boolean canEqual​(Object other)
      Overrides:
      canEqual in class CalculateInputFromDelegate<org.anchoranalysis.image.feature.input.FeatureInputPairObjects,​org.anchoranalysis.image.feature.input.FeatureInputSingleObject,​org.anchoranalysis.image.voxel.object.ObjectCollection>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class CalculateInputFromDelegate<org.anchoranalysis.image.feature.input.FeatureInputPairObjects,​org.anchoranalysis.image.feature.input.FeatureInputSingleObject,​org.anchoranalysis.image.voxel.object.ObjectCollection>