7 #include "fwGdcmIO/container/sr/DicomSRSCoord3DNode.hpp" 9 #include "fwGdcmIO/helper/DicomDataWriter.hxx" 11 #include <fwServices/macros.hpp> 23 const std::string& relationship,
24 const std::string& graphicType,
25 const GraphicDataContainerType graphicDataContainer,
26 const std::string& frameOfReferenceUID) :
28 m_frameOfReferenceUID(frameOfReferenceUID),
29 m_graphicType(graphicType),
30 m_graphicDataContainer(graphicDataContainer)
32 SLM_ASSERT(
"Only POINT and POLYLINE are supported by SCoord3D node for now.",
33 graphicType ==
"POINT" || graphicType ==
"POLYLINE");
35 SLM_ASSERT(
"Graphic data doesn't match graphic type POINT.",
38 SLM_ASSERT(
"Graphic data doesn't match graphic type POLYLINE.",
59 ::fwGdcmIO::helper::DicomDataWriter::setTagValues< float, 0x0070, 0x0022 >(
63 ::fwGdcmIO::helper::DicomDataWriter::setTagValue< 0x0070, 0x0023 >(
m_graphicType, dataset);
std::string m_frameOfReferenceUID
Referenced Frame of Reference UID.
GraphicDataContainerType m_graphicDataContainer
Graphic Data.
std::string m_graphicType
Graphic Type.
virtual FWGDCMIO_API void write(::gdcm::DataSet &dataset) const
Write the SR node in the dataset.
virtual FWGDCMIO_API ~DicomSRSCoord3DNode()
Destructor.
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.
virtual FWGDCMIO_API void write(::gdcm::DataSet &dataset) const
Write the SR node in the dataset.
#define SLM_ASSERT(message, cond)
work like 'assert' from 'cassert', with in addition a message logged by spylog (with FATAL loglevel) ...
virtual void print(std::ostream &os) const
Dump function.
FWGDCMIO_API DicomSRSCoord3DNode(const DicomCodedAttribute &codedAttribute, const std::string &relationship, const std::string &graphicType, const GraphicDataContainerType graphicDataContainer, const std::string &frameOfReferenceUID)
Constructor.