gdcmSegmentReader.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 GDCMSEGMENTREADER_H
#define GDCMSEGMENTREADER_H
#include <map>
#include <gdcmReader.h>
#include <gdcmSegment.h>
namespace gdcm
{
class GDCM_EXPORT SegmentReader : public Reader
{
public:
typedef std::vector< SmartPointer< Segment > > SegmentVector;
SegmentReader();
~SegmentReader() override;
bool Read() override; // Set to protected ?
//** Segment getters/setters **//
SegmentVector GetSegments() const;
SegmentVector GetSegments();
// unsigned int GetNumberOfSegments();
protected:
typedef std::map< unsigned long, SmartPointer< Segment > > SegmentMap;
bool ReadSegments();
bool ReadSegment(const Item & segmentItem, const unsigned int idx);
SegmentMap Segments; // The key value is item number (in segment sequence)
// or the surface number (for a surface segmentation).
};
}
#endif // GDCMSEGMENTREADER_H
gdcm::Item
Class to represent an Item.
Definition gdcmItem.h:46
gdcm::Reader::Reader
Reader()
gdcm::SegmentReader::GetSegments
SegmentVector GetSegments() const
gdcm::SegmentReader::ReadSegment
bool ReadSegment(const Item &segmentItem, const unsigned int idx)
gdcm::SegmentReader::Read
bool Read() override
Read.
gdcm::SegmentReader::SegmentMap
std::map< unsigned long, SmartPointer< Segment > > SegmentMap
Definition gdcmSegmentReader.h:51
gdcm::SegmentReader::SegmentVector
std::vector< SmartPointer< Segment > > SegmentVector
Definition gdcmSegmentReader.h:34
gdcm::SegmentReader::ReadSegments
bool ReadSegments()
gdcm::SegmentReader::SegmentReader
SegmentReader()
gdcm::SegmentReader::GetSegments
SegmentVector GetSegments()
gdcm::SegmentReader::Segments
SegmentMap Segments
Definition gdcmSegmentReader.h:58
gdcm::SegmentReader::~SegmentReader
~SegmentReader() override
gdcmReader.h
gdcmSegment.h
GDCM_EXPORT
#define GDCM_EXPORT
Definition gdcmWin32.h:34
gdcm
Definition gdcmASN1.h:21