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: DVPSVOIWindow 00020 * 00021 * Last Update: $Author: joergr $ 00022 * Update Date: $Date: 2010-10-14 13:16:37 $ 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 DVPSVW_H 00031 #define DVPSVW_H 00032 00033 #include "dcmtk/config/osconfig.h" /* make sure OS specific configuration is included first */ 00034 #include "dcmtk/ofstd/ofstring.h" 00035 #include "dcmtk/dcmdata/dcerror.h" /* for OFCondition */ 00036 00037 class DcmDecimalString; 00038 class DcmLongString; 00039 00043 class DVPSVOIWindow 00044 { 00045 public: 00047 DVPSVOIWindow(); 00048 00050 DVPSVOIWindow(const DVPSVOIWindow& copy); 00051 00056 DVPSVOIWindow *clone() { return new DVPSVOIWindow(*this); } 00057 00059 virtual ~DVPSVOIWindow(); 00060 00070 OFCondition read(size_t idx, DcmDecimalString &wcenter, DcmDecimalString& wwidth, DcmLongString *expl=NULL); 00071 00076 void clear(); 00077 00082 const char *getExplanation(); 00083 00087 double getWindowCenter() { return windowCenter; } 00088 00092 double getWindowWidth() { return windowWidth; } 00093 00094 private: 00096 DVPSVOIWindow& operator=(const DVPSVOIWindow&); 00097 // window center 00098 double windowCenter; 00099 // window width 00100 double windowWidth; 00101 // optional window explanation 00102 OFString windowCenterWidthExplanation; 00103 00104 }; 00105 00106 #endif 00107 00108 /* 00109 * $Log: dvpsvw.h,v $ 00110 * Revision 1.9 2010-10-14 13:16:37 joergr 00111 * Updated copyright header. Added reference to COPYRIGHT file. 00112 * 00113 * Revision 1.8 2010-10-07 14:31:36 joergr 00114 * Removed leading underscore characters from preprocessor symbols (reserved). 00115 * 00116 * Revision 1.7 2009-11-24 14:12:58 uli 00117 * Switched to logging mechanism provided by the "new" oflog module. 00118 * 00119 * Revision 1.6 2005-12-08 16:04:13 meichel 00120 * Changed include path schema for all DCMTK header files 00121 * 00122 * Revision 1.5 2001/09/26 15:36:19 meichel 00123 * Adapted dcmpstat to class OFCondition 00124 * 00125 * Revision 1.4 2001/06/01 15:50:25 meichel 00126 * Updated copyright header 00127 * 00128 * Revision 1.3 2000/06/02 16:00:55 meichel 00129 * Adapted all dcmpstat classes to use OFConsole for log and error output 00130 * 00131 * Revision 1.2 2000/03/08 16:28:59 meichel 00132 * Updated copyright header. 00133 * 00134 * Revision 1.1 1998/12/22 17:57:10 meichel 00135 * Implemented Presentation State interface for overlays, 00136 * VOI LUTs, VOI windows, curves. Added test program that 00137 * allows to add curve data to DICOM images. 00138 * 00139 * 00140 */