GDCM: gdcmSegmentReader.h Source File

GDCM 3.2.5

gdcmSegmentReader.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 GDCMSEGMENTREADER_H
15#define GDCMSEGMENTREADER_H
16
17#include <map>
18
19#include <gdcmReader.h>
20#include <gdcmSegment.h>
21
22namespace gdcm
23{
24
31 class GDCM_EXPORT SegmentReader : public Reader
32{
33public:
34 typedef std::vector< SmartPointer< Segment > > SegmentVector;
35
36 SegmentReader();
37
38 ~SegmentReader() override;
39
41 bool Read() override; // Set to protected ?
42
43 //** Segment getters/setters **//
44 SegmentVector GetSegments() const;
45 SegmentVector GetSegments();
46
47// unsigned int GetNumberOfSegments();
48
49protected:
50
51 typedef std::map< unsigned long, SmartPointer< Segment > > SegmentMap;
52
53 bool ReadSegments();
54
55 bool ReadSegment(const Item & segmentItem, const unsigned int idx);
56
57
58 SegmentMap Segments; // The key value is item number (in segment sequence)
59 // or the surface number (for a surface segmentation).
60
61};
62
63}
64
65#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