GDCM 3.0.24
gdcmImageRegionReader.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 GDCMIMAGEEXTENTREADER_H
15#define GDCMIMAGEEXTENTREADER_H
16
17#include "gdcmImageReader.h"
18#include "gdcmImage.h"
19#include "gdcmRegion.h"
20
21namespace gdcm
22{
23
24class ImageRegionReaderInternals;
35{
36public:
39
41 void SetRegion(Region const & region);
42 Region const &GetRegion() const;
43
47 size_t ComputeBufferLength() const;
48
52
57 bool ReadIntoBuffer(char *inreadbuffer, size_t buflen);
58
59protected:
61 bool Read() override;
62
63private:
64 BoxRegion ComputeBoundingBox();
65 bool ReadRAWIntoBuffer(char *buffer, size_t buflen);
66 bool ReadRLEIntoBuffer(char *buffer, size_t buflen);
67 bool ReadJPEG2000IntoBuffer(char *buffer, size_t buflen);
68 bool ReadJPEGIntoBuffer(char *buffer, size_t buflen);
69 bool ReadJPEGLSIntoBuffer(char *buffer, size_t buflen);
70 ImageRegionReaderInternals *Internals;
71};
72
73} // end namespace gdcm
74
75#endif //GDCMIMAGEEXTENTREADER_H
Class for manipulation box region.
Definition gdcmBoxRegion.h:31
ImageReader.
Definition gdcmImageReader.h:34
ImageRegionReader.
Definition gdcmImageRegionReader.h:35
Region const & GetRegion() const
bool ReadIntoBuffer(char *inreadbuffer, size_t buflen)
size_t ComputeBufferLength() const
bool Read() override
To prevent user from calling super class Read() function.
~ImageRegionReader() override
void SetRegion(Region const &region)
Set/Get Region to be read.
Class for manipulation region.
Definition gdcmRegion.h:29
#define GDCM_EXPORT
Definition gdcmWin32.h:34
Definition gdcmASN1.h:21