Package adams.data.video
Class AbstractWebcamRecorder
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.data.video.AbstractRecorder
-
- adams.data.video.AbstractFileBaseRecorder
-
- adams.data.video.AbstractVideoRecorder
-
- adams.data.video.AbstractWebcamRecorder
-
- All Implemented Interfaces:
adams.core.Destroyable
,adams.core.GlobalInfoSupporter
,adams.core.logging.LoggingLevelHandler
,adams.core.logging.LoggingSupporter
,adams.core.option.OptionHandler
,adams.core.SizeOfHandler
,Serializable
- Direct Known Subclasses:
SarxosWebcamRecorder
public abstract class AbstractWebcamRecorder extends AbstractVideoRecorder
Ancestor for webcam recorders.- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected int
m_Height
the height of the screen portion to grab (-1 = remainder).protected String
m_ID
the ID of the webcam.protected int
m_Width
the width of the screen portion to grab (-1 = remainder).-
Fields inherited from class adams.data.video.AbstractVideoRecorder
m_FramesPerSecond
-
Fields inherited from class adams.data.video.AbstractFileBaseRecorder
m_Output
-
-
Constructor Summary
Constructors Constructor Description AbstractWebcamRecorder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
defineOptions()
Adds options to the internal list of options.int
getHeight()
Returns the height of the webcam.String
getID()
Returns the ID of the webcam to use.int
getWidth()
Returns the width of the webcam.String
heightTipText()
Returns the tip text for this property.String
IDTipText()
Returns the tip text for this property.void
setHeight(int value)
Sets the height of the webcam.void
setID(String value)
Sets the ID of the webcam to use.void
setWidth(int value)
Sets the width of the webcam.String
widthTipText()
Returns the tip text for this property.-
Methods inherited from class adams.data.video.AbstractVideoRecorder
framesPerSecondTipText, getFramesPerSecond, setFramesPerSecond
-
Methods inherited from class adams.data.video.AbstractFileBaseRecorder
getDefaultOutput, getOutput, outputTipText, setOutput
-
Methods inherited from class adams.data.video.AbstractRecorder
configure, doConfigure
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, globalInfo, initialize, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Field Detail
-
m_ID
protected String m_ID
the ID of the webcam.
-
m_Width
protected int m_Width
the width of the screen portion to grab (-1 = remainder).
-
m_Height
protected int m_Height
the height of the screen portion to grab (-1 = remainder).
-
-
Method Detail
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptions
in interfaceadams.core.option.OptionHandler
- Overrides:
defineOptions
in classAbstractVideoRecorder
-
setID
public void setID(String value)
Sets the ID of the webcam to use.- Parameters:
value
- the ID
-
getID
public String getID()
Returns the ID of the webcam to use.- Returns:
- the ID
-
IDTipText
public String IDTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setWidth
public void setWidth(int value)
Sets the width of the webcam.- Parameters:
value
- the width
-
getWidth
public int getWidth()
Returns the width of the webcam.- Returns:
- the width
-
widthTipText
public String widthTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setHeight
public void setHeight(int value)
Sets the height of the webcam.- Parameters:
value
- the height
-
getHeight
public int getHeight()
Returns the height of the webcam.- Returns:
- the height
-
heightTipText
public String heightTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
-