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: DVPSGraphicObject 00020 * 00021 * Last Update: $Author: joergr $ 00022 * Update Date: $Date: 2010-10-14 13:16:36 $ 00023 * CVS/RCS Revision: $Revision: 1.10 $ 00024 * Status: $State: Exp $ 00025 * 00026 * CVS/RCS Log at end of file 00027 * 00028 */ 00029 00030 #ifndef DVPSGR_H 00031 #define DVPSGR_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 00043 class DVPSGraphicObject 00044 { 00045 public: 00047 DVPSGraphicObject(); 00048 00050 DVPSGraphicObject(const DVPSGraphicObject& copy); 00051 00056 DVPSGraphicObject *clone() { return new DVPSGraphicObject(*this); } 00057 00059 virtual ~DVPSGraphicObject(); 00060 00070 OFCondition read(DcmItem &dset); 00071 00078 OFCondition write(DcmItem &dset); 00079 00083 DVPSannotationUnit getAnnotationUnits(); 00084 00088 size_t getNumberOfPoints(); 00089 00096 OFCondition getPoint(size_t idx, Float32& x, Float32& y); 00097 00101 DVPSGraphicType getGraphicType(); 00102 00106 OFBool isFilled(); 00107 00115 OFCondition setData(size_t number, const Float32 *data, DVPSannotationUnit unit); 00116 00121 OFCondition setGraphicType(DVPSGraphicType gtype); 00122 00127 OFCondition setFilled(OFBool filled); 00128 00129 private: 00130 00132 DVPSGraphicObject& operator=(const DVPSGraphicObject&); 00133 00135 DcmCodeString graphicAnnotationUnits; 00137 DcmUnsignedShort numberOfGraphicPoints; 00139 DcmFloatingPointSingle graphicData; 00141 DcmCodeString graphicType; 00143 DcmCodeString graphicFilled; 00144 }; 00145 00146 #endif 00147 00148 /* 00149 * $Log: dvpsgr.h,v $ 00150 * Revision 1.10 2010-10-14 13:16:36 joergr 00151 * Updated copyright header. Added reference to COPYRIGHT file. 00152 * 00153 * Revision 1.9 2010-10-07 14:31:35 joergr 00154 * Removed leading underscore characters from preprocessor symbols (reserved). 00155 * 00156 * Revision 1.8 2009-11-24 14:12:57 uli 00157 * Switched to logging mechanism provided by the "new" oflog module. 00158 * 00159 * Revision 1.7 2005-12-08 16:03:47 meichel 00160 * Changed include path schema for all DCMTK header files 00161 * 00162 * Revision 1.6 2001/09/26 15:36:11 meichel 00163 * Adapted dcmpstat to class OFCondition 00164 * 00165 * Revision 1.5 2001/06/01 15:50:16 meichel 00166 * Updated copyright header 00167 * 00168 * Revision 1.4 2000/06/02 16:00:47 meichel 00169 * Adapted all dcmpstat classes to use OFConsole for log and error output 00170 * 00171 * Revision 1.3 2000/03/08 16:28:52 meichel 00172 * Updated copyright header. 00173 * 00174 * Revision 1.2 1998/12/14 16:10:30 meichel 00175 * Implemented Presentation State interface for graphic layers, 00176 * text and graphic annotations, presentation LUTs. 00177 * 00178 * Revision 1.1 1998/11/27 14:50:28 meichel 00179 * Initial Release. 00180 * 00181 * 00182 */