|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dcm4che.client.PrintSCU
public class PrintSCU
Field Summary | |
---|---|
static java.lang.String |
ERROR
|
static java.lang.String |
NORMAL
|
static java.lang.String |
WARNING
|
Constructor Summary | |
---|---|
PrintSCU(AssociationRequestor requestor)
|
Method Summary | |
---|---|
void |
checkAssociation()
|
int |
countAnnotationBoxes()
|
int |
countImageBoxes()
|
int |
createFilmBox(Dataset attr)
Creates a Film Box. |
int |
createFilmSession(Dataset attr,
boolean color)
Creates a Film Session. |
java.lang.String |
createPLUT(Dataset attr)
Creates a P-LUT (Presentation Look-up Table). |
java.lang.String |
createPLUT(java.lang.String shape)
Creates a P-LUT (Presentation Look-up Table) using a given predfined shape. |
int |
deleteFilmBox()
|
int |
deleteFilmSession()
|
int |
deletePLUT(java.lang.String iuid)
|
int[] |
getInfoAttrList()
|
int |
getMaxPrinterInfoStale()
Get the printer information validity period. |
Dataset |
getPrinterInfo(boolean forceQuery)
|
java.lang.String |
getPrinterStatus()
|
java.lang.String |
getPrinterStatusInfo()
|
AssociationRequestor |
getRequestor()
|
boolean |
isAnnotationEnabled()
|
boolean |
isAutoRefPLUT()
|
boolean |
isColorPrintEnabled()
|
boolean |
isCreateRQwithIUID()
|
boolean |
isGrayscalePrintEnabled()
|
boolean |
isNegotiateAnnotation()
Get whether a presentation context for setting Annotations was negotiated on the corresponding association. |
boolean |
isNegotiateColorPrint()
Get whether a presentation context for Color printing was negotiated on the corresponding association. |
boolean |
isNegotiateExplicitVR()
|
boolean |
isNegotiateGrayscalePrint()
Get whether a presentation context for Grayscale printing was negotiated on the corresponding association. |
boolean |
isNegotiatePLUT()
Get whether a presentation context for sending a Presentation Look-up Table (P-LUT) was negotiated on the corresponding association. |
boolean |
isPLUTEnabled()
|
int |
printFilmBox()
Prints the current Film Box. |
int |
printFilmSession()
Prints the current Film Session. |
int |
setAnnotationBox(int index,
java.lang.String text)
|
void |
setAutoRefPLUT(boolean autoRefPLUT)
If true and a P-LUT has been created, this PrintSCU will automatically place a Referenced P-LUT Sequence and the reference to a created P-LUT in a created Film Box's attributes. |
void |
setCreateRQwithIUID(boolean createRQwithIUID)
Set whether a UID should be generated by this instance. |
int |
setImageBox(int index,
java.io.File file,
java.io.File psFile,
Dataset attr,
boolean burnInOverlays,
boolean autoScale)
Sets a Image Box. |
void |
setInfoAttrList(int[] infoAttrList)
|
void |
setMaxPrinterInfoStale(int maxPrinterInfoStale)
Set the printer information validity period. |
void |
setNegotiateAnnotation(boolean negotiateAnnotation)
|
void |
setNegotiateColorPrint(boolean negotiateColorPrint)
|
void |
setNegotiateExplicitVR(boolean negotiateExplicitVR)
Set whether an Explicit VR (Value Representation) should be negotiated on the association. |
void |
setNegotiateGrayscalePrint(boolean negotiateGrayscalePrint)
Set whether to negotiate a presentation context for Grayscale printing on the corresponding association. |
void |
setNegotiatePLUT(boolean negotiatePLUT)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String NORMAL
public static final java.lang.String WARNING
public static final java.lang.String ERROR
Constructor Detail |
---|
public PrintSCU(AssociationRequestor requestor)
Method Detail |
---|
public boolean isNegotiateGrayscalePrint()
public void setNegotiateGrayscalePrint(boolean negotiateGrayscalePrint)
negotiateGrayscalePrint
- true if this presentation syntax should be
negotiated, false otherwisepublic boolean isNegotiateColorPrint()
public void setNegotiateColorPrint(boolean negotiateColorPrint)
negotiateColorPrint
- public boolean isNegotiatePLUT()
public void setNegotiatePLUT(boolean negotiatePLUT)
negotiatePLUT
- public boolean isNegotiateAnnotation()
public void setNegotiateAnnotation(boolean negotiateAnnotation)
negotiateAnnotation
- public boolean isCreateRQwithIUID()
public void setCreateRQwithIUID(boolean createRQwithIUID)
public boolean isAutoRefPLUT()
public void setAutoRefPLUT(boolean autoRefPLUT)
public AssociationRequestor getRequestor()
AssociationRequestor
associated with this
PrintSCUpublic boolean isNegotiateExplicitVR()
public void setNegotiateExplicitVR(boolean negotiateExplicitVR)
negotiateExplicitVR
- true if the PrintSCU should negotiated this
presentation context, false otherwisepublic boolean isGrayscalePrintEnabled()
public boolean isColorPrintEnabled()
public boolean isPLUTEnabled()
public boolean isAnnotationEnabled()
public int[] getInfoAttrList()
public void setInfoAttrList(int[] infoAttrList)
infoAttrList
- array of printer attributespublic int getMaxPrinterInfoStale()
public void setMaxPrinterInfoStale(int maxPrinterInfoStale)
maxStatusStale
- the maximum length of time (in milliseconds) to
elapse before the printer information is considered "stale" and will
be re-queried on the next call to a method that needs printer
information.public Dataset getPrinterInfo(boolean forceQuery) throws java.lang.InterruptedException, java.io.IOException, DcmServiceException
java.lang.InterruptedException
java.io.IOException
DcmServiceException
public java.lang.String getPrinterStatus() throws java.lang.InterruptedException, java.io.IOException, DcmServiceException
java.lang.InterruptedException
java.io.IOException
DcmServiceException
public java.lang.String getPrinterStatusInfo() throws java.lang.InterruptedException, java.io.IOException, DcmServiceException
java.lang.InterruptedException
java.io.IOException
DcmServiceException
public java.lang.String createPLUT(Dataset attr) throws java.lang.InterruptedException, java.io.IOException, DcmServiceException
attr
- The P-LUT attributes. See DICOM ps 3.3, appendix B.18:
Presentation LUT Information Object Definition for more information.
java.lang.InterruptedException
java.io.IOException
DcmServiceException
public java.lang.String createPLUT(java.lang.String shape) throws java.lang.InterruptedException, java.io.IOException, DcmServiceException
shape
- The P-LUT shape. See DICOM ps 3.3, appendix B.18:
Presentation LUT Information Object Definition for more information.
java.lang.InterruptedException
java.io.IOException
DcmServiceException
public int deletePLUT(java.lang.String iuid) throws java.lang.InterruptedException, java.io.IOException, DcmServiceException
java.lang.InterruptedException
java.io.IOException
DcmServiceException
public void checkAssociation()
public int setAnnotationBox(int index, java.lang.String text) throws java.lang.InterruptedException, java.io.IOException, DcmServiceException
java.lang.InterruptedException
java.io.IOException
DcmServiceException
public int createFilmSession(Dataset attr, boolean color) throws java.lang.InterruptedException, java.io.IOException, DcmServiceException
attr
- The Film Session attributes. See DICOM ps 3.3, appendix B.7:
Basic Film Session Information Object Definition for more information.color
- true if this is a color Film Session, false otherwise
java.lang.InterruptedException
java.io.IOException
DcmServiceException
public int deleteFilmSession() throws java.lang.InterruptedException, java.io.IOException, DcmServiceException
java.lang.InterruptedException
java.io.IOException
DcmServiceException
public int createFilmBox(Dataset attr) throws java.lang.InterruptedException, java.io.IOException, DcmServiceException
attr
- The Film Box attributes. See DICOM ps 3.3, appendix B.8:
Basic Film Box Information Object Definition for more information.
java.lang.InterruptedException
java.io.IOException
DcmServiceException
public int deleteFilmBox() throws java.lang.InterruptedException, java.io.IOException, DcmServiceException
java.lang.InterruptedException
java.io.IOException
DcmServiceException
public int countImageBoxes()
public int countAnnotationBoxes()
public int setImageBox(int index, java.io.File file, java.io.File psFile, Dataset attr, boolean burnInOverlays, boolean autoScale) throws java.lang.InterruptedException, java.io.IOException, DcmServiceException
file
- The file representing the DICOM image to sendindex
- The index of the Basic Film Box that this Image Box will be
assigned to.attr
- The Image Box attributes. See DICOM ps 3.3, appendix B.9:
Basic Image Box Information Object Definition for more information.
java.lang.InterruptedException
java.io.IOException
DcmServiceException
public int printFilmBox() throws java.lang.InterruptedException, java.io.IOException, DcmServiceException
java.lang.InterruptedException
java.io.IOException
DcmServiceException
public int printFilmSession() throws java.lang.InterruptedException, java.io.IOException, DcmServiceException
java.lang.InterruptedException
java.io.IOException
DcmServiceException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |