fw4spl
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
DicomSRTextNode.hpp
1
/* ***** BEGIN LICENSE BLOCK *****
2
* FW4SPL - Copyright (C) IRCAD, 2009-2017.
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
#ifndef __FWGDCMIO_CONTAINER_SR_DICOMSRTEXTNODE_HPP__
8
#define __FWGDCMIO_CONTAINER_SR_DICOMSRTEXTNODE_HPP__
9
10
#include "fwGdcmIO/config.hpp"
11
#include "fwGdcmIO/container/DicomCodedAttribute.hpp"
12
#include "fwGdcmIO/container/sr/DicomSRNode.hpp"
13
14
#include <gdcmDataSet.h>
15
16
namespace
fwGdcmIO
17
{
18
namespace
container
19
{
20
namespace
sr
21
{
22
26
class
FWGDCMIO_CLASS_API
DicomSRTextNode
:
public
::fwGdcmIO::container::sr::DicomSRNode
27
{
28
public
:
29
31
FWGDCMIO_API
DicomSRTextNode
(
const
DicomCodedAttribute
& codedAttribute,
32
const
std::string& relationship,
const
std::string textValue);
33
35
FWGDCMIO_API
virtual
~DicomSRTextNode();
36
41
FWGDCMIO_API
virtual
void
write(::gdcm::DataSet& dataset)
const
;
42
44
const
std::string&
getTextValue
()
const
45
{
46
return
m_textValue;
47
}
48
50
void
setTextValue
(
const
std::string& textValue)
51
{
52
m_textValue = textValue;
53
}
54
55
protected
:
56
58
virtual
void
print(std::ostream& os)
const
;
59
61
std::string
m_textValue
;
62
};
63
64
}
//namespace sr
65
}
//namespace container
66
}
//namespace fwGdcmIO
67
68
#endif
/* __FWGDCMIO_CONTAINER_SR_DICOMSRTEXTNODE_HPP__ */
fwGdcmIO::container::sr::DicomSRTextNode
This class defines a TEXT node in a SR document.
Definition:
DicomSRTextNode.hpp:26
fwGdcmIO
The namespace fwGdcmIO contains reader, writer and helper for dicom data.
Definition:
container/DicomCodedAttribute.hpp:17
fwGdcmIO::container::sr::DicomSRNode
This class defines a node in a SR document.
Definition:
DicomSRNode.hpp:27
fwGdcmIO::container::sr::DicomSRTextNode::m_textValue
std::string m_textValue
Text Value (0040, a160)
Definition:
DicomSRTextNode.hpp:61
fwGdcmIO::container::DicomCodedAttribute
This class represents a DICOM basic coded entry. It stores the four mains attributes : Code Value...
Definition:
container/DicomCodedAttribute.hpp:28
fwGdcmIO::container::sr::DicomSRTextNode::setTextValue
void setTextValue(const std::string &textValue)
Set Text value.
Definition:
DicomSRTextNode.hpp:50
fwGdcmIO::container::sr::DicomSRTextNode::getTextValue
const std::string & getTextValue() const
Get Text value.
Definition:
DicomSRTextNode.hpp:44
SrcLib
io
fwGdcmIO
include
fwGdcmIO
container
sr
DicomSRTextNode.hpp
Generated on Wed Sep 5 2018 12:47:39 for fw4spl by
1.8.11