7 #include "fwGdcmIO/container/sr/DicomSRNumNode.hpp" 9 #include "fwGdcmIO/helper/DicomDataWriter.hxx" 21 const std::string& relationship,
22 const double numValue,
26 m_measurementUnits(measurementUnits)
50 ::gdcm::SmartPointer< ::gdcm::SequenceOfItems > sequence = new ::gdcm::SequenceOfItems();
52 item.SetVLToUndefined();
53 ::gdcm::DataSet& itemDataset = item.GetNestedDataSet();
56 ::fwGdcmIO::helper::DicomDataWriter::setTagValues< double, 0x0040, 0xa30a >(&
m_numValue, 1, itemDataset);
59 ::gdcm::SmartPointer< ::gdcm::SequenceOfItems > codeSequence =
61 ::fwGdcmIO::helper::DicomDataWriter::setAndMergeSequenceTagValue<0x0040, 0x08ea>(codeSequence, itemDataset);
63 sequence->AddItem(item);
64 ::fwGdcmIO::helper::DicomDataWriter::setSequenceTagValue< 0x0040, 0xa300 >(sequence, dataset);
73 os <<
"\\nMeasurement value : [" <<
m_numValue <<
"]";
double m_numValue
Numeric Value.
FWGDCMIO_API DicomSRNumNode(const DicomCodedAttribute &codedAttribute, const std::string &relationship, const double numValue, const DicomCodedAttribute &measurementUnits)
Constructor.
The namespace fwGdcmIO contains reader, writer and helper for dicom data.
virtual FWGDCMIO_API ~DicomSRNumNode()
Destructor.
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 writeMeasuredValueSequence(::gdcm::DataSet &dataset) const
Write a Measured Value Sequence.
DicomCodedAttribute m_measurementUnits
Measurement Units.
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.
::gdcm::SmartPointer< ::gdcm::SequenceOfItems > createConceptNameCodeSequence(const DicomCodedAttribute &codedAttribute) const
Create a concept name code sequence.
virtual FWGDCMIO_API void write(::gdcm::DataSet &dataset) const
Write the SR node in the dataset.