Class Reference
- All Implemented Interfaces:
CompatibleWithMark
A
PointsFitter
that references another PointsFitter
by its ID.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
fit
(List<Point3f> points, Mark mark, Dimensions dimensions) Fits a mark to a set of points within given dimensions.getId()
The ID of the referencedPointsFitter
.boolean
isCompatibleWith
(Mark testMark) Tests if the implementing object is compatible with a mark of a particular type.void
Called after initialization.void
The ID of the referencedPointsFitter
.Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized
Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
Reference
public Reference()
-
-
Method Details
-
onInitialization
Description copied from class:InitializableBean
Called after initialization. An empty implementation is provided, to be overridden as needed in the sub-classes.- Overrides:
onInitialization
in classInitializableBean<PointsFitter,
PointsInitialization> - Parameters:
so
- parameters used for initialization.- Throws:
InitializeException
- if initialization does not successfully complete.
-
isCompatibleWith
Description copied from interface:CompatibleWithMark
Tests if the implementing object is compatible with a mark of a particular type.- Parameters:
testMark
- the mark to test for compatibility- Returns:
- true if the implementing object is compatible with the given mark, false otherwise
-
fit
public void fit(List<Point3f> points, Mark mark, Dimensions dimensions) throws PointsFitterException, InsufficientPointsException Description copied from class:PointsFitter
Fits a mark to a set of points within given dimensions.- Specified by:
fit
in classPointsFitter
- Parameters:
points
- the list of points to fit the mark tomark
- the mark to be fitted (will be modified)dimensions
- the dimensions within which the fitting occurs- Throws:
PointsFitterException
- if an error occurs during the fitting processInsufficientPointsException
- if there are not enough points to perform the fitting
-
getId
The ID of the referencedPointsFitter
. -
setId
The ID of the referencedPointsFitter
.
-