dcmpstat/include/dcmtk/dcmpstat/dvpsfs.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: DVPSFilmSession
00020  *
00021  *  Last Update:      $Author: joergr $
00022  *  Update Date:      $Date: 2010-10-14 13:16:36 $
00023  *  CVS/RCS Revision: $Revision: 1.9 $
00024  *  Status:           $State: Exp $
00025  *
00026  *  CVS/RCS Log at end of file
00027  *
00028  */
00029 
00030 #ifndef DVPSFS_H
00031 #define DVPSFS_H
00032 
00033 #include "dcmtk/config/osconfig.h"    /* make sure OS specific configuration is included first */
00034 #include "dcmtk/dcmdata/dctk.h"
00035 #include "dcmtk/dcmpstat/dvpstyp.h"
00036 #include "dcmtk/dcmnet/dimse.h"
00037 
00038 class DVConfiguration;
00039 class DVPSPresentationLUT_PList;
00040 class DVPSStoredPrint_PList;
00041 class DVPSStoredPrint;
00042 
00045 class DVPSFilmSession
00046 {
00047 public:
00048 
00053   DVPSFilmSession(Uint16 illumin, Uint16 reflection);
00054   
00056   DVPSFilmSession(const DVPSFilmSession& copy);
00057 
00062   DVPSFilmSession *clone() { return new DVPSFilmSession(*this); }
00063 
00065   virtual ~DVPSFilmSession();
00066 
00086   OFBool printSCPCreate(
00087     DVConfiguration& cfg, 
00088     const char *cfgname, 
00089     DcmDataset *rqDataset, 
00090     T_DIMSE_Message& rsp, 
00091     DcmDataset *& rspDataset, 
00092     const char *peerae,
00093     OFBool presentationLUTnegotiated,
00094     DVPSPresentationLUT_PList& globalPresentationLUTList);
00095 
00114   OFBool printSCPSet(
00115     DVConfiguration& cfg, 
00116     const char *cfgname, 
00117     DcmDataset *rqDataset, 
00118     T_DIMSE_Message& rsp, 
00119     DcmDataset *& rspDataset,
00120     OFBool presentationLUTnegotiated,
00121     DVPSPresentationLUT_PList& globalPresentationLUTList,
00122     DVPSStoredPrint_PList& basicFilmBoxList);
00123 
00127   OFBool isInstance(const char *uid);
00128   
00132   const char *getUID() { return sopInstanceUID.c_str(); }
00133 
00138   void copyPresentationLUTSettings(DVPSStoredPrint& sp);
00139   
00140 private:
00141 
00143   DVPSFilmSession& operator=(const DVPSFilmSession&);
00144 
00152   OFCondition addPresentationLUTReference(DcmItem& dset);
00153 
00155   OFString                 sopInstanceUID;
00157   DcmIntegerString         numberOfCopies;
00159   DcmCodeString            printPriority;
00161   DcmCodeString            mediumType;
00163   DcmCodeString            filmDestination;
00165   DcmLongString            filmSessionLabel;
00167   DcmShortString           ownerID;  
00168 
00170   DcmUnsignedShort         illumination;
00172   DcmUnsignedShort         reflectedAmbientLight;
00174   DcmUniqueIdentifier      referencedPresentationLUTInstanceUID;
00175 
00181   DVPSPrintPresentationLUTAlignment referencedPresentationLUTAlignment;
00182 
00183 };
00184 
00185 #endif
00186 
00187 /*
00188  *  $Log: dvpsfs.h,v $
00189  *  Revision 1.9  2010-10-14 13:16:36  joergr
00190  *  Updated copyright header. Added reference to COPYRIGHT file.
00191  *
00192  *  Revision 1.8  2010-10-07 14:31:35  joergr
00193  *  Removed leading underscore characters from preprocessor symbols (reserved).
00194  *
00195  *  Revision 1.7  2009-11-24 14:12:57  uli
00196  *  Switched to logging mechanism provided by the "new" oflog module.
00197  *
00198  *  Revision 1.6  2005-12-08 16:03:42  meichel
00199  *  Changed include path schema for all DCMTK header files
00200  *
00201  *  Revision 1.5  2001/09/26 15:36:10  meichel
00202  *  Adapted dcmpstat to class OFCondition
00203  *
00204  *  Revision 1.4  2001/06/01 15:50:15  meichel
00205  *  Updated copyright header
00206  *
00207  *  Revision 1.3  2000/06/08 10:44:28  meichel
00208  *  Implemented Referenced Presentation LUT Sequence on Basic Film Session level.
00209  *    Empty film boxes (pages) are not written to file anymore.
00210  *
00211  *  Revision 1.2  2000/06/02 16:00:45  meichel
00212  *  Adapted all dcmpstat classes to use OFConsole for log and error output
00213  *
00214  *  Revision 1.1  2000/05/31 12:56:35  meichel
00215  *  Added initial Print SCP support
00216  *
00217  *
00218  */


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