23#ifndef __mlDcmDRTIonBeamLimitingDeviceSequenceInterface_H
24#define __mlDcmDRTIonBeamLimitingDeviceSequenceInterface_H
34#ifndef __mlModuleIncludes_H
51 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
63 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
140 std::vector<DcmDRTIonBeamLimitingDeviceSequenceInterface::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<DcmDRTIonBeamLimitingDeviceSequenceInterface::Item>::iterator
it = _itemVec.begin();
181 std::advance(
it,
idx);
191 if ( _itemVec.size() >
idx ) {
192 std::vector<DcmDRTIonBeamLimitingDeviceSequenceInterface::Item>::iterator
it = _itemVec.begin();
193 std::advance(
it,
idx);
202 std::vector<DcmDRTIonBeamLimitingDeviceSequenceInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
Item(DCMTree::TreePtr dcmItem)
bool getIsocenterToBeamLimitingDeviceDistance(float ¶meter) const
Item(const Item ©DcmItem)
std::string getIsocenterToBeamLimitingDeviceDistanceTag() const
std::string getNumberOfLeafJawPairsTag() const
DCMTree::TreePtr getTreePtr() const
bool setIsocenterToBeamLimitingDeviceDistance(float parameter)
Item & operator=(const Item ©DcmItem)
std::string getRTBeamLimitingDeviceTypeTag() const
bool setNumberOfLeafJawPairs(std::string parameter)
bool setRTBeamLimitingDeviceType(std::string parameter)
bool setLeafPositionBoundaries(std::string parameter)
bool getLeafPositionBoundaries(std::string ¶meter) const
std::string getLeafPositionBoundariesTag() const
bool getNumberOfLeafJawPairs(std::string ¶meter) const
bool getRTBeamLimitingDeviceType(std::string ¶meter) const
Class to provide access to DRTIonBeamLimitingDeviceSequence.
DcmDRTIonBeamLimitingDeviceSequenceInterface(std::vector< DcmDRTIonBeamLimitingDeviceSequenceInterface::Item > dcmSequence)
Default Constructor.
std::vector< DcmDRTIonBeamLimitingDeviceSequenceInterface::Item > getSequence() const
Return the DRTIonBeamLimitingDeviceSequence this interface class provides access to.
bool getIsocenterToBeamLimitingDeviceDistance(DCMTree::TreePtr item, float ¶meter) const
std::string getRTBeamLimitingDeviceTypeTag() const
DcmDRTIonBeamLimitingDeviceSequenceInterface::Item & addItem()
Adds a new item to the sequence.
bool setIsocenterToBeamLimitingDeviceDistance(unsigned long idx, float parameter)
bool getRTBeamLimitingDeviceType(unsigned long idx, std::string ¶meter) const
bool setNumberOfLeafJawPairs(unsigned long idx, std::string parameter)
bool hasSequence() const
Check if the DRTIonBeamLimitingDeviceSequence is set.
bool getNumberOfLeafJawPairs(DCMTree::TreePtr item, std::string ¶meter) const
bool insertItem(const size_t idx)
Insert an item at the indicated position.
bool getRTBeamLimitingDeviceType(DCMTree::TreePtr item, std::string ¶meter) const
DcmDRTIonBeamLimitingDeviceSequenceInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
virtual ~DcmDRTIonBeamLimitingDeviceSequenceInterface()
Default virtual Destructor.
bool setRTBeamLimitingDeviceType(unsigned long idx, std::string parameter)
void addItem(DcmDRTIonBeamLimitingDeviceSequenceInterface::Item newItem)
std::string getNumberOfLeafJawPairsTag() const
std::vector< DcmDRTIonBeamLimitingDeviceSequenceInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
void setSequence(std::vector< DcmDRTIonBeamLimitingDeviceSequenceInterface::Item > dcmSequence)
Set the DRTIonBeamLimitingDeviceSequence this interface class provides access to.
std::string getLeafPositionBoundariesTag() const
bool getIsocenterToBeamLimitingDeviceDistance(unsigned long idx, float ¶meter) const
DcmDRTIonBeamLimitingDeviceSequenceInterface()
bool getLeafPositionBoundaries(unsigned long idx, std::string ¶meter) const
DcmDRTIonBeamLimitingDeviceSequenceInterface(DCMTree::TreePtrVector treePtrSeq)
std::string getIsocenterToBeamLimitingDeviceDistanceTag() const
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
bool setLeafPositionBoundaries(unsigned long idx, std::string parameter)
bool getNumberOfLeafJawPairs(unsigned long idx, std::string ¶meter) const
bool getLeafPositionBoundaries(DCMTree::TreePtr item, 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