Class FitPoints
- All Implemented Interfaces:
CompatibleWithMark
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe logger for recording errors.ThePointsFitter
used to fit points to a mark.ThePointsProposer
used to generate points.boolean
isCompatibleWith
(Mark testMark) Tests if the implementing object is compatible with a mark of a particular type.boolean
Whether to report fitter errors.boolean
propose
(VoxelizedMarkMemo inputMark, ProposerContext context) Proposes changes to the input mark according to the internal rules of the proposer.void
setPointsFitter
(PointsFitter pointsFitter) ThePointsFitter
used to fit points to a mark.void
setPointsProposer
(PointsProposer pointsProposer) ThePointsProposer
used to generate points.void
setReportFitterErrors
(boolean reportFitterErrors) Whether to report fitter errors.Methods inherited from class org.anchoranalysis.mpp.bean.MarksBean
initializerForMarksBeans
Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
FitPoints
public FitPoints()
-
-
Method Details
-
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
-
propose
public boolean propose(VoxelizedMarkMemo inputMark, ProposerContext context) throws ProposalAbnormalFailureException Description copied from class:MarkProposer
Proposes changes to the input mark according to the internal rules of the proposer.- Specified by:
propose
in classMarkProposer
- Parameters:
inputMark
- the mark to be modifiedcontext
- the context for the proposal- Returns:
- true if changes were proposed and applied, false otherwise
- Throws:
ProposalAbnormalFailureException
- if the proposal fails abnormally
-
getPointsProposer
ThePointsProposer
used to generate points. -
setPointsProposer
ThePointsProposer
used to generate points. -
getPointsFitter
ThePointsFitter
used to fit points to a mark. -
setPointsFitter
ThePointsFitter
used to fit points to a mark. -
isReportFitterErrors
public boolean isReportFitterErrors()Whether to report fitter errors. -
setReportFitterErrors
public void setReportFitterErrors(boolean reportFitterErrors) Whether to report fitter errors. -
getLogger
The logger for recording errors.- Overrides:
getLogger
in classInitializableBean<MarkProposer,
MarksInitialization> - Returns:
- the logger.
-