GDCM: gdcmImageRegionReader.h Source File

GDCM 3.2.10

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;
34 class GDCM_EXPORT ImageRegionReader : public ImageReader
35{
36public:
37 ImageRegionReader();
38 ~ImageRegionReader() override;
39
41 void SetRegion(Region const & region);
42 Region const &GetRegion() const;
43
47 size_t ComputeBufferLength() const;
48
51 bool ReadInformation();
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
gdcm::BoxRegion
Class for manipulation box region.
Definition gdcmBoxRegion.h:31
gdcm::ImageReader::ImageReader
ImageReader()
gdcm::ImageRegionReader::GetRegion
Region const & GetRegion() const
gdcm::ImageRegionReader::ReadInformation
bool ReadInformation()
gdcm::ImageRegionReader::ReadIntoBuffer
bool ReadIntoBuffer(char *inreadbuffer, size_t buflen)
gdcm::ImageRegionReader::ComputeBufferLength
size_t ComputeBufferLength() const
gdcm::ImageRegionReader::Read
bool Read() override
To prevent user from calling super class Read() function.
gdcm::ImageRegionReader::~ImageRegionReader
~ImageRegionReader() override
gdcm::ImageRegionReader::ImageRegionReader
ImageRegionReader()
gdcm::ImageRegionReader::SetRegion
void SetRegion(Region const &region)
Set/Get Region to be read.
gdcm::Region
Class for manipulation region.
Definition gdcmRegion.h:29
gdcmImageReader.h
gdcmImage.h
gdcmRegion.h
GDCM_EXPORT
#define GDCM_EXPORT
Definition gdcmWin32.h:34
gdcm
Definition gdcmASN1.h:21