OFFIS DCMTK  Version 3.6.0
dicopx.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: dcmimage
15  *
16  * Author: Joerg Riesmeier
17  *
18  * Purpose: DicomColorPixel (Header)
19  *
20  * Last Update: $Author: joergr $
21  * Update Date: $Date: 2010-10-14 13:16:29 $
22  * CVS/RCS Revision: $Revision: 1.20 $
23  * Status: $State: Exp $
24  *
25  * CVS/RCS Log at end of file
26  *
27  */
28 
29 
30 #ifndef DICOPX_H
31 #define DICOPX_H
32 
33 #include "dcmtk/config/osconfig.h"
34 
35 #include "dcmtk/dcmimage/dilogger.h"
36 #include "dcmtk/dcmimgle/dipixel.h"
37 
38 
39 /*------------------------*
40  * forward declarations *
41  *------------------------*/
42 
43 class DiDocument;
44 class DiInputPixel;
45 class DiMonoPixel;
46 class DiColorPixel;
47 
48 
49 /*---------------------*
50  * class declaration *
51  *---------------------*/
52 
53 
57  : public DiPixel
58 {
59 
60  public:
61 
70  DiColorPixel(const DiDocument *docu,
71  const DiInputPixel *pixel,
72  const Uint16 samples,
73  EI_Status &status,
74  const Uint16 sample_rate = 0);
75 
78  virtual ~DiColorPixel();
79 
84  inline int getPlanes() const
85  {
86  return 3;
87  }
88 
93  inline int getPlanarConfiguration() const
94  {
95  return PlanarConfiguration;
96  }
97 
108  virtual OFBool getPixelData(void *data,
109  const unsigned long count,
110  const unsigned long fcount,
111  const unsigned long frames,
112  const int planar) const = 0;
113 
129  virtual unsigned long createDIB(void *&data,
130  const unsigned long size,
131  const Uint16 width,
132  const Uint16 height,
133  const unsigned long frame,
134  const int fromBits,
135  const int toBits,
136  const int mode,
137  const int upsideDown,
138  const int padding) const = 0;
139 
151  virtual unsigned long createAWTBitmap(void *&data,
152  const Uint16 width,
153  const Uint16 height,
154  const unsigned long frame,
155  const int fromBits,
156  const int toBits) const = 0;
157 
158 
159  protected:
160 
166  DiColorPixel(const DiColorPixel *pixel,
167  const unsigned long count);
168 
171 };
172 
173 
174 #endif
175 
176 
177 /*
178  *
179  * CVS/RCS Log:
180  * $Log: dicopx.h,v $
181  * Revision 1.20 2010-10-14 13:16:29 joergr
182  * Updated copyright header. Added reference to COPYRIGHT file.
183  *
184  * Revision 1.19 2010-03-01 09:08:46 uli
185  * Removed some unnecessary include directives in the headers.
186  *
187  * Revision 1.18 2009-11-25 14:36:20 joergr
188  * Added new source and header file for the module logger.
189  *
190  * Revision 1.17 2008-05-13 10:03:34 joergr
191  * Fixed issue with multi-frame color images: writeImageToDataset() used wrong
192  * format for color-by-plane output.
193  *
194  * Revision 1.16 2005/12/08 16:01:34 meichel
195  * Changed include path schema for all DCMTK header files
196  *
197  * Revision 1.15 2004/10/19 12:57:47 joergr
198  * Enhanced API documentation.
199  *
200  * Revision 1.14 2003/12/17 18:18:08 joergr
201  * Removed leading underscore characters from preprocessor symbols (reserved
202  * symbols).
203  *
204  * Revision 1.13 2002/09/12 14:10:37 joergr
205  * Replaced "createPixelData" by "getPixelData" which uses a new dcmdata
206  * routine and is therefore more efficient.
207  *
208  * Revision 1.12 2002/08/29 12:57:49 joergr
209  * Added method that creates pixel data in DICOM format.
210  *
211  * Revision 1.11 2002/01/29 17:07:08 joergr
212  * Added optional flag to the "Windows DIB" methods allowing to switch off the
213  * scanline padding.
214  *
215  * Revision 1.10 2001/11/09 16:44:01 joergr
216  * Enhanced and renamed createTrueColorDIB() method.
217  * Updated/Enhanced comments.
218  *
219  * Revision 1.9 2001/06/01 15:49:29 meichel
220  * Updated copyright header
221  *
222  * Revision 1.8 2000/03/08 16:21:51 meichel
223  * Updated copyright header.
224  *
225  * Revision 1.7 1999/04/29 09:31:13 joergr
226  * Moved color related image files back to non-public part.
227  *
228  * Revision 1.1 1999/04/28 14:57:32 joergr
229  * Moved files from dcmimage module to dcmimgle to support new pastel color
230  * output format.
231  *
232  * Revision 1.5 1999/01/20 14:44:04 joergr
233  * Corrected some typos and formatting.
234  *
235  * Revision 1.4 1998/11/27 13:47:54 joergr
236  * Added copyright message. Added method to directly create java AWT bitmaps.
237  *
238  * Revision 1.3 1998/05/11 14:53:13 joergr
239  * Added CVS/RCS header to each file.
240  *
241  *
242  */


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