fw4spl
reader/ie/Document.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2018.
3  * Distributed under the terms of the GNU Lesser General Public License (LGPL) as
4  * published by the Free Software Foundation.
5  * ****** END LICENSE BLOCK ****** */
6 
7 #pragma once
8 
9 #include "fwGdcmIO/container/sr/DicomSRNumNode.hpp"
10 #include "fwGdcmIO/container/sr/DicomSRSCoordNode.hpp"
11 #include "fwGdcmIO/container/sr/DicomSRTextNode.hpp"
12 #include "fwGdcmIO/exception/Failed.hpp"
13 #include "fwGdcmIO/reader/ie/InformationEntity.hpp"
14 
15 #include <fwData/Image.hpp>
16 
17 #include <fwMedData/DicomSeries.hpp>
18 
19 namespace fwData
20 {
21 class Point;
22 }
23 
24 namespace fwGdcmIO
25 {
26 namespace reader
27 {
28 namespace ie
29 {
30 
37 class FWGDCMIO_CLASS_API Document : public ::fwGdcmIO::reader::ie::InformationEntity< ::fwData::Image >
38 {
39 
40 public:
51  FWGDCMIO_API Document(const CSPTR(::fwMedData::DicomSeries)& dicomSeries,
52  const SPTR(::gdcm::Reader)& reader,
53  const SPTR(::fwGdcmIO::container::DicomInstance)& instance,
54  const ::fwData::Image::sptr& image,
55  const ::fwLog::Logger::sptr& logger = nullptr,
56  ProgressCallback progress = nullptr,
57  CancelRequestedCallback cancel = nullptr);
58 
60  FWGDCMIO_API virtual ~Document();
61 
65  FWGDCMIO_API void readSR() throw (::fwGdcmIO::exception::Failed);
66 
67 };
68 
69 } // namespace ie
70 } // namespace reader
71 } // namespace fwGdcmIO
#define SPTR(_cls_)
#define CSPTR(_cls_)
InformationEntity base class used to read modules.
Document Information Entity class It search and read a specific template from the root of the documen...
This class defines a DICOM SOP instance. It is useful during the whole writing process. This class allows to share data between module writers.
The namespace fwGdcmIO contains reader, writer and helper for dicom data.
Implements a failed exception class for fwGdcmIO.
Contains the representation of the data objects used in the framework.