OFFIS DCMTK  Version 3.6.0
dvpsfs.h
1 /*
2  *
3  * Copyright (C) 1998-2010, OFFIS e.V.
4  * All rights reserved. See COPYRIGHT file for details.
5  *
6  * This software and supporting documentation were developed by
7  *
8  * OFFIS e.V.
9  * R&D Division Health
10  * Escherweg 2
11  * D-26121 Oldenburg, Germany
12  *
13  *
14  * Module: dcmpstat
15  *
16  * Author: Marco Eichelberg
17  *
18  * Purpose:
19  * classes: DVPSFilmSession
20  *
21  * Last Update: $Author: joergr $
22  * Update Date: $Date: 2010-10-14 13:16:36 $
23  * CVS/RCS Revision: $Revision: 1.9 $
24  * Status: $State: Exp $
25  *
26  * CVS/RCS Log at end of file
27  *
28  */
29 
30 #ifndef DVPSFS_H
31 #define DVPSFS_H
32 
33 #include "dcmtk/config/osconfig.h" /* make sure OS specific configuration is included first */
34 #include "dcmtk/dcmdata/dctk.h"
35 #include "dcmtk/dcmpstat/dvpstyp.h"
36 #include "dcmtk/dcmnet/dimse.h"
37 
38 class DVConfiguration;
41 class DVPSStoredPrint;
42 
46 {
47 public:
48 
53  DVPSFilmSession(Uint16 illumin, Uint16 reflection);
54 
56  DVPSFilmSession(const DVPSFilmSession& copy);
57 
62  DVPSFilmSession *clone() { return new DVPSFilmSession(*this); }
63 
65  virtual ~DVPSFilmSession();
66 
86  OFBool printSCPCreate(
87  DVConfiguration& cfg,
88  const char *cfgname,
89  DcmDataset *rqDataset,
90  T_DIMSE_Message& rsp,
91  DcmDataset *& rspDataset,
92  const char *peerae,
93  OFBool presentationLUTnegotiated,
94  DVPSPresentationLUT_PList& globalPresentationLUTList);
95 
114  OFBool printSCPSet(
115  DVConfiguration& cfg,
116  const char *cfgname,
117  DcmDataset *rqDataset,
118  T_DIMSE_Message& rsp,
119  DcmDataset *& rspDataset,
120  OFBool presentationLUTnegotiated,
121  DVPSPresentationLUT_PList& globalPresentationLUTList,
122  DVPSStoredPrint_PList& basicFilmBoxList);
123 
127  OFBool isInstance(const char *uid);
128 
132  const char *getUID() { return sopInstanceUID.c_str(); }
133 
139 
140 private:
141 
144 
153 
168 
175 
181  DVPSPrintPresentationLUTAlignment referencedPresentationLUTAlignment;
182 
183 };
184 
185 #endif
186 
187 /*
188  * $Log: dvpsfs.h,v $
189  * Revision 1.9 2010-10-14 13:16:36 joergr
190  * Updated copyright header. Added reference to COPYRIGHT file.
191  *
192  * Revision 1.8 2010-10-07 14:31:35 joergr
193  * Removed leading underscore characters from preprocessor symbols (reserved).
194  *
195  * Revision 1.7 2009-11-24 14:12:57 uli
196  * Switched to logging mechanism provided by the "new" oflog module.
197  *
198  * Revision 1.6 2005-12-08 16:03:42 meichel
199  * Changed include path schema for all DCMTK header files
200  *
201  * Revision 1.5 2001/09/26 15:36:10 meichel
202  * Adapted dcmpstat to class OFCondition
203  *
204  * Revision 1.4 2001/06/01 15:50:15 meichel
205  * Updated copyright header
206  *
207  * Revision 1.3 2000/06/08 10:44:28 meichel
208  * Implemented Referenced Presentation LUT Sequence on Basic Film Session level.
209  * Empty film boxes (pages) are not written to file anymore.
210  *
211  * Revision 1.2 2000/06/02 16:00:45 meichel
212  * Adapted all dcmpstat classes to use OFConsole for log and error output
213  *
214  * Revision 1.1 2000/05/31 12:56:35 meichel
215  * Added initial Print SCP support
216  *
217  *
218  */
a class representing the DICOM value representation 'Integer String' (IS)
Definition: dcvris.h:39
a class representing a list of DICOM elements in which each element has a different tag and elements ...
Definition: dcitem.h:51
DVPSPrintPresentationLUTAlignment referencedPresentationLUTAlignment
The Print SCP can be configured to enforce a rule requiring that the number of entries in a Presentat...
Definition: dvpsfs.h:181
DcmUniqueIdentifier referencedPresentationLUTInstanceUID
the ReferencedPresentationLUTSequence is only created/read on the fly
Definition: dvpsfs.h:174
void copyPresentationLUTSettings(DVPSStoredPrint &sp)
copies the film box Presentation LUT settings into the stored print object passed by reference...
a class representing the DICOM value representation 'Unique Identifier' (UI)
Definition: dcvrui.h:39
DcmIntegerString numberOfCopies
VR=IS, VM=1.
Definition: dvpsfs.h:157
DcmShortString ownerID
VR=SH, VM=1.
Definition: dvpsfs.h:167
OFBool printSCPSet(DVConfiguration &cfg, const char *cfgname, DcmDataset *rqDataset, T_DIMSE_Message &rsp, DcmDataset *&rspDataset, OFBool presentationLUTnegotiated, DVPSPresentationLUT_PList &globalPresentationLUTList, DVPSStoredPrint_PList &basicFilmBoxList)
performs a Print SCP Basic Film Session N-SET operation on an instance of this class.
OFString sopInstanceUID
SOP instance UID of basic film session object.
Definition: dvpsfs.h:155
Configuration class for the Softcopy Presentation State viewer.
Definition: dvpscf.h:46
DcmCodeString filmDestination
VR=CS, VM=1.
Definition: dvpsfs.h:163
DcmUnsignedShort illumination
VR=US, VM=1, Type 2c required if presentation SOP class present.
Definition: dvpsfs.h:170
DcmCodeString printPriority
VR=CS, VM=1.
Definition: dvpsfs.h:159
a list of stored print objects, each of which manages a single Basic Film Box in a Print SCP...
Definition: dvpsspl.h:48
DVPSFilmSession(Uint16 illumin, Uint16 reflection)
constructor
DVPSFilmSession & operator=(const DVPSFilmSession &)
private undefined assignment operator
the representation of a Stored Print object
Definition: dvpssp.h:51
a class representing the DICOM value representation 'Long String' (LO)
Definition: dcvrlo.h:40
a class representing the DICOM value representation 'Code String' (CS)
Definition: dcvrcs.h:40
const char * getUID()
returns the SOP instance UID of the basic film session.
Definition: dvpsfs.h:132
DcmUnsignedShort reflectedAmbientLight
VR=US, VM=1, Type 2c required if presentation SOP class present.
Definition: dvpsfs.h:172
virtual ~DVPSFilmSession()
destructor
DcmLongString filmSessionLabel
VR=LO, VM=1.
Definition: dvpsfs.h:165
the list of presentation LUTs contained in a stored print object.
Definition: dvpspll.h:46
a basic film session object managed by a Print SCP.
Definition: dvpsfs.h:45
a class representing the DICOM value representation 'Short String' (SH)
Definition: dcvrsh.h:40
a class representing the DICOM value representation 'Unsigned Short' (US)
Definition: dcvrus.h:40
a class handling the DICOM dataset format (files without meta header)
Definition: dcdatset.h:46
DcmCodeString mediumType
VR=CS, VM=1.
Definition: dvpsfs.h:161
DVPSFilmSession * clone()
clone method.
Definition: dvpsfs.h:62
OFBool isInstance(const char *uid)
compares the SOP instance UID with the given UID string.
a simple string class that implements a subset of std::string.
Definition: ofstring.h:86
OFCondition addPresentationLUTReference(DcmItem &dset)
writes a Referenced Presentation LUT SQ, Illumination and reflected ambient light to the given datase...
OFBool printSCPCreate(DVConfiguration &cfg, const char *cfgname, DcmDataset *rqDataset, T_DIMSE_Message &rsp, DcmDataset *&rspDataset, const char *peerae, OFBool presentationLUTnegotiated, DVPSPresentationLUT_PList &globalPresentationLUTList)
performs a Print SCP Basic Film Session N-CREATE operation on a newly created instance of this class...
const char * c_str() const
returns a pointer to the initial element of an array of length size()+1 whose first size() elements e...
Definition: ofstring.h:392
General purpose class for condition codes.
Definition: ofcond.h:305


Generated on Sun Aug 23 2015 for OFFIS DCMTK Version 3.6.0 by Doxygen 1.8.9.1