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