|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.bruxton.sidx.SIDX
public class SIDX
Represent the entire SIDX interface.
Each instance of SIDX can handle multiple cameras.
| Constructor Summary | |
|---|---|
SIDX()
|
|
| Method Summary | |
|---|---|
void |
close()
Close the instance of SIDX. |
Camera |
configureCamera(java.lang.String settings)
Open and configure a camera. |
Camera |
dialogCamera(Integer canceled)
Display a dialog for choosing a camera from the available cameras list on the running system. |
java.lang.String |
getCameraID(int index)
Given the index of a camera, the function returns the camera ID which can be used for setting up the connection to a camera. |
int |
getCameras()
Return the number of cameras that are connected to the system from all vendors that SIDX supports, including a Bruxton Demonstration camera which is a software-emulated camera and requires no hardware. |
java.lang.String |
getStatusText(int error)
Given an error code, the function returns the error message. |
Camera |
openCamera(java.lang.String cameraIdentification)
Open a camera with the default settings. |
Camera |
restoreDefaultSettings()
Restore the settings from the default settings file "default.sidx" from the file system directory that services as a common repository for the application-specific data. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SIDX()
throws Exception
Exception| Method Detail |
|---|
public void close()
Exception
public Camera openCamera(java.lang.String cameraIdentification)
throws Exception
cameraIdentification - the identification for the camera to open. The identification
indicates the driver that the camera uses and a specific camera index or name for
the driver to locate the camera on the system. The format of a camera identification
is shown in Camera identification
in SIDX.
If identification is not supplied, SIDX will look for a vendor and a camera
chosen by using dialogCamera. The function
will open the chosen camera. Or otherwise an exception will be thrown.
Exception
public Camera configureCamera(java.lang.String settings)
throws Exception
settings - the settings in XML format for the opening camera.
Exception
public Camera dialogCamera(Integer canceled)
throws Exception
Exception
public int getCameras()
throws Exception
Exception
public java.lang.String getCameraID(int index)
throws Exception
getCameras. Both you and
SIDX will not know how many cameras are available on the running system
until the function getCameras is called.
index - the index of a camera. It has to be less than the camera
count returned by getCameras.
Exception
public Camera restoreDefaultSettings()
throws Exception
Exception
public java.lang.String getStatusText(int error)
throws Exception
error - the error code.
Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||