Class SelectObjectToTrack
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.gui.visualization.image.selection.AbstractSelectionProcessor
-
- adams.gui.visualization.image.selection.SelectObjectToTrack
-
- All Implemented Interfaces:
adams.core.Destroyable,adams.core.GlobalInfoSupporter,adams.core.logging.LoggingLevelHandler,adams.core.logging.LoggingSupporter,adams.core.option.OptionHandler,adams.core.ShallowCopySupporter<adams.gui.visualization.image.selection.SelectionProcessor>,adams.core.SizeOfHandler,adams.gui.event.ImagePanelSelectionListener,adams.gui.visualization.image.selection.SelectionProcessor,Serializable,EventListener
public class SelectObjectToTrack extends adams.gui.visualization.image.selection.AbstractSelectionProcessorAllows the user to select a region (ie object) to track.
When also holding the CTRL key down, this will delete any selected region.
-logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel) The logging level for outputting errors and debugging output. default: WARNING
-location <adams.data.report.Field> (property: location) The field to store the location of the object in. default: Tracker.Init[S]
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected adams.data.report.Fieldm_Locationthe report field to store the tracked location in.
-
Constructor Summary
Constructors Constructor Description SelectObjectToTrack()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddefineOptions()Adds options to the internal list of options.protected voiddoProcessSelection(adams.gui.visualization.image.ImagePanel panel, Point topLeft, Point bottomRight, List<Point> trace, int modifiersEx)Process the selection that occurred in the image panel.adams.data.report.FieldgetLocation()Returns the field to store the location of the object in.StringglobalInfo()Returns a string describing the object.StringlocationTipText()Returns the tip text for this property.voidsetLocation(adams.data.report.Field value)Sets the field to store the location of the object in.-
Methods inherited from class adams.gui.visualization.image.selection.AbstractSelectionProcessor
check, doImageChanged, imageChanged, processSelection, selected, shallowCopy, shallowCopy
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfoin interfaceadams.core.GlobalInfoSupporter- Specified by:
globalInfoin classadams.core.option.AbstractOptionHandler- Returns:
- a description suitable for displaying in the gui
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptionsin interfaceadams.core.option.OptionHandler- Overrides:
defineOptionsin classadams.core.option.AbstractOptionHandler
-
setLocation
public void setLocation(adams.data.report.Field value)
Sets the field to store the location of the object in.- Parameters:
value- the field
-
getLocation
public adams.data.report.Field getLocation()
Returns the field to store the location of the object in.- Returns:
- the field
-
locationTipText
public String locationTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
doProcessSelection
protected void doProcessSelection(adams.gui.visualization.image.ImagePanel panel, Point topLeft, Point bottomRight, List<Point> trace, int modifiersEx)Process the selection that occurred in the image panel.- Specified by:
doProcessSelectionin classadams.gui.visualization.image.selection.AbstractSelectionProcessor- Parameters:
panel- the origintopLeft- the top-left position of the selectionbottomRight- the bottom-right position of the selectiontrace- the trace from the selectionmodifiersEx- the associated modifiers
-
-