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