dcmpstat/include/dcmtk/dcmpstat/dvpspll.h

00001 /*
00002  *
00003  *  Copyright (C) 1998-2010, OFFIS e.V.
00004  *  All rights reserved.  See COPYRIGHT file for details.
00005  *
00006  *  This software and supporting documentation were developed by
00007  *
00008  *    OFFIS e.V.
00009  *    R&D Division Health
00010  *    Escherweg 2
00011  *    D-26121 Oldenburg, Germany
00012  *
00013  *
00014  *  Module: dcmpstat
00015  *
00016  *  Author: Marco Eichelberg
00017  *
00018  *  Purpose:
00019  *    classes: DVPSPresentationLUT_PList
00020  *
00021  *  Last Update:      $Author: joergr $
00022  *  Update Date:      $Date: 2010-10-14 13:16:36 $
00023  *  CVS/RCS Revision: $Revision: 1.13 $
00024  *  Status:           $State: Exp $
00025  *
00026  *  CVS/RCS Log at end of file
00027  *
00028  */
00029 
00030 #ifndef DVPSPLL_H
00031 #define DVPSPLL_H
00032 
00033 #include "dcmtk/config/osconfig.h"    /* make sure OS specific configuration is included first */
00034 #include "dcmtk/ofstd/oflist.h"
00035 #include "dcmtk/dcmpstat/dvpstyp.h"     /* for enum types */
00036 #include "dcmtk/dcmnet/dimse.h"
00037 
00038 class DVPSPresentationLUT;
00039 class DVPSImageBoxContent_PList;
00040 
00046 class DVPSPresentationLUT_PList
00047 {
00048 public:
00050   DVPSPresentationLUT_PList();
00051 
00053   DVPSPresentationLUT_PList(const DVPSPresentationLUT_PList& copy);
00054 
00059   DVPSPresentationLUT_PList *clone() { return new DVPSPresentationLUT_PList(*this); }
00060 
00062   virtual ~DVPSPresentationLUT_PList();
00063 
00072   OFCondition read(DcmItem &dset);
00073 
00080   OFCondition write(DcmItem &dset);
00081 
00086   void clear();
00087 
00091   size_t size() const { return list_.size(); }
00092 
00097   DVPSPresentationLUT *findPresentationLUT(const char *instanceUID);
00098 
00104   void cleanup(const char *filmBox, DVPSImageBoxContent_PList& imageBoxes);
00105 
00113   const char *addPresentationLUT(DVPSPresentationLUT *newLUT, OFBool inversePLUT);
00114 
00119   void insert(DVPSPresentationLUT *newLUT) { if (newLUT) list_.push_back(newLUT); }
00120 
00126   void printSCPDelete(T_DIMSE_Message& rq, T_DIMSE_Message& rsp);
00127 
00128 private:
00129 
00132   DVPSPresentationLUT_PList& operator=(const DVPSPresentationLUT_PList&);
00133 
00136   OFList<DVPSPresentationLUT *> list_;
00137 
00138 };
00139 
00140 
00141 #endif
00142 
00143 /*
00144  *  $Log: dvpspll.h,v $
00145  *  Revision 1.13  2010-10-14 13:16:36  joergr
00146  *  Updated copyright header. Added reference to COPYRIGHT file.
00147  *
00148  *  Revision 1.12  2010-10-07 14:31:36  joergr
00149  *  Removed leading underscore characters from preprocessor symbols (reserved).
00150  *
00151  *  Revision 1.11  2009-11-24 14:12:57  uli
00152  *  Switched to logging mechanism provided by the "new" oflog module.
00153  *
00154  *  Revision 1.10  2009-09-30 10:42:38  uli
00155  *  Make dcmpstat's include headers self-sufficient by including all
00156  *  needed headers directly and stop using dctk.h
00157  *
00158  *  Revision 1.9  2005-12-08 16:03:56  meichel
00159  *  Changed include path schema for all DCMTK header files
00160  *
00161  *  Revision 1.8  2003/06/04 10:18:06  meichel
00162  *  Replaced private inheritance from template with aggregation
00163  *
00164  *  Revision 1.7  2001/09/26 15:36:14  meichel
00165  *  Adapted dcmpstat to class OFCondition
00166  *
00167  *  Revision 1.6  2001/06/01 15:50:19  meichel
00168  *  Updated copyright header
00169  *
00170  *  Revision 1.5  2000/06/02 16:00:49  meichel
00171  *  Adapted all dcmpstat classes to use OFConsole for log and error output
00172  *
00173  *  Revision 1.4  2000/05/31 12:56:39  meichel
00174  *  Added initial Print SCP support
00175  *
00176  *  Revision 1.3  2000/03/08 16:28:54  meichel
00177  *  Updated copyright header.
00178  *
00179  *  Revision 1.2  2000/02/29 12:16:15  meichel
00180  *  Fixed bug in dcmpstat library that caused Monochrome1 images
00181  *    to be printed inverse if a Presentation LUT was applied.
00182  *
00183  *  Revision 1.1  1999/10/07 17:21:49  meichel
00184  *  Reworked management of Presentation LUTs in order to create tighter
00185  *    coupling between Softcopy and Print.
00186  *
00187  *
00188  */


Generated on 6 Jan 2011 for OFFIS DCMTK Version 3.6.0 by Doxygen 1.5.1