Class CalculateIntersecting
- All Implemented Interfaces:
ResettableCalculation
public class CalculateIntersecting
extends CalculateInputFromDelegate<FeatureInputPairObjects,FeatureInputSingleObject,ObjectCollection>
Calculates a
FeatureInputPairObjects from a FeatureInputSingleObject and an
intersecting ObjectCollection.-
Constructor Summary
ConstructorsConstructorDescriptionCalculateIntersecting(ResolvedPart<ObjectCollection, FeatureInputSingleObject> intersecting, int index) Creates a newCalculateIntersectinginstance. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanprotected FeatureInputPairObjectsderiveFromDelegate(FeatureInputSingleObject input, ObjectCollection delegate) Derives the result from the delegate calculation.booleaninthashCode()Methods inherited from class org.anchoranalysis.plugin.image.feature.object.calculation.delegate.CalculateInputFromDelegate
execute, getDelegateMethods inherited from class org.anchoranalysis.feature.calculate.part.CalculationPart
getOrCalculate, hasCachedResult, invalidate
-
Constructor Details
-
CalculateIntersecting
public CalculateIntersecting(ResolvedPart<ObjectCollection, FeatureInputSingleObject> intersecting, int index) Creates a newCalculateIntersectinginstance.- Parameters:
intersecting- the resolved part containing the intersecting objectsindex- the index of the object in the intersecting collection to use
-
-
Method Details
-
deriveFromDelegate
protected FeatureInputPairObjects deriveFromDelegate(FeatureInputSingleObject input, ObjectCollection delegate) Description copied from class:CalculateInputFromDelegateDerives the result from the delegate calculation.- Specified by:
deriveFromDelegatein classCalculateInputFromDelegate<FeatureInputPairObjects,FeatureInputSingleObject, ObjectCollection> - Parameters:
input- the input for the calculationdelegate- the result of the delegate calculation- Returns:
- the derived result
-
equals
- Overrides:
equalsin classCalculateInputFromDelegate<FeatureInputPairObjects,FeatureInputSingleObject, ObjectCollection>
-
canEqual
- Overrides:
canEqualin classCalculateInputFromDelegate<FeatureInputPairObjects,FeatureInputSingleObject, ObjectCollection>
-
hashCode
public int hashCode()- Overrides:
hashCodein classCalculateInputFromDelegate<FeatureInputPairObjects,FeatureInputSingleObject, ObjectCollection>
-