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: DVPSCurve 00020 * 00021 * Last Update: $Author: joergr $ 00022 * Update Date: $Date: 2010-10-14 13:16:36 $ 00023 * CVS/RCS Revision: $Revision: 1.9 $ 00024 * Status: $State: Exp $ 00025 * 00026 * CVS/RCS Log at end of file 00027 * 00028 */ 00029 00030 #ifndef DVPSCU_H 00031 #define DVPSCU_H 00032 00033 #include "dcmtk/config/osconfig.h" /* make sure OS specific configuration is included first */ 00034 #include "dcmtk/dcmpstat/dvpstyp.h" 00035 #include "dcmtk/ofstd/ofstring.h" 00036 #include "dcmtk/dcmdata/dctypes.h" 00037 #include "dcmtk/dcmdata/dcerror.h" 00038 00039 class DcmItem; 00040 00044 class DVPSCurve 00045 { 00046 public: 00048 DVPSCurve(); 00049 00051 DVPSCurve(const DVPSCurve& copy); 00052 00057 DVPSCurve *clone() { return new DVPSCurve(*this); } 00058 00060 virtual ~DVPSCurve(); 00061 00072 OFCondition read(DcmItem &dset, Uint8 group); 00073 00077 Uint8 getCurveGroup() { return curveGroup; } 00078 00082 size_t getNumberOfPoints() { return numberOfPoints; } 00083 00087 DVPSCurveType getTypeOfData() { return typeOfData; } 00088 00095 OFCondition getPoint(size_t idx, double& x, double& y); 00096 00101 const char *getCurveDescription() { return curveDescription.c_str(); } 00102 00107 const char *getCurveLabel() { return curveLabel.c_str(); } 00108 00113 const char *getCurveAxisUnitsX() { return axisUnitsX.c_str(); } 00114 00119 const char *getCurveAxisUnitsY() { return axisUnitsY.c_str(); } 00120 00121 private: 00123 DVPSCurve& operator=(const DVPSCurve&); 00124 00126 Uint8 curveGroup; 00128 size_t numberOfPoints; 00130 DVPSCurveType typeOfData; 00132 double *curveData; 00134 OFString curveDescription; 00136 OFString curveLabel; 00138 OFString axisUnitsX; 00140 OFString axisUnitsY; 00141 00142 }; 00143 00144 #endif 00145 00146 /* 00147 * $Log: dvpscu.h,v $ 00148 * Revision 1.9 2010-10-14 13:16:36 joergr 00149 * Updated copyright header. Added reference to COPYRIGHT file. 00150 * 00151 * Revision 1.8 2010-10-07 14:31:35 joergr 00152 * Removed leading underscore characters from preprocessor symbols (reserved). 00153 * 00154 * Revision 1.7 2009-11-24 14:12:57 uli 00155 * Switched to logging mechanism provided by the "new" oflog module. 00156 * 00157 * Revision 1.6 2005-12-08 16:03:37 meichel 00158 * Changed include path schema for all DCMTK header files 00159 * 00160 * Revision 1.5 2001/09/26 15:36:09 meichel 00161 * Adapted dcmpstat to class OFCondition 00162 * 00163 * Revision 1.4 2001/06/01 15:50:13 meichel 00164 * Updated copyright header 00165 * 00166 * Revision 1.3 2000/06/02 16:00:44 meichel 00167 * Adapted all dcmpstat classes to use OFConsole for log and error output 00168 * 00169 * Revision 1.2 2000/03/08 16:28:50 meichel 00170 * Updated copyright header. 00171 * 00172 * Revision 1.1 1998/12/22 17:57:04 meichel 00173 * Implemented Presentation State interface for overlays, 00174 * VOI LUTs, VOI windows, curves. Added test program that 00175 * allows to add curve data to DICOM images. 00176 * 00177 * 00178 */