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: DVPSSoftcopyVOI_PList 00024 * 00025 * Last Update: $Author: meichel $ 00026 * Update Date: $Date: 2005/12/08 16:04:06 $ 00027 * CVS/RCS Revision: $Revision: 1.8 $ 00028 * Status: $State: Exp $ 00029 * 00030 * CVS/RCS Log at end of file 00031 * 00032 */ 00033 00034 #ifndef __DVPSSVL_H__ 00035 #define __DVPSSVL_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/dcmpstat/dvpstyp.h" /* for enum types */ 00041 00042 class DVPSSoftcopyVOI; 00043 class DVPSReferencedSeries_PList; 00044 00050 class DVPSSoftcopyVOI_PList 00051 { 00052 public: 00054 DVPSSoftcopyVOI_PList(); 00055 00057 DVPSSoftcopyVOI_PList(const DVPSSoftcopyVOI_PList& copy); 00058 00063 DVPSSoftcopyVOI_PList *clone() { return new DVPSSoftcopyVOI_PList(*this); } 00064 00066 virtual ~DVPSSoftcopyVOI_PList(); 00067 00076 OFCondition read(DcmItem &dset); 00077 00084 OFCondition write(DcmItem &dset); 00085 00090 void clear(); 00091 00095 size_t size() const { return list_.size(); } 00096 00108 OFCondition createFromImage( 00109 DcmItem &dset, 00110 DVPSReferencedSeries_PList& allReferences, 00111 const char *sopclassUID, 00112 const char *instanceUID, 00113 DVPSVOIActivation voiActivation); 00114 00120 DVPSSoftcopyVOI *findSoftcopyVOI(const char *instanceUID, unsigned long frame); 00121 00137 DVPSSoftcopyVOI *createSoftcopyVOI( 00138 DVPSReferencedSeries_PList& allReferences, 00139 const char *sopclassUID, 00140 const char *instanceUID, 00141 unsigned long frame, 00142 unsigned long numberOfFrames, 00143 DVPSObjectApplicability applicability); 00144 00156 void removeSoftcopyVOI( 00157 DVPSReferencedSeries_PList& allReferences, 00158 const char *instanceUID, 00159 unsigned long frame, 00160 unsigned long numberOfFrames, 00161 DVPSObjectApplicability applicability); 00162 00168 void setLog(OFConsole *stream, OFBool verbMode, OFBool dbgMode); 00169 00170 private: 00171 00173 DVPSSoftcopyVOI_PList& operator=(const DVPSSoftcopyVOI_PList&); 00174 00177 OFList<DVPSSoftcopyVOI *> list_; 00178 00181 OFConsole *logstream; 00182 00185 OFBool verboseMode; 00186 00189 OFBool debugMode; 00190 00191 }; 00192 00193 00194 #endif 00195 00196 /* 00197 * $Log: dvpssvl.h,v $ 00198 * Revision 1.8 2005/12/08 16:04:06 meichel 00199 * Changed include path schema for all DCMTK header files 00200 * 00201 * Revision 1.7 2003/06/04 10:18:06 meichel 00202 * Replaced private inheritance from template with aggregation 00203 * 00204 * Revision 1.6 2001/09/26 15:36:16 meichel 00205 * Adapted dcmpstat to class OFCondition 00206 * 00207 * Revision 1.5 2001/06/01 15:50:23 meichel 00208 * Updated copyright header 00209 * 00210 * Revision 1.4 2000/06/02 16:00:52 meichel 00211 * Adapted all dcmpstat classes to use OFConsole for log and error output 00212 * 00213 * Revision 1.3 2000/03/08 16:28:57 meichel 00214 * Updated copyright header. 00215 * 00216 * Revision 1.2 1999/07/30 13:34:51 meichel 00217 * Added new classes managing Stored Print objects 00218 * 00219 * Revision 1.1 1999/07/22 16:39:12 meichel 00220 * Adapted dcmpstat data structures and API to supplement 33 letter ballot text. 00221 * 00222 * 00223 */ 00224