com.bruxton.sidx
Class Trigger

java.lang.Object
  extended by com.bruxton.sidx.Trigger

public class Trigger
extends java.lang.Object

Responsible for managing the trigger mode for the camera. Each instance of Camera can own one instance of the class. The user of SIDX should not create the object. It should be obtained by using getTrigger function of Camera object.


Method Summary
 int getMode()
          Obtain the current trigger mode setting.
 boolean isModeAvailable(int mode)
          Inquire if a trigger mode is supported by the camera.
 void setMode(int mode)
          Set a trigger mode.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setMode

public void setMode(int mode)
             throws Exception
Set a trigger mode. The available trigger modes are listed in the following table. The trigger modes may not be supported by all cameras. The function will throw an exception if a trigger mode is not supported on a particular camera. Use isModeAvailable to find out if a mode is supported by the camera.
modeDescription
0Start exposures without an external trigger. Make the duration of each exposure time constant.
1Start exposures without an external trigger. The exposure duration may be changed.
2Use an external trigger to start a single exposure
3Use an external trigger to start a sequence of exposures
4Use an external trigger to start and stop a sequence of exposures

Parameters:
mode - the trigger mode to use.
Throws:
Exception

isModeAvailable

public boolean isModeAvailable(int mode)
                        throws Exception
Inquire if a trigger mode is supported by the camera.

Parameters:
mode - the trigger mode that you wish to use. It should be one of the trigger modes defined for setMode.
Returns:
true if the trigger mode is supported by the camera. Otherwise false.
Throws:
Exception

getMode

public int getMode()
Obtain the current trigger mode setting.

Returns:
the current trigger mode setting. See setMode for the description of each mode.