23#ifndef __mlDcmDRTMotionSynchronizationSequenceInterface_H
24#define __mlDcmDRTMotionSynchronizationSequenceInterface_H
34#ifndef __mlModuleIncludes_H
51 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
63 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
140 std::vector<DcmDRTMotionSynchronizationSequenceInterface::Item>
getSequence()
const {
147 return (_itemVec.size() != 0);
153 return static_cast<MLint>(_itemVec.size());
159 if (_itemVec.size() >
idx) {
160 return _itemVec[
idx];
169 return _itemVec[_itemVec.size()-1];
179 if (_itemVec.size() >
idx) {
180 std::vector<DcmDRTMotionSynchronizationSequenceInterface::Item>::iterator
it = _itemVec.begin();
181 std::advance(
it,
idx);
191 if ( _itemVec.size() >
idx ) {
192 std::vector<DcmDRTMotionSynchronizationSequenceInterface::Item>::iterator
it = _itemVec.begin();
193 std::advance(
it,
idx);
202 std::vector<DcmDRTMotionSynchronizationSequenceInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
bool getRespiratoryMotionCompensationTechniqueDescription(std::string ¶meter) const
bool setRespiratorySignalSourceID(std::string parameter)
Item(const Item ©DcmItem)
bool setRespiratoryMotionCompensationTechniqueDescription(std::string parameter)
std::string getRespiratorySignalSourceTag() const
std::string getRespiratoryMotionCompensationTechniqueTag() const
Item & operator=(const Item ©DcmItem)
bool getRespiratorySignalSource(std::string ¶meter) const
bool setRespiratorySignalSource(std::string parameter)
bool setRespiratoryMotionCompensationTechnique(std::string parameter)
std::string getRespiratorySignalSourceIDTag() const
DCMTree::TreePtr getTreePtr() const
Item(DCMTree::TreePtr dcmItem)
std::string getRespiratoryMotionCompensationTechniqueDescriptionTag() const
bool getRespiratoryMotionCompensationTechnique(std::string ¶meter) const
bool getRespiratorySignalSourceID(std::string ¶meter) const
Class to provide access to DRTMotionSynchronizationSequence.
DcmDRTMotionSynchronizationSequenceInterface(std::vector< DcmDRTMotionSynchronizationSequenceInterface::Item > dcmSequence)
Default Constructor.
DcmDRTMotionSynchronizationSequenceInterface()
bool getRespiratorySignalSource(unsigned long idx, std::string ¶meter) const
std::vector< DcmDRTMotionSynchronizationSequenceInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
bool getRespiratoryMotionCompensationTechniqueDescription(DCMTree::TreePtr item, std::string ¶meter) const
bool setRespiratoryMotionCompensationTechnique(unsigned long idx, std::string parameter)
std::vector< DcmDRTMotionSynchronizationSequenceInterface::Item > getSequence() const
Return the DRTMotionSynchronizationSequence this interface class provides access to.
bool getRespiratorySignalSourceID(DCMTree::TreePtr item, std::string ¶meter) const
std::string getRespiratorySignalSourceIDTag() const
std::string getRespiratoryMotionCompensationTechniqueDescriptionTag() const
bool setRespiratorySignalSource(unsigned long idx, std::string parameter)
bool getRespiratoryMotionCompensationTechnique(DCMTree::TreePtr item, std::string ¶meter) const
void setSequence(std::vector< DcmDRTMotionSynchronizationSequenceInterface::Item > dcmSequence)
Set the DRTMotionSynchronizationSequence this interface class provides access to.
bool getRespiratoryMotionCompensationTechniqueDescription(unsigned long idx, std::string ¶meter) const
void addItem(DcmDRTMotionSynchronizationSequenceInterface::Item newItem)
bool getRespiratoryMotionCompensationTechnique(unsigned long idx, std::string ¶meter) const
bool setRespiratorySignalSourceID(unsigned long idx, std::string parameter)
bool insertItem(const size_t idx)
Insert an item at the indicated position.
virtual ~DcmDRTMotionSynchronizationSequenceInterface()
Default virtual Destructor.
bool hasSequence() const
Check if the DRTMotionSynchronizationSequence is set.
bool getRespiratorySignalSource(DCMTree::TreePtr item, std::string ¶meter) const
DcmDRTMotionSynchronizationSequenceInterface(DCMTree::TreePtrVector treePtrSeq)
bool setRespiratoryMotionCompensationTechniqueDescription(unsigned long idx, std::string parameter)
std::string getRespiratorySignalSourceTag() const
DcmDRTMotionSynchronizationSequenceInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
std::string getRespiratoryMotionCompensationTechniqueTag() const
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
DcmDRTMotionSynchronizationSequenceInterface::Item & addItem()
Adds a new item to the sequence.
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
bool getRespiratorySignalSourceID(unsigned long idx, std::string ¶meter) const
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