OFFIS DCMTK  Version 3.6.0
diqthitm.h
1 /*
2  *
3  * Copyright (C) 2002-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: dcmimage
15  *
16  * Author: Marco Eichelberg
17  *
18  * Purpose: class DcmQuantHistogramItem
19  *
20  * Last Update: $Author: joergr $
21  * Update Date: $Date: 2010-10-14 13:16:29 $
22  * CVS/RCS Revision: $Revision: 1.4 $
23  * Status: $State: Exp $
24  *
25  * CVS/RCS Log at end of file
26  *
27  */
28 
29 
30 #ifndef DIQTHITM_H
31 #define DIQTHITM_H
32 
33 
34 #include "dcmtk/config/osconfig.h"
35 #include "dcmtk/ofstd/oftypes.h" /* for OFBool */
36 #include "dcmtk/dcmimage/diqtpix.h" /* for DcmQuantPixel */
37 
38 
46 {
47 public:
52  DcmQuantHistogramItem(const DcmQuantPixel& colorP, int val)
53  : DcmQuantPixel(colorP)
54  , value(val)
55  {
56  }
57 
60  : DcmQuantPixel()
61  , value(0)
62  {
63  }
64 
65  // we don't declare a destructor here, but the standard destructor will do.
66 
71  inline OFBool equals(const DcmQuantPixel& colorP) const
72  {
73  return *this == colorP;
74  }
75 
77  inline int getValue() const
78  {
79  return value;
80  }
81 
85  inline void setValue(int v)
86  {
87  value = v;
88  }
89 
91  inline void incValue()
92  {
93  ++value;
94  }
95 
96 private:
97 
107  int value;
108 
109 };
110 
111 
114 
115 
116 #endif
117 
118 
119 /*
120  * CVS/RCS Log:
121  * $Log: diqthitm.h,v $
122  * Revision 1.4 2010-10-14 13:16:29 joergr
123  * Updated copyright header. Added reference to COPYRIGHT file.
124  *
125  * Revision 1.3 2005/12/08 16:01:50 meichel
126  * Changed include path schema for all DCMTK header files
127  *
128  * Revision 1.2 2003/12/23 12:18:05 joergr
129  * Updated copyright header.
130  *
131  * Revision 1.1 2002/01/25 13:32:06 meichel
132  * Initial release of new color quantization classes and
133  * the dcmquant tool in module dcmimage.
134  *
135  *
136  */


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