7 #include "fwGdcmIO/container/sr/DicomSRSCoordNode.hpp" 9 #include "fwGdcmIO/helper/DicomDataWriter.hxx" 11 #include <fwServices/macros.hpp> 23 const std::string& relationship,
24 const std::string& graphicType,
25 GraphicDataContainerType graphicDataContainer) :
27 m_graphicType(graphicType),
28 m_graphicDataContainer(graphicDataContainer)
30 SLM_ASSERT(
"Only POINT and POLYLINE are supported by SCoord node for now.",
31 graphicType ==
"POINT" || graphicType ==
"POLYLINE");
33 SLM_ASSERT(
"Graphic data doesn't match graphic type POINT.",
36 SLM_ASSERT(
"Graphic data doesn't match graphic type POLYLINE.",
54 ::fwGdcmIO::helper::DicomDataWriter::setTagValues< float, 0x0070, 0x0022 >(
58 ::fwGdcmIO::helper::DicomDataWriter::setTagValue< 0x0070, 0x0023 >(
m_graphicType, dataset);
FWGDCMIO_API DicomSRSCoordNode(const DicomCodedAttribute &codedAttribute, const std::string &relationship, const std::string &graphicType, GraphicDataContainerType graphicDataContainer)
Constructor.
virtual FWGDCMIO_API void write(::gdcm::DataSet &dataset) const
Write the SR node in the dataset.
The namespace fwGdcmIO contains reader, writer and helper for dicom data.
This class defines a node in a SR document.
virtual FWGDCMIO_API ~DicomSRSCoordNode()
Destructor.
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) ...
GraphicDataContainerType m_graphicDataContainer
Graphic Data.
std::string m_graphicType
Graphic Type.
virtual void print(std::ostream &os) const
Dump function.