23#ifndef __mlDcmDRTReferencedReferenceImageSequenceInRTBeamsModuleInterface_H
24#define __mlDcmDRTReferencedReferenceImageSequenceInRTBeamsModuleInterface_H
34#ifndef __mlModuleIncludes_H
51 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
63 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
151 std::vector<DcmDRTReferencedReferenceImageSequenceInRTBeamsModuleInterface::Item>
getSequence()
const {
158 return (_itemVec.size() != 0);
164 return static_cast<MLint>(_itemVec.size());
170 if (_itemVec.size() >
idx) {
171 return _itemVec[
idx];
180 return _itemVec[_itemVec.size()-1];
190 if (_itemVec.size() >
idx) {
191 std::vector<DcmDRTReferencedReferenceImageSequenceInRTBeamsModuleInterface::Item>::iterator
it = _itemVec.begin();
192 std::advance(
it,
idx);
202 if ( _itemVec.size() >
idx ) {
203 std::vector<DcmDRTReferencedReferenceImageSequenceInRTBeamsModuleInterface::Item>::iterator
it = _itemVec.begin();
204 std::advance(
it,
idx);
213 std::vector<DcmDRTReferencedReferenceImageSequenceInRTBeamsModuleInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
bool getReferencedSOPInstanceUID(std::string ¶meter) const
std::string getEndCumulativeMetersetWeightTag() const
bool getReferenceImageNumber(std::string ¶meter) const
std::string getReferencedSOPClassUIDTag() const
bool getEndCumulativeMetersetWeight(std::string ¶meter) const
Item & operator=(const Item ©DcmItem)
bool setReferencedSOPClassUID(std::string parameter)
Item(const Item ©DcmItem)
bool getStartCumulativeMetersetWeight(std::string ¶meter) const
std::string getReferencedSOPInstanceUIDTag() const
bool setReferencedSOPInstanceUID(std::string parameter)
bool getReferencedSOPClassUID(std::string ¶meter) const
bool setEndCumulativeMetersetWeight(std::string parameter)
Item(DCMTree::TreePtr dcmItem)
std::string getStartCumulativeMetersetWeightTag() const
bool setStartCumulativeMetersetWeight(std::string parameter)
std::string getReferenceImageNumberTag() const
bool setReferenceImageNumber(std::string parameter)
DCMTree::TreePtr getTreePtr() const
Class to provide access to DRTReferencedReferenceImageSequenceInRTBeamsModule.
DcmDRTReferencedReferenceImageSequenceInRTBeamsModuleInterface(std::vector< DcmDRTReferencedReferenceImageSequenceInRTBeamsModuleInterface::Item > dcmSequence)
Default Constructor.
DcmDRTReferencedReferenceImageSequenceInRTBeamsModuleInterface()
bool getReferencedSOPInstanceUID(DCMTree::TreePtr item, std::string ¶meter) const
bool setStartCumulativeMetersetWeight(unsigned long idx, std::string parameter)
bool getEndCumulativeMetersetWeight(unsigned long idx, std::string ¶meter) const
bool getReferenceImageNumber(unsigned long idx, std::string ¶meter) const
bool getEndCumulativeMetersetWeight(DCMTree::TreePtr item, std::string ¶meter) const
bool setReferencedSOPInstanceUID(unsigned long idx, std::string parameter)
bool insertItem(const size_t idx)
Insert an item at the indicated position.
bool setEndCumulativeMetersetWeight(unsigned long idx, std::string parameter)
DcmDRTReferencedReferenceImageSequenceInRTBeamsModuleInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
std::string getReferenceImageNumberTag() const
bool getStartCumulativeMetersetWeight(DCMTree::TreePtr item, std::string ¶meter) const
std::string getEndCumulativeMetersetWeightTag() const
std::string getStartCumulativeMetersetWeightTag() const
bool getReferencedSOPClassUID(unsigned long idx, std::string ¶meter) const
void addItem(DcmDRTReferencedReferenceImageSequenceInRTBeamsModuleInterface::Item newItem)
std::vector< DcmDRTReferencedReferenceImageSequenceInRTBeamsModuleInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
bool getStartCumulativeMetersetWeight(unsigned long idx, std::string ¶meter) const
virtual ~DcmDRTReferencedReferenceImageSequenceInRTBeamsModuleInterface()
Default virtual Destructor.
DcmDRTReferencedReferenceImageSequenceInRTBeamsModuleInterface(DCMTree::TreePtrVector treePtrSeq)
DcmDRTReferencedReferenceImageSequenceInRTBeamsModuleInterface::Item & addItem()
Adds a new item to the sequence.
void setSequence(std::vector< DcmDRTReferencedReferenceImageSequenceInRTBeamsModuleInterface::Item > dcmSequence)
Set the DRTReferencedReferenceImageSequenceInRTBeamsModule this interface class provides access to.
std::string getReferencedSOPInstanceUIDTag() const
bool hasSequence() const
Check if the DRTReferencedReferenceImageSequenceInRTBeamsModule is set.
bool setReferencedSOPClassUID(unsigned long idx, std::string parameter)
bool getReferenceImageNumber(DCMTree::TreePtr item, std::string ¶meter) const
bool getReferencedSOPClassUID(DCMTree::TreePtr item, std::string ¶meter) const
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
bool getReferencedSOPInstanceUID(unsigned long idx, std::string ¶meter) const
std::string getReferencedSOPClassUIDTag() const
bool setReferenceImageNumber(unsigned long idx, std::string parameter)
std::vector< DcmDRTReferencedReferenceImageSequenceInRTBeamsModuleInterface::Item > getSequence() const
Return the DRTReferencedReferenceImageSequenceInRTBeamsModule this interface class provides access to...
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
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