Advertisement
Guest User

Untitled

a guest
Mar 5th, 2015
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 1.26 KB | None | 0 0
  1. object API {
  2.  
  3.   var selectedMode = Modes.BALANCED
  4.   var currentState = State.NOT_READY
  5.  
  6.   /**
  7.    * Moves everything at scanner to according positions, then takes picture and returns file of png data.
  8.    * This method blocks until all hardware movements are done and picture taken
  9.    * @return File with png data of new frame or null if scanning was completed or canceled by user or hardware failure
  10.    */
  11.   def nextFrame:File
  12.  
  13.   /**
  14.    * Call this method before every scan. This method ensures that hardware is in right position and
  15.    * eventually blocks until it gets there. <br>
  16.    * When not called, no exception will be intentionally thrown, but keep in mind that some exceptions like problem with communicating with hardware or so can be thrown. It is your responsibility to ensure machine is ready before every scan!
  17.    * @param mode mode you will use while scanning
  18.    */
  19.   def makeReady(mode: Modes)
  20.  
  21.  
  22.   /**
  23.    * Gets rotation of plate.
  24.    * @return Rotation of plate. In degrees.
  25.    */
  26.   def plateRotation: Float
  27.  
  28.   /**
  29.    * Gets rotation of laser.<br>
  30.    * Value 0 means pointed parallel with camera center ray<br>
  31.    * Value 90 means pointed directly at the camera
  32.    * @return Rotation of plate. In degrees.
  33.    */
  34.   def laserRotation: Float
  35.  
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement