OFFIS DCMTK  Version 3.6.0
dvpsvw.h
1 /*
2  *
3  * Copyright (C) 1998-2010, OFFIS e.V.
4  * All rights reserved. See COPYRIGHT file for details.
5  *
6  * This software and supporting documentation were developed by
7  *
8  * OFFIS e.V.
9  * R&D Division Health
10  * Escherweg 2
11  * D-26121 Oldenburg, Germany
12  *
13  *
14  * Module: dcmpstat
15  *
16  * Author: Marco Eichelberg
17  *
18  * Purpose:
19  * classes: DVPSVOIWindow
20  *
21  * Last Update: $Author: joergr $
22  * Update Date: $Date: 2010-10-14 13:16:37 $
23  * CVS/RCS Revision: $Revision: 1.9 $
24  * Status: $State: Exp $
25  *
26  * CVS/RCS Log at end of file
27  *
28  */
29 
30 #ifndef DVPSVW_H
31 #define DVPSVW_H
32 
33 #include "dcmtk/config/osconfig.h" /* make sure OS specific configuration is included first */
34 #include "dcmtk/ofstd/ofstring.h"
35 #include "dcmtk/dcmdata/dcerror.h" /* for OFCondition */
36 
37 class DcmDecimalString;
38 class DcmLongString;
39 
44 {
45 public:
47  DVPSVOIWindow();
48 
50  DVPSVOIWindow(const DVPSVOIWindow& copy);
51 
56  DVPSVOIWindow *clone() { return new DVPSVOIWindow(*this); }
57 
59  virtual ~DVPSVOIWindow();
60 
70  OFCondition read(size_t idx, DcmDecimalString &wcenter, DcmDecimalString& wwidth, DcmLongString *expl=NULL);
71 
76  void clear();
77 
82  const char *getExplanation();
83 
87  double getWindowCenter() { return windowCenter; }
88 
92  double getWindowWidth() { return windowWidth; }
93 
94 private:
97  // window center
98  double windowCenter;
99  // window width
100  double windowWidth;
101  // optional window explanation
102  OFString windowCenterWidthExplanation;
103 
104 };
105 
106 #endif
107 
108 /*
109  * $Log: dvpsvw.h,v $
110  * Revision 1.9 2010-10-14 13:16:37 joergr
111  * Updated copyright header. Added reference to COPYRIGHT file.
112  *
113  * Revision 1.8 2010-10-07 14:31:36 joergr
114  * Removed leading underscore characters from preprocessor symbols (reserved).
115  *
116  * Revision 1.7 2009-11-24 14:12:58 uli
117  * Switched to logging mechanism provided by the "new" oflog module.
118  *
119  * Revision 1.6 2005-12-08 16:04:13 meichel
120  * Changed include path schema for all DCMTK header files
121  *
122  * Revision 1.5 2001/09/26 15:36:19 meichel
123  * Adapted dcmpstat to class OFCondition
124  *
125  * Revision 1.4 2001/06/01 15:50:25 meichel
126  * Updated copyright header
127  *
128  * Revision 1.3 2000/06/02 16:00:55 meichel
129  * Adapted all dcmpstat classes to use OFConsole for log and error output
130  *
131  * Revision 1.2 2000/03/08 16:28:59 meichel
132  * Updated copyright header.
133  *
134  * Revision 1.1 1998/12/22 17:57:10 meichel
135  * Implemented Presentation State interface for overlays,
136  * VOI LUTs, VOI windows, curves. Added test program that
137  * allows to add curve data to DICOM images.
138  *
139  *
140  */


Generated on Thu Dec 20 2012 for OFFIS DCMTK Version 3.6.0 by Doxygen 1.8.2