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: DVPSAnnotationContent_PList 00020 * 00021 * Last Update: $Author: joergr $ 00022 * Update Date: $Date: 2010-10-14 13:16:36 $ 00023 * CVS/RCS Revision: $Revision: 1.11 $ 00024 * Status: $State: Exp $ 00025 * 00026 * CVS/RCS Log at end of file 00027 * 00028 */ 00029 00030 #ifndef DVPSABL_H 00031 #define DVPSABL_H 00032 00033 #include "dcmtk/config/osconfig.h" /* make sure OS specific configuration is included first */ 00034 #include "dcmtk/dcmdata/dcitem.h" 00035 #include "dcmtk/dcmpstat/dvpstyp.h" /* for enum types */ 00036 00037 class DVPSAnnotationContent; 00038 00044 class DVPSAnnotationContent_PList 00045 { 00046 public: 00047 00049 DVPSAnnotationContent_PList(); 00050 00052 DVPSAnnotationContent_PList(const DVPSAnnotationContent_PList& copy); 00053 00058 DVPSAnnotationContent_PList *clone() { return new DVPSAnnotationContent_PList(*this); } 00059 00061 virtual ~DVPSAnnotationContent_PList(); 00062 00071 OFCondition read(DcmItem &dset); 00072 00079 OFCondition write(DcmItem &dset); 00080 00085 void clear(); 00086 00090 size_t size() const { return list_.size(); } 00091 00098 OFCondition addAnnotationBox( 00099 const char *instanceuid, 00100 const char *text, 00101 Uint16 position); 00102 00107 OFCondition deleteAnnotation(size_t idx); 00108 00113 OFCondition deleteMultipleAnnotations(size_t number); 00114 00120 OFCondition setAnnotationSOPInstanceUID(size_t idx, const char *value); 00121 00126 const char *getSOPInstanceUID(size_t idx); 00127 00136 OFCondition prepareBasicAnnotationBox(size_t idx, DcmItem &dset); 00137 00140 void clearAnnotationSOPInstanceUIDs(); 00141 00142 private: 00143 00146 DVPSAnnotationContent_PList& operator=(const DVPSAnnotationContent_PList&); 00147 00153 DVPSAnnotationContent *getAnnotationBox(size_t idx); 00154 00157 OFList<DVPSAnnotationContent *> list_; 00158 00159 }; 00160 00161 00162 #endif 00163 00164 /* 00165 * $Log: dvpsabl.h,v $ 00166 * Revision 1.11 2010-10-14 13:16:36 joergr 00167 * Updated copyright header. Added reference to COPYRIGHT file. 00168 * 00169 * Revision 1.10 2010-10-07 14:31:35 joergr 00170 * Removed leading underscore characters from preprocessor symbols (reserved). 00171 * 00172 * Revision 1.9 2009-11-24 14:12:57 uli 00173 * Switched to logging mechanism provided by the "new" oflog module. 00174 * 00175 * Revision 1.8 2009-09-30 10:42:38 uli 00176 * Make dcmpstat's include headers self-sufficient by including all 00177 * needed headers directly and stop using dctk.h 00178 * 00179 * Revision 1.7 2005-12-08 16:03:33 meichel 00180 * Changed include path schema for all DCMTK header files 00181 * 00182 * Revision 1.6 2003/06/04 10:18:06 meichel 00183 * Replaced private inheritance from template with aggregation 00184 * 00185 * Revision 1.5 2001/09/26 15:36:08 meichel 00186 * Adapted dcmpstat to class OFCondition 00187 * 00188 * Revision 1.4 2001/06/01 15:50:12 meichel 00189 * Updated copyright header 00190 * 00191 * Revision 1.3 2000/06/02 16:00:42 meichel 00192 * Adapted all dcmpstat classes to use OFConsole for log and error output 00193 * 00194 * Revision 1.2 2000/03/08 16:28:48 meichel 00195 * Updated copyright header. 00196 * 00197 * Revision 1.1 1999/10/19 14:46:05 meichel 00198 * added support for the Basic Annotation Box SOP Class 00199 * as well as access methods for Max Density and Min Density. 00200 * 00201 * 00202 */