com.github.sarxos.webcam.ds.civil
Class CivilDevice

java.lang.Object
  extended by com.github.sarxos.webcam.ds.civil.CivilDevice
All Implemented Interfaces:
com.github.sarxos.webcam.WebcamDevice, com.lti.civil.CaptureObserver

public class CivilDevice
extends Object
implements com.github.sarxos.webcam.WebcamDevice, com.lti.civil.CaptureObserver

Webcam device - implementation for LTI Civil framework.

Author:
Bartosz Firyn (SarXos)

Constructor Summary
CivilDevice(com.lti.civil.CaptureDeviceInfo cdi)
           
 
Method Summary
 void close()
           
 BufferedImage getImage()
           
 String getName()
           
 Dimension getSize()
           
 Dimension[] getSizes()
           
 void onError(com.lti.civil.CaptureStream stream, com.lti.civil.CaptureException e)
           
 void onNewImage(com.lti.civil.CaptureStream stream, com.lti.civil.Image image)
           
 void open()
           
 void setSize(Dimension d)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CivilDevice

public CivilDevice(com.lti.civil.CaptureDeviceInfo cdi)
Method Detail

getName

public String getName()
Specified by:
getName in interface com.github.sarxos.webcam.WebcamDevice

getSizes

public Dimension[] getSizes()
Specified by:
getSizes in interface com.github.sarxos.webcam.WebcamDevice

getImage

public BufferedImage getImage()
Specified by:
getImage in interface com.github.sarxos.webcam.WebcamDevice

onError

public void onError(com.lti.civil.CaptureStream stream,
                    com.lti.civil.CaptureException e)
Specified by:
onError in interface com.lti.civil.CaptureObserver

onNewImage

public void onNewImage(com.lti.civil.CaptureStream stream,
                       com.lti.civil.Image image)
Specified by:
onNewImage in interface com.lti.civil.CaptureObserver

open

public void open()
Specified by:
open in interface com.github.sarxos.webcam.WebcamDevice

close

public void close()
Specified by:
close in interface com.github.sarxos.webcam.WebcamDevice

getSize

public Dimension getSize()
Specified by:
getSize in interface com.github.sarxos.webcam.WebcamDevice

setSize

public void setSize(Dimension d)
Specified by:
setSize in interface com.github.sarxos.webcam.WebcamDevice


Copyright © 2012. All Rights Reserved.