GDCM
2.2.0
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
Source
MediaStorageAndFileFormat
gdcmImageReader.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: GDCM (Grassroots DICOM). A DICOM library
4
5
Copyright (c) 2006-2011 Mathieu Malaterre
6
All rights reserved.
7
See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
8
9
This software is distributed WITHOUT ANY WARRANTY; without even
10
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11
PURPOSE. See the above copyright notice for more information.
12
13
=========================================================================*/
14
#ifndef GDCMIMAGEREADER_H
15
#define GDCMIMAGEREADER_H
16
17
#include "
gdcmPixmapReader.h
"
18
#include "
gdcmImage.h
"
19
20
namespace
gdcm
21
{
22
23
class
MediaStorage;
33
class
GDCM_EXPORT
ImageReader
:
public
PixmapReader
34
{
35
public
:
36
ImageReader
();
37
virtual
~
ImageReader
();
//needs to be virtual to ensure lack of memory leaks
38
42
43
virtual
bool
Read();
44
45
// Following methods are valid only after a call to 'Read'
46
48
const
Image
& GetImage()
const
;
49
Image
& GetImage();
50
//void SetImage(Image const &img);
51
52
protected
:
53
bool
ReadImage(
MediaStorage
const
&ms);
54
bool
ReadACRNEMAImage();
55
};
56
57
}
// end namespace gdcm
58
59
#endif //GDCMIMAGEREADER_H
Generated on Wed Jun 13 2012 20:40:37 for GDCM by
1.8.1