public class TestImage extends Object implements ImageClient.Listener
| Modifier and Type | Class and Description |
|---|---|
static class |
TestImage.OnOff
Enumeration for on/off.
|
| Constructor and Description |
|---|
TestImage() |
| Modifier and Type | Method and Description |
|---|---|
String |
awaitImage()
Waits for an image to arrive.
|
void |
connect(int id)
Connects to an RCM.
|
void |
connect(int id,
String ifcName)
Connects to an RCM.
|
void |
disconnect()
Disconnects from an RCM.
|
String |
display(int length)
Displays image data.
|
String |
display(int length,
int offset)
Displays image data.
|
String |
listen(TestImage.OnOff action)
Turns the listener on or off.
|
String |
metadata()
Displays image metadata.
|
void |
processImage(Image img)
Handles each received image.
|
String |
read()
Reads an image.
|
void |
region(int length)
Sets the internal image display region.
|
void |
region(int length,
int offset)
Sets the internal image display region.
|
void |
reuse(TestImage.OnOff action)
Turns image data buffer re-use on or off.
|
String |
show()
Displays parameters.
|
void |
time(TestImage.OnOff action)
Turns image acquisition time display on or off.
|
@Command(name="connect",
description="Connect to an RCM")
public void connect(@Argument(name="id",description="RCM ID")
int id)
throws RcmException
RcmException@Command(name="connect",
description="Connect to an RCM")
public void connect(@Argument(name="id",description="RCM ID")
int id,
@Argument(name="ifcname",description="Network interface name")
String ifcName)
throws RcmException
RcmException@Command(name="disconnect",
description="Disconnect from an RCM")
public void disconnect()
throws RcmException
RcmException@Command(name="reuse",
description="Enable or disable image buffer re-use")
public void reuse(@Argument(name="action",description="Action to take")
TestImage.OnOff action)
@Command(name="time",
description="Enable or disable time display")
public void time(@Argument(name="action",description="Action to take")
TestImage.OnOff action)
@Command(name="listen",
description="Enable or disable the listener")
public String listen(@Argument(name="action",description="Action to take")
TestImage.OnOff action)
@Command(name="region",
description="Set the image display region")
public void region(@Argument(name="length",description="The region length (pixels)")
int length)
@Command(name="region",
description="Set the image display region")
public void region(@Argument(name="length",description="The region length (pixels)")
int length,
@Argument(name="offset",description="The offset to the region (pixels)")
int offset)
@Command(name="show",
description="Display parameters")
public String show()
@Command(name="wait",
description="Wait for an image to arrive")
public String awaitImage()
throws RcmException
RcmException@Command(name="read",
description="Read an image")
public String read()
throws RcmException
RcmException@Command(name="display",
description="Display image data")
public String display(@Argument(name="length",description="The display region length (pixels)")
int length)
@Command(name="display",
description="Display image data")
public String display(@Argument(name="length",description="The display region length (pixels)")
int length,
@Argument(name="offset",description="The offset to the display region (pixels)")
int offset)
@Command(name="metadata",
description="Display image metadata")
public String metadata()
public void processImage(Image img)
processImage in interface ImageClient.Listenerimg - The received imageCopyright © 2014 LSST. All Rights Reserved.