Class Recorder

java.lang.Object
de.pco.recorder.Recorder

public class Recorder
extends Object
Class that wraps for Java the basic C functions of the pco.recorder
Author:
PCO
  • Constructor Details

    • Recorder

      public Recorder​(long cameraHandle)
      Constructor, loads the necessary DLLs
  • Method Details

    • getRecorderHandle

      public long getRecorderHandle()
      C pointer of the recorder, currently created in this Recorder class by the Recorder.create function
      Returns:
      camera handle
    • getLastCallWarning

      public Warning getLastCallWarning()
      If the last call of a native function of the current Recorder object returned a Warning, it can be obtained from here
      Returns:
    • create

      public long create​(RecorderMode mode) throws PcoException
      Wrapped PCO_RecorderCreate function.
      Parameters:
      mode -
      Returns:
      Maximum image count
      Throws:
      PcoException
    • init

      public void init​(long numberOfImages, RecorderTypeByMemoryMode recorderType) throws PcoException
      Wrapped PCO_RecorderInit function.
      Parameters:
      numberOfImages -
      recorderType -
      Throws:
      PcoException
    • startRecord

      public void startRecord() throws PcoException
      Wrapped PCO_RecorderStartRecord function.
      Throws:
      PcoException
    • stopRecord

      public void stopRecord() throws PcoException
      Wrapped PCO_RecorderStopRecord function.
      Throws:
      PcoException
    • getStatus

      public GetStatusReturn getStatus() throws PcoException
      Wrapped PCO_RecorderGetStatus function.
      Throws:
      PcoException
    • getSettings

      public GetSettingsReturn getSettings() throws PcoException
      Wrapped PCO_RecorderGetSettings function.
      Throws:
      PcoException
    • copyImage

      public ImageData copyImage​(long imgIdx, int roiX0, int roiY0, int roiX1, int roiY1) throws PcoException
      Wrapped PCO_RecorderCopyImage function.
      Throws:
      PcoException
    • delete

      public void delete() throws PcoException
      Wrapped PCO_RecorderDelete function.
      Throws:
      PcoException
    • finalize

      protected void finalize() throws Throwable
      Overrides:
      finalize in class Object
      Throws:
      Throwable
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals​(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object