Class SelectMultipleObjectsToTrack
- 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.SelectMultipleObjectsToTrack
-
- 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 SelectMultipleObjectsToTrack extends adams.gui.visualization.image.selection.AbstractSelectionProcessorAllows the user to select multiple regions (ie objects) to track.
Uses 1-based index as suffix for enumerating locations.
When also holding the CTRL key down, this will delete any encompassed 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-prefix <adams.data.report.Field> (property: locationPrefix) The prefix for fields to store the location of the objects in (uses 1-based enumeration suffix). 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_LocationPrefixthe report field prefix to store the tracked locations in.
-
Constructor Summary
Constructors Constructor Description SelectMultipleObjectsToTrack()
-
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.FieldgetLocationPrefix()Returns the field to store the location of the object in.StringglobalInfo()Returns a string describing the object.StringlocationPrefixTipText()Returns the tip text for this property.voidsetLocationPrefix(adams.data.report.Field value)Sets the field prefix 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
-
setLocationPrefix
public void setLocationPrefix(adams.data.report.Field value)
Sets the field prefix to store the location of the object in. Uses 1-based index as suffix for enumerating locations.- Parameters:
value- the field
-
getLocationPrefix
public adams.data.report.Field getLocationPrefix()
Returns the field to store the location of the object in. Uses 1-based index as suffix for enumerating locations.- Returns:
- the field
-
locationPrefixTipText
public String locationPrefixTipText()
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
-
-