7 #ifndef __FWGDCMIO_CONTAINER_SR_DICOMSRNODE_HPP__ 8 #define __FWGDCMIO_CONTAINER_SR_DICOMSRNODE_HPP__ 10 #include "fwGdcmIO/config.hpp" 11 #include "fwGdcmIO/container/DicomCodedAttribute.hpp" 15 #include <gdcmDataSet.h> 31 typedef std::vector< SPTR(DicomSRNode) > SubNodeContainer;
37 FWGDCMIO_API
virtual void write(::gdcm::DataSet& dataset)
const;
46 FWGDCMIO_API
friend std::ostream& operator<< (std::ostream& os,
const DicomSRNode& node)
55 return m_subNodeContainer;
61 m_subNodeContainer = subNodeContainer;
67 return m_codedAttribute;
73 m_codedAttribute = codedAttribute;
91 return m_relationship;
97 m_relationship = relationship;
104 const std::string& relationship =
"");
110 virtual void print(std::ostream& os)
const;
117 ::gdcm::SmartPointer< ::gdcm::SequenceOfItems > createConceptNameCodeSequence(
125 void writeContentSequence(::gdcm::DataSet& dataset)
const;
const std::string & getType() const
Get Type.
const SubNodeContainer & getSubNodeContainer() const
Get Sub node container.
const std::string & getRelationship() const
Get Relationship.
void setSubNodeContainer(const SubNodeContainer &subNodeContainer)
Set Sub node container.
This file defines fwCore base macros.
std::string m_relationship
Node relationship (0040, a010)
The namespace fwGdcmIO contains reader, writer and helper for dicom data.
This class defines a node in a SR document.
This class represents a DICOM basic coded entry. It stores the four mains attributes : Code Value...
virtual void print(std::ostream &os) const
Dump function.
void setType(const std::string &type)
Set Type.
SubNodeContainer m_subNodeContainer
SubNode container.
std::string m_type
Node type (0040, a040)
void setCodedAttribute(const DicomCodedAttribute &codedAttribute)
Set Coded attribute.
void setRelationship(const std::string &relationship)
Set Relationship.
DicomCodedAttribute m_codedAttribute
Coded entry of the node.
const DicomCodedAttribute & getCodedAttribute() const
Get Coded attribute.