OFFIS DCMTK  Version 3.6.0
dipixel.h
1 /*
2  *
3  * Copyright (C) 1996-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: dcmimgle
15  *
16  * Author: Joerg Riesmeier
17  *
18  * Purpose: DicomPixel (Header)
19  *
20  * Last Update: $Author: joergr $
21  * Update Date: $Date: 2010-10-14 13:16:27 $
22  * CVS/RCS Revision: $Revision: 1.13 $
23  * Status: $State: Exp $
24  *
25  * CVS/RCS Log at end of file
26  *
27  */
28 
29 
30 #ifndef DIPIXEL_H
31 #define DIPIXEL_H
32 
33 #include "dcmtk/config/osconfig.h"
34 
35 #include "dcmtk/dcmimgle/diutils.h"
36 
37 
38 /*---------------------*
39  * class declaration *
40  *---------------------*/
41 
44 class DiPixel
45 {
46 
47  public:
48 
54  DiPixel(const unsigned long count,
55  const unsigned long inputCount = 0)
56  : Count(count),
57  InputCount(inputCount)
58  {
59  }
60 
63  virtual ~DiPixel()
64  {
65  }
66 
71  virtual EP_Representation getRepresentation() const = 0;
72 
77  virtual int getPlanes() const = 0;
78 
84  virtual const void *getData() const = 0;
85 
91  virtual void *getDataPtr() = 0;
92 
98  virtual void *getDataArrayPtr() = 0;
99 
104  inline unsigned long getCount() const
105  {
106  return Count;
107  }
108 
113  inline unsigned long getInputCount() const
114  {
115  return InputCount;
116  }
117 
118 
119  protected:
120 
122  /*const*/ unsigned long Count;
123 
125  unsigned long InputCount;
126 };
127 
128 
129 #endif
130 
131 
132 /*
133  *
134  * CVS/RCS Log:
135  * $Log: dipixel.h,v $
136  * Revision 1.13 2010-10-14 13:16:27 joergr
137  * Updated copyright header. Added reference to COPYRIGHT file.
138  *
139  * Revision 1.12 2010-03-01 09:08:47 uli
140  * Removed some unnecessary include directives in the headers.
141  *
142  * Revision 1.11 2005-12-08 16:48:04 meichel
143  * Changed include path schema for all DCMTK header files
144  *
145  * Revision 1.10 2004/10/19 12:58:24 joergr
146  * Enhanced API documentation.
147  *
148  * Revision 1.9 2004/02/06 11:07:50 joergr
149  * Distinguish more clearly between const and non-const access to pixel data.
150  *
151  * Revision 1.8 2003/12/09 10:07:16 joergr
152  * Removed leading underscore characters from preprocessor symbols (reserved
153  * symbols). Updated copyright header.
154  *
155  * Revision 1.7 2002/06/26 16:06:08 joergr
156  * Enhanced handling of corrupted pixel data and/or length.
157  *
158  * Revision 1.6 2001/06/01 15:49:50 meichel
159  * Updated copyright header
160  *
161  * Revision 1.5 2000/03/08 16:24:23 meichel
162  * Updated copyright header.
163  *
164  * Revision 1.4 1999/09/17 12:47:51 joergr
165  * Added/changed/completed DOC++ style comments in the header files.
166  *
167  * Revision 1.3 1999/03/24 17:20:22 joergr
168  * Added/Modified comments and formatting.
169  *
170  * Revision 1.2 1999/01/20 15:12:10 joergr
171  * Replaced invocation of getCount() by member variable Count where possible.
172  *
173  * Revision 1.1 1998/11/27 15:32:37 joergr
174  * Added copyright message.
175  * Introduced new pixel base class.
176  *
177  *
178  */


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