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: DVPSTextObject_PList 00020 * 00021 * Last Update: $Author: joergr $ 00022 * Update Date: $Date: 2010-10-14 13:16:37 $ 00023 * CVS/RCS Revision: $Revision: 1.12 $ 00024 * Status: $State: Exp $ 00025 * 00026 * CVS/RCS Log at end of file 00027 * 00028 */ 00029 00030 #ifndef DVPSTXL_H 00031 #define DVPSTXL_H 00032 00033 #include "dcmtk/config/osconfig.h" /* make sure OS specific configuration is included first */ 00034 #include "dcmtk/dcmdata/dcitem.h" 00035 00036 class DVPSTextObject; 00037 00038 00045 class DVPSTextObject_PList 00046 { 00047 public: 00049 DVPSTextObject_PList(); 00050 00052 DVPSTextObject_PList(const DVPSTextObject_PList& copy); 00053 00058 DVPSTextObject_PList *clone() { return new DVPSTextObject_PList(*this); } 00059 00061 virtual ~DVPSTextObject_PList(); 00062 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 00098 DVPSTextObject *getTextObject(size_t idx); 00099 00104 void addTextObject(DVPSTextObject *text); 00105 00111 DVPSTextObject *removeTextObject(size_t idx); 00112 00113 private: 00116 DVPSTextObject_PList& operator=(const DVPSTextObject_PList&); 00117 00120 OFList<DVPSTextObject *> list_; 00121 00122 }; 00123 00124 #endif 00125 00126 /* 00127 * $Log: dvpstxl.h,v $ 00128 * Revision 1.12 2010-10-14 13:16:37 joergr 00129 * Updated copyright header. Added reference to COPYRIGHT file. 00130 * 00131 * Revision 1.11 2010-10-07 14:31:36 joergr 00132 * Removed leading underscore characters from preprocessor symbols (reserved). 00133 * 00134 * Revision 1.10 2009-11-24 14:12:58 uli 00135 * Switched to logging mechanism provided by the "new" oflog module. 00136 * 00137 * Revision 1.9 2009-09-30 10:42:38 uli 00138 * Make dcmpstat's include headers self-sufficient by including all 00139 * needed headers directly and stop using dctk.h 00140 * 00141 * Revision 1.8 2005-12-08 16:04:09 meichel 00142 * Changed include path schema for all DCMTK header files 00143 * 00144 * Revision 1.7 2003/06/04 10:18:06 meichel 00145 * Replaced private inheritance from template with aggregation 00146 * 00147 * Revision 1.6 2001/09/26 15:36:18 meichel 00148 * Adapted dcmpstat to class OFCondition 00149 * 00150 * Revision 1.5 2001/06/01 15:50:24 meichel 00151 * Updated copyright header 00152 * 00153 * Revision 1.4 2000/06/02 16:00:54 meichel 00154 * Adapted all dcmpstat classes to use OFConsole for log and error output 00155 * 00156 * Revision 1.3 2000/03/08 16:28:58 meichel 00157 * Updated copyright header. 00158 * 00159 * Revision 1.2 1998/12/14 16:10:37 meichel 00160 * Implemented Presentation State interface for graphic layers, 00161 * text and graphic annotations, presentation LUTs. 00162 * 00163 * Revision 1.1 1998/11/27 14:50:35 meichel 00164 * Initial Release. 00165 * 00166 * 00167 */