GDCM: gdcmImageReader.h Source File

GDCM 3.2.10

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
20namespace gdcm
21{
22
23class MediaStorage;
33 class GDCM_EXPORT ImageReader : public PixmapReader
34{
35public:
36 ImageReader();
37 ~ImageReader() override;//needs to be virtual to ensure lack of memory leaks
38
42
43 bool Read() override;
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
52protected:
53 bool ReadImage(MediaStorage const &ms) override;
54 bool ReadACRNEMAImage() override;
55};
56
57} // end namespace gdcm
58
59#endif //GDCMIMAGEREADER_H
gdcm::ImageReader::ReadACRNEMAImage
bool ReadACRNEMAImage() override
gdcm::ImageReader::GetImage
const Image & GetImage() const
Return the read image.
gdcm::ImageReader::ImageReader
ImageReader()
gdcm::ImageReader::Read
bool Read() override
gdcm::ImageReader::ReadImage
bool ReadImage(MediaStorage const &ms) override
gdcm::ImageReader::GetImage
Image & GetImage()
gdcm::ImageReader::~ImageReader
~ImageReader() override
gdcm::Image
Image.
Definition gdcmImage.h:47
gdcm::MediaStorage
MediaStorage.
Definition gdcmMediaStorage.h:44
gdcm::PixmapReader::PixmapReader
PixmapReader()
gdcmImage.h
gdcmPixmapReader.h
GDCM_EXPORT
#define GDCM_EXPORT
Definition gdcmWin32.h:34
gdcm
Definition gdcmASN1.h:21