gdcmImageRegionReader.h
Go to the documentation of this file.
/*=========================================================================
Program: GDCM (Grassroots DICOM). A DICOM library
Copyright (c) 2006-2011 Mathieu Malaterre
All rights reserved.
See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
#ifndef GDCMIMAGEEXTENTREADER_H
#define GDCMIMAGEEXTENTREADER_H
#include "gdcmImageReader.h"
#include "gdcmImage.h"
#include "gdcmRegion.h"
namespace gdcm
{
class ImageRegionReaderInternals;
class GDCM_EXPORT ImageRegionReader : public ImageReader
{
public:
ImageRegionReader();
~ImageRegionReader() override;
void SetRegion(Region const & region);
Region const &GetRegion() const;
size_t ComputeBufferLength() const;
bool ReadInformation();
bool ReadIntoBuffer(char *inreadbuffer, size_t buflen);
protected:
bool Read() override;
private:
BoxRegion ComputeBoundingBox();
bool ReadRAWIntoBuffer(char *buffer, size_t buflen);
bool ReadRLEIntoBuffer(char *buffer, size_t buflen);
bool ReadJPEG2000IntoBuffer(char *buffer, size_t buflen);
bool ReadJPEGIntoBuffer(char *buffer, size_t buflen);
bool ReadJPEGLSIntoBuffer(char *buffer, size_t buflen);
ImageRegionReaderInternals *Internals;
};
} // end namespace gdcm
#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