00001 /* 00002 * 00003 * Copyright (C) 1998-2005, OFFIS 00004 * 00005 * This software and supporting documentation were developed by 00006 * 00007 * Kuratorium OFFIS e.V. 00008 * Healthcare Information and Communication Systems 00009 * Escherweg 2 00010 * D-26121 Oldenburg, Germany 00011 * 00012 * THIS SOFTWARE IS MADE AVAILABLE, AS IS, AND OFFIS MAKES NO WARRANTY 00013 * REGARDING THE SOFTWARE, ITS PERFORMANCE, ITS MERCHANTABILITY OR 00014 * FITNESS FOR ANY PARTICULAR USE, FREEDOM FROM ANY COMPUTER DISEASES OR 00015 * ITS CONFORMITY TO ANY SPECIFICATION. THE ENTIRE RISK AS TO QUALITY AND 00016 * PERFORMANCE OF THE SOFTWARE IS WITH THE USER. 00017 * 00018 * Module: dcmpstat 00019 * 00020 * Author: Marco Eichelberg 00021 * 00022 * Purpose: 00023 * classes: DVPSFilmSession 00024 * 00025 * Last Update: $Author: meichel $ 00026 * Update Date: $Date: 2005/12/08 16:03:42 $ 00027 * CVS/RCS Revision: $Revision: 1.6 $ 00028 * Status: $State: Exp $ 00029 * 00030 * CVS/RCS Log at end of file 00031 * 00032 */ 00033 00034 #ifndef __DVPSFS_H__ 00035 #define __DVPSFS_H__ 00036 00037 #include "dcmtk/config/osconfig.h" /* make sure OS specific configuration is included first */ 00038 #include "dcmtk/dcmdata/dctk.h" 00039 #include "dcmtk/dcmpstat/dvpstyp.h" 00040 #include "dcmtk/dcmnet/dimse.h" 00041 00042 class DVConfiguration; 00043 class DVPSPresentationLUT_PList; 00044 class DVPSStoredPrint_PList; 00045 class DVPSStoredPrint; 00046 00049 class DVPSFilmSession 00050 { 00051 public: 00052 00057 DVPSFilmSession(Uint16 illumin, Uint16 reflection); 00058 00060 DVPSFilmSession(const DVPSFilmSession& copy); 00061 00066 DVPSFilmSession *clone() { return new DVPSFilmSession(*this); } 00067 00069 virtual ~DVPSFilmSession(); 00070 00090 OFBool printSCPCreate( 00091 DVConfiguration& cfg, 00092 const char *cfgname, 00093 DcmDataset *rqDataset, 00094 T_DIMSE_Message& rsp, 00095 DcmDataset *& rspDataset, 00096 const char *peerae, 00097 OFBool presentationLUTnegotiated, 00098 DVPSPresentationLUT_PList& globalPresentationLUTList); 00099 00118 OFBool printSCPSet( 00119 DVConfiguration& cfg, 00120 const char *cfgname, 00121 DcmDataset *rqDataset, 00122 T_DIMSE_Message& rsp, 00123 DcmDataset *& rspDataset, 00124 OFBool presentationLUTnegotiated, 00125 DVPSPresentationLUT_PList& globalPresentationLUTList, 00126 DVPSStoredPrint_PList& basicFilmBoxList); 00127 00131 OFBool isInstance(const char *uid); 00132 00136 const char *getUID() { return sopInstanceUID.c_str(); } 00137 00143 void setLog(OFConsole *stream, OFBool verbMode, OFBool dbgMode); 00144 00149 void copyPresentationLUTSettings(DVPSStoredPrint& sp); 00150 00151 private: 00152 00154 DVPSFilmSession& operator=(const DVPSFilmSession&); 00155 00163 OFCondition addPresentationLUTReference(DcmItem& dset); 00164 00166 OFString sopInstanceUID; 00168 DcmIntegerString numberOfCopies; 00170 DcmCodeString printPriority; 00172 DcmCodeString mediumType; 00174 DcmCodeString filmDestination; 00176 DcmLongString filmSessionLabel; 00178 DcmShortString ownerID; 00179 00181 DcmUnsignedShort illumination; 00183 DcmUnsignedShort reflectedAmbientLight; 00185 DcmUniqueIdentifier referencedPresentationLUTInstanceUID; 00186 00192 DVPSPrintPresentationLUTAlignment referencedPresentationLUTAlignment; 00193 00196 OFConsole *logstream; 00197 00200 OFBool verboseMode; 00201 00204 OFBool debugMode; 00205 00206 }; 00207 00208 #endif 00209 00210 /* 00211 * $Log: dvpsfs.h,v $ 00212 * Revision 1.6 2005/12/08 16:03:42 meichel 00213 * Changed include path schema for all DCMTK header files 00214 * 00215 * Revision 1.5 2001/09/26 15:36:10 meichel 00216 * Adapted dcmpstat to class OFCondition 00217 * 00218 * Revision 1.4 2001/06/01 15:50:15 meichel 00219 * Updated copyright header 00220 * 00221 * Revision 1.3 2000/06/08 10:44:28 meichel 00222 * Implemented Referenced Presentation LUT Sequence on Basic Film Session level. 00223 * Empty film boxes (pages) are not written to file anymore. 00224 * 00225 * Revision 1.2 2000/06/02 16:00:45 meichel 00226 * Adapted all dcmpstat classes to use OFConsole for log and error output 00227 * 00228 * Revision 1.1 2000/05/31 12:56:35 meichel 00229 * Added initial Print SCP support 00230 * 00231 * 00232 */ 00233