23#ifndef __mlDcmDRTCorrectedParameterSequenceInterface_H
24#define __mlDcmDRTCorrectedParameterSequenceInterface_H
34#ifndef __mlModuleIncludes_H
51 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
63 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
118 std::vector<DcmDRTCorrectedParameterSequenceInterface::Item>
getSequence()
const {
125 return (_itemVec.size() != 0);
131 return static_cast<MLint>(_itemVec.size());
137 if (_itemVec.size() >
idx) {
138 return _itemVec[
idx];
147 return _itemVec[_itemVec.size()-1];
157 if (_itemVec.size() >
idx) {
158 std::vector<DcmDRTCorrectedParameterSequenceInterface::Item>::iterator
it = _itemVec.begin();
159 std::advance(
it,
idx);
169 if ( _itemVec.size() >
idx ) {
170 std::vector<DcmDRTCorrectedParameterSequenceInterface::Item>::iterator
it = _itemVec.begin();
171 std::advance(
it,
idx);
180 std::vector<DcmDRTCorrectedParameterSequenceInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
std::string getParameterItemIndexTag() const
bool setCorrectionValue(float parameter)
Item(const Item ©DcmItem)
Item & operator=(const Item ©DcmItem)
bool getParameterItemIndex(std::string ¶meter) const
DCMTree::TreePtr getTreePtr() const
bool getCorrectionValue(float ¶meter) const
Item(DCMTree::TreePtr dcmItem)
bool setParameterItemIndex(std::string parameter)
std::string getCorrectionValueTag() const
Class to provide access to DRTCorrectedParameterSequence.
bool hasSequence() const
Check if the DRTCorrectedParameterSequence is set.
DcmDRTCorrectedParameterSequenceInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
DcmDRTCorrectedParameterSequenceInterface(std::vector< DcmDRTCorrectedParameterSequenceInterface::Item > dcmSequence)
Default Constructor.
std::vector< DcmDRTCorrectedParameterSequenceInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
DcmDRTCorrectedParameterSequenceInterface()
std::string getCorrectionValueTag() const
void setSequence(std::vector< DcmDRTCorrectedParameterSequenceInterface::Item > dcmSequence)
Set the DRTCorrectedParameterSequence this interface class provides access to.
bool getCorrectionValue(DCMTree::TreePtr item, float ¶meter) const
bool setParameterItemIndex(unsigned long idx, std::string parameter)
bool insertItem(const size_t idx)
Insert an item at the indicated position.
bool getCorrectionValue(unsigned long idx, float ¶meter) const
bool setCorrectionValue(unsigned long idx, float parameter)
DcmDRTCorrectedParameterSequenceInterface(DCMTree::TreePtrVector treePtrSeq)
bool getParameterItemIndex(unsigned long idx, std::string ¶meter) const
DcmDRTCorrectedParameterSequenceInterface::Item & addItem()
Adds a new item to the sequence.
bool getParameterItemIndex(DCMTree::TreePtr item, std::string ¶meter) const
virtual ~DcmDRTCorrectedParameterSequenceInterface()
Default virtual Destructor.
std::vector< DcmDRTCorrectedParameterSequenceInterface::Item > getSequence() const
Return the DRTCorrectedParameterSequence this interface class provides access to.
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
std::string getParameterItemIndexTag() const
void addItem(DcmDRTCorrectedParameterSequenceInterface::Item newItem)
Class collecting some DICOM helper functionality explicitly for dcmtk.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
MLint64 MLint
A signed ML integer type with at least 64 bits used for index calculations on very large images even ...
std::vector< TreePtr > TreePtrVector
a vector of TreePtr - used for sequences
boost::shared_ptr< Tree > TreePtr
shared pointer to a DCMTree::Tree