Package adams.data.objectfilter
Class SelfIntersectingPolygons
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.data.objectfilter.AbstractObjectFilter
-
- adams.data.objectfilter.SelfIntersectingPolygons
-
- All Implemented Interfaces:
Destroyable,GlobalInfoSupporter,LoggingLevelHandler,LoggingSupporter,OptionHandler,QuickInfoSupporter,SizeOfHandler,ObjectFilter,FlowContextHandler,Serializable
public class SelfIntersectingPolygons extends AbstractObjectFilter
Looks for self-intersection polygons and applies the selected action.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSelfIntersectingPolygons.ActionThe action to perform.
-
Field Summary
Fields Modifier and Type Field Description protected SelfIntersectingPolygons.Actionm_Actionthe action to perform.protected Stringm_Fieldthe boolean label to use in the object's meta-data when flagging them.-
Fields inherited from class adams.data.objectfilter.AbstractObjectFilter
m_FlowContext
-
Fields inherited from class adams.core.option.AbstractOptionHandler
m_OptionManager
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description SelfIntersectingPolygons()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringactionTipText()Returns the tip text for this property.voiddefineOptions()Adds options to the internal list of options.protected LocatedObjectsdoFilter(LocatedObjects objects)Filters the image objects.StringfieldTipText()Returns the tip text for this property.SelfIntersectingPolygons.ActiongetAction()Returns the action to perform.StringgetField()Returns the field to store the self-intersect state in.StringglobalInfo()Returns a string describing the object.voidsetAction(SelfIntersectingPolygons.Action value)Sets the action to perform.voidsetField(String value)Sets the field to store the self-intersect state in.-
Methods inherited from class adams.data.objectfilter.AbstractObjectFilter
check, filter, getFlowContext, getQuickInfo, requiresFlowContext, setFlowContext
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, reset, toCommandLine, toString
-
Methods inherited from class adams.core.logging.CustomLoggingLevelObject
setLoggingLevel
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.core.Destroyable
destroy
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
Methods inherited from interface adams.core.option.OptionHandler
cleanUpOptions, getOptionManager, toCommandLine
-
-
-
-
Field Detail
-
m_Action
protected SelfIntersectingPolygons.Action m_Action
the action to perform.
-
m_Field
protected String m_Field
the boolean label to use in the object's meta-data when flagging them.
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfoin interfaceGlobalInfoSupporter- Specified by:
globalInfoin classAbstractOptionHandler- Returns:
- a description suitable for displaying in the gui
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptionsin interfaceOptionHandler- Overrides:
defineOptionsin classAbstractOptionHandler
-
setAction
public void setAction(SelfIntersectingPolygons.Action value)
Sets the action to perform.- Parameters:
value- the action
-
getAction
public SelfIntersectingPolygons.Action getAction()
Returns the action to perform.- Returns:
- the action
-
actionTipText
public String actionTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setField
public void setField(String value)
Sets the field to store the self-intersect state in.- Parameters:
value- the field
-
getField
public String getField()
Returns the field to store the self-intersect state in.- Returns:
- the field
-
fieldTipText
public String fieldTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
doFilter
protected LocatedObjects doFilter(LocatedObjects objects)
Filters the image objects.- Specified by:
doFilterin classAbstractObjectFilter- Parameters:
objects- the objects to filter- Returns:
- the updated object list
-
-