|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.lsst.ccs.drivers.rcm.ImageClient
public class ImageClient
Java interface to the image client routines
| Nested Class Summary | |
|---|---|
static interface |
ImageClient.Listener
Defines the data listener |
class |
ImageClient.ReadThread
Thread that obtains the image data for the listener |
| Constructor Summary | |
|---|---|
ImageClient()
|
|
| Method Summary | |
|---|---|
Image |
awaitImage(Image image)
Awaits an image. |
void |
clearListener()
Clears the data listener. |
void |
close()
Closes a connection. |
static void |
deleteImageMetadataRef(Image image)
Deletes an image's metadata reference. |
protected void |
finalize()
Finalizer |
boolean |
getImage(Image image)
Reads an image. |
void |
open(int id)
Opens a connection. |
boolean |
readImage(Image image)
Reads an image. |
void |
setListener(ImageClient.Listener listener,
Image image)
Sets the data listener. |
Image |
waitForImage(Image image)
Awaits an image. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImageClient()
| Method Detail |
|---|
protected void finalize()
throws Throwable
finalize in class ObjectThrowable
public void open(int id)
throws RcmException
id - The ID of the RCM to connect to
RcmException
public void close()
throws RcmException
RcmException
public Image awaitImage(Image image)
throws RcmException
image - An Image object in which to save the reference and
metadata for the new image, or null if a new image
object is to be created.
RcmException
public boolean readImage(Image image)
throws RcmException
image - The Image object containing the valid metadata for an
image. If the contained pixel data byte array is not
null and is large enough, the pixel data us stored
there. Otherwise a new array is created.
RcmExceptionpublic static void deleteImageMetadataRef(Image image)
image - The image whose metadata reference is to be deleted.
public void setListener(ImageClient.Listener listener,
Image image)
listener - The listener object to be set as the listener. Any
existing listener is replaced.image - An image object to be used to contain received
images, or null if a new object is to be created
each time.public void clearListener()
public Image waitForImage(Image image)
image - An Image object in which to save the reference and
metadata for the new image, or null if a new image
object is to be created.
public boolean getImage(Image image)
image - The Image object containing the valid metadata for an
image. If the contained pixel data byte array is not
null and is large enough, the pixel data us stored
there. Otherwise a new array is created.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||