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