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 newCalculateIntersecting
instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
protected FeatureInputPairObjects
deriveFromDelegate
(FeatureInputSingleObject input, ObjectCollection delegate) Derives the result from the delegate calculation.boolean
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
-
Constructor Details
-
CalculateIntersecting
public CalculateIntersecting(ResolvedPart<ObjectCollection, FeatureInputSingleObject> intersecting, int index) Creates a newCalculateIntersecting
instance.- 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:CalculateInputFromDelegate
Derives the result from the delegate calculation.- Specified by:
deriveFromDelegate
in classCalculateInputFromDelegate<FeatureInputPairObjects,
FeatureInputSingleObject, ObjectCollection> - Parameters:
input
- the input for the calculationdelegate
- the result of the delegate calculation- Returns:
- the derived result
-
equals
- Overrides:
equals
in classCalculateInputFromDelegate<FeatureInputPairObjects,
FeatureInputSingleObject, ObjectCollection>
-
canEqual
- Overrides:
canEqual
in classCalculateInputFromDelegate<FeatureInputPairObjects,
FeatureInputSingleObject, ObjectCollection>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classCalculateInputFromDelegate<FeatureInputPairObjects,
FeatureInputSingleObject, ObjectCollection>
-