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: DVPSGraphicObject 00024 * 00025 * Last Update: $Author: meichel $ 00026 * Update Date: $Date: 2005/12/08 16:03:47 $ 00027 * CVS/RCS Revision: $Revision: 1.7 $ 00028 * Status: $State: Exp $ 00029 * 00030 * CVS/RCS Log at end of file 00031 * 00032 */ 00033 00034 #ifndef __DVPSGR_H__ 00035 #define __DVPSGR_H__ 00036 00037 #include "dcmtk/config/osconfig.h" /* make sure OS specific configuration is included first */ 00038 #include "dcmtk/dcmdata/dctk.h" 00039 #include "dcmtk/dcmpstat/dvpstyp.h" 00040 00047 class DVPSGraphicObject 00048 { 00049 public: 00051 DVPSGraphicObject(); 00052 00054 DVPSGraphicObject(const DVPSGraphicObject& copy); 00055 00060 DVPSGraphicObject *clone() { return new DVPSGraphicObject(*this); } 00061 00063 virtual ~DVPSGraphicObject(); 00064 00074 OFCondition read(DcmItem &dset); 00075 00082 OFCondition write(DcmItem &dset); 00083 00087 DVPSannotationUnit getAnnotationUnits(); 00088 00092 size_t getNumberOfPoints(); 00093 00100 OFCondition getPoint(size_t idx, Float32& x, Float32& y); 00101 00105 DVPSGraphicType getGraphicType(); 00106 00110 OFBool isFilled(); 00111 00119 OFCondition setData(size_t number, const Float32 *data, DVPSannotationUnit unit); 00120 00125 OFCondition setGraphicType(DVPSGraphicType gtype); 00126 00131 OFCondition setFilled(OFBool filled); 00132 00138 void setLog(OFConsole *stream, OFBool verbMode, OFBool dbgMode); 00139 00140 private: 00141 00143 DVPSGraphicObject& operator=(const DVPSGraphicObject&); 00144 00146 DcmCodeString graphicAnnotationUnits; 00148 DcmUnsignedShort numberOfGraphicPoints; 00150 DcmFloatingPointSingle graphicData; 00152 DcmCodeString graphicType; 00154 DcmCodeString graphicFilled; 00155 00158 OFConsole *logstream; 00159 00162 OFBool verboseMode; 00163 00166 OFBool debugMode; 00167 00168 00169 }; 00170 00171 #endif 00172 00173 /* 00174 * $Log: dvpsgr.h,v $ 00175 * Revision 1.7 2005/12/08 16:03:47 meichel 00176 * Changed include path schema for all DCMTK header files 00177 * 00178 * Revision 1.6 2001/09/26 15:36:11 meichel 00179 * Adapted dcmpstat to class OFCondition 00180 * 00181 * Revision 1.5 2001/06/01 15:50:16 meichel 00182 * Updated copyright header 00183 * 00184 * Revision 1.4 2000/06/02 16:00:47 meichel 00185 * Adapted all dcmpstat classes to use OFConsole for log and error output 00186 * 00187 * Revision 1.3 2000/03/08 16:28:52 meichel 00188 * Updated copyright header. 00189 * 00190 * Revision 1.2 1998/12/14 16:10:30 meichel 00191 * Implemented Presentation State interface for graphic layers, 00192 * text and graphic annotations, presentation LUTs. 00193 * 00194 * Revision 1.1 1998/11/27 14:50:28 meichel 00195 * Initial Release. 00196 * 00197 * 00198 */ 00199