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: DVPSStoredPrint_PList 00024 * 00025 * Last Update: $Author: meichel $ 00026 * Update Date: $Date: 2005/12/08 16:04:04 $ 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 __DVPSSPL_H__ 00035 #define __DVPSSPL_H__ 00036 00037 #include "dcmtk/config/osconfig.h" /* make sure OS specific configuration is included first */ 00038 #include "dcmtk/ofstd/oflist.h" 00039 #include "dcmtk/dcmdata/dctk.h" 00040 #include "dcmtk/dcmnet/dimse.h" 00041 #include "dcmtk/dcmpstat/dvpstyp.h" 00042 00043 class DVInterface; 00044 class DVPSStoredPrint; 00045 class DVConfiguration; 00046 class DVPSPresentationLUT_PList; 00047 00051 class DVPSStoredPrint_PList 00052 { 00053 public: 00055 DVPSStoredPrint_PList(); 00056 00058 DVPSStoredPrint_PList(const DVPSStoredPrint_PList& copy); 00059 00064 DVPSStoredPrint_PList *clone() { return new DVPSStoredPrint_PList(*this); } 00065 00067 virtual ~DVPSStoredPrint_PList(); 00068 00073 void clear(); 00074 00078 size_t size() const { return list_.size(); } 00079 00085 void insert(DVPSStoredPrint *newSP) { if (newSP) list_.push_back(newSP); } 00086 00102 void printSCPBasicFilmBoxSet( 00103 DVConfiguration& cfg, 00104 const char *cfgname, 00105 T_DIMSE_Message& rq, 00106 DcmDataset *rqDataset, 00107 T_DIMSE_Message& rsp, 00108 DcmDataset *& rspDataset, 00109 OFBool presentationLUTnegotiated, 00110 DVPSPresentationLUT_PList& globalPresentationLUTList); 00111 00127 void printSCPBasicGrayscaleImageBoxSet( 00128 DVInterface& cfg, 00129 const char *cfgname, 00130 T_DIMSE_Message& rq, 00131 DcmDataset *rqDataset, 00132 T_DIMSE_Message& rsp, 00133 DcmDataset *& rspDataset, 00134 OFBool presentationLUTnegotiated); 00135 00147 void printSCPBasicFilmBoxAction( 00148 DVInterface& cfg, 00149 const char *cfgname, 00150 T_DIMSE_Message& rq, 00151 T_DIMSE_Message& rsp, 00152 DVPSPresentationLUT_PList& globalPresentationLUTList); 00153 00164 void printSCPBasicFilmSessionAction( 00165 DVInterface& cfg, 00166 const char *cfgname, 00167 T_DIMSE_Message& rsp, 00168 DVPSPresentationLUT_PList& globalPresentationLUTList); 00169 00175 void printSCPBasicFilmBoxDelete(T_DIMSE_Message& rq, T_DIMSE_Message& rsp); 00176 00182 OFBool haveFilmBoxInstance(const char *uid); 00183 00190 OFBool usesPresentationLUT(const char *uid); 00191 00197 void setLog(OFConsole *stream, OFBool verbMode, OFBool dbgMode); 00198 00205 OFBool matchesPresentationLUT(DVPSPrintPresentationLUTAlignment align) const; 00206 00216 void overridePresentationLUTSettings( 00217 DcmUnsignedShort& newIllumination, 00218 DcmUnsignedShort& newReflectedAmbientLight, 00219 DcmUniqueIdentifier& newReferencedPLUT, 00220 DVPSPrintPresentationLUTAlignment newAlignment); 00221 00222 private: 00223 00225 DVPSStoredPrint_PList& operator=(const DVPSStoredPrint_PList&); 00226 00229 OFList<DVPSStoredPrint *> list_; 00230 00233 OFConsole *logstream; 00234 00237 OFBool verboseMode; 00238 00241 OFBool debugMode; 00242 }; 00243 00244 #endif 00245 00246 /* 00247 * $Log: dvpsspl.h,v $ 00248 * Revision 1.6 2005/12/08 16:04:04 meichel 00249 * Changed include path schema for all DCMTK header files 00250 * 00251 * Revision 1.5 2003/06/04 10:18:06 meichel 00252 * Replaced private inheritance from template with aggregation 00253 * 00254 * Revision 1.4 2001/06/01 15:50:22 meichel 00255 * Updated copyright header 00256 * 00257 * Revision 1.3 2000/06/08 10:44:30 meichel 00258 * Implemented Referenced Presentation LUT Sequence on Basic Film Session level. 00259 * Empty film boxes (pages) are not written to file anymore. 00260 * 00261 * Revision 1.2 2000/06/02 16:00:52 meichel 00262 * Adapted all dcmpstat classes to use OFConsole for log and error output 00263 * 00264 * Revision 1.1 2000/05/31 12:56:36 meichel 00265 * Added initial Print SCP support 00266 * 00267 * 00268 */ 00269