23#ifndef __mlDcmDRTBlockSequenceInRTBeamsModuleInterface_H
24#define __mlDcmDRTBlockSequenceInRTBeamsModuleInterface_H
34#ifndef __mlModuleIncludes_H
51 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
63 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
239 std::vector<DcmDRTBlockSequenceInRTBeamsModuleInterface::Item>
getSequence()
const {
246 return (_itemVec.size() != 0);
252 return static_cast<MLint>(_itemVec.size());
258 if (_itemVec.size() >
idx) {
259 return _itemVec[
idx];
268 return _itemVec[_itemVec.size()-1];
278 if (_itemVec.size() >
idx) {
279 std::vector<DcmDRTBlockSequenceInRTBeamsModuleInterface::Item>::iterator
it = _itemVec.begin();
280 std::advance(
it,
idx);
290 if ( _itemVec.size() >
idx ) {
291 std::vector<DcmDRTBlockSequenceInRTBeamsModuleInterface::Item>::iterator
it = _itemVec.begin();
292 std::advance(
it,
idx);
301 std::vector<DcmDRTBlockSequenceInRTBeamsModuleInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
bool setBlockMountingPosition(std::string parameter)
std::string getBlockNumberTag() const
std::string getBlockThicknessTag() const
bool setBlockData(std::string parameter)
bool getAccessoryCode(std::string ¶meter) const
bool getBlockNumber(std::string ¶meter) const
bool setBlockTransmission(std::string parameter)
Item(DCMTree::TreePtr dcmItem)
bool setBlockNumberOfPoints(std::string parameter)
std::string getBlockTransmissionTag() const
bool getBlockTrayID(std::string ¶meter) const
bool setBlockThickness(std::string parameter)
bool getBlockMountingPosition(std::string ¶meter) const
bool getBlockName(std::string ¶meter) const
bool setBlockNumber(std::string parameter)
std::string getBlockDataTag() const
bool getMaterialID(std::string ¶meter) const
std::string getBlockNumberOfPointsTag() const
bool getBlockType(std::string ¶meter) const
bool setBlockType(std::string parameter)
std::string getBlockDivergenceTag() const
std::string getBlockNameTag() const
bool setBlockTrayID(std::string parameter)
Item(const Item ©DcmItem)
Item & operator=(const Item ©DcmItem)
std::string getSourceToBlockTrayDistanceTag() const
bool setSourceToBlockTrayDistance(std::string parameter)
std::string getBlockTrayIDTag() const
bool getBlockData(std::string ¶meter) const
DCMTree::TreePtr getTreePtr() const
bool getBlockTransmission(std::string ¶meter) const
std::string getBlockTypeTag() const
bool getBlockDivergence(std::string ¶meter) const
bool getBlockThickness(std::string ¶meter) const
bool setAccessoryCode(std::string parameter)
bool setBlockName(std::string parameter)
std::string getMaterialIDTag() const
bool getBlockNumberOfPoints(std::string ¶meter) const
std::string getBlockMountingPositionTag() const
std::string getAccessoryCodeTag() const
bool getSourceToBlockTrayDistance(std::string ¶meter) const
bool setMaterialID(std::string parameter)
bool setBlockDivergence(std::string parameter)
Class to provide access to DRTBlockSequenceInRTBeamsModule.
bool setMaterialID(unsigned long idx, std::string parameter)
std::string getBlockTransmissionTag() const
bool getSourceToBlockTrayDistance(unsigned long idx, std::string ¶meter) const
bool getBlockThickness(DCMTree::TreePtr item, std::string ¶meter) const
std::vector< DcmDRTBlockSequenceInRTBeamsModuleInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
bool getBlockMountingPosition(unsigned long idx, std::string ¶meter) const
bool getSourceToBlockTrayDistance(DCMTree::TreePtr item, std::string ¶meter) const
bool getMaterialID(DCMTree::TreePtr item, std::string ¶meter) const
bool getAccessoryCode(DCMTree::TreePtr item, std::string ¶meter) const
bool getBlockMountingPosition(DCMTree::TreePtr item, std::string ¶meter) const
DcmDRTBlockSequenceInRTBeamsModuleInterface(DCMTree::TreePtrVector treePtrSeq)
bool setBlockMountingPosition(unsigned long idx, std::string parameter)
bool setBlockTrayID(unsigned long idx, std::string parameter)
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
bool getBlockType(DCMTree::TreePtr item, std::string ¶meter) const
bool getBlockName(unsigned long idx, std::string ¶meter) const
std::string getBlockMountingPositionTag() const
std::string getAccessoryCodeTag() const
bool setBlockNumberOfPoints(unsigned long idx, std::string parameter)
bool getBlockNumber(unsigned long idx, std::string ¶meter) const
std::string getMaterialIDTag() const
bool insertItem(const size_t idx)
Insert an item at the indicated position.
bool setBlockData(unsigned long idx, std::string parameter)
std::string getBlockThicknessTag() const
virtual ~DcmDRTBlockSequenceInRTBeamsModuleInterface()
Default virtual Destructor.
bool setBlockThickness(unsigned long idx, std::string parameter)
bool getBlockThickness(unsigned long idx, std::string ¶meter) const
bool getMaterialID(unsigned long idx, std::string ¶meter) const
bool hasSequence() const
Check if the DRTBlockSequenceInRTBeamsModule is set.
std::string getBlockNumberOfPointsTag() const
bool getBlockDivergence(DCMTree::TreePtr item, std::string ¶meter) const
bool setBlockType(unsigned long idx, std::string parameter)
bool setBlockTransmission(unsigned long idx, std::string parameter)
bool getBlockTrayID(unsigned long idx, std::string ¶meter) const
bool getBlockData(DCMTree::TreePtr item, std::string ¶meter) const
bool getBlockNumberOfPoints(unsigned long idx, std::string ¶meter) const
bool getBlockDivergence(unsigned long idx, std::string ¶meter) const
bool getBlockTrayID(DCMTree::TreePtr item, std::string ¶meter) const
std::string getBlockTypeTag() const
bool getBlockType(unsigned long idx, std::string ¶meter) const
bool setAccessoryCode(unsigned long idx, std::string parameter)
DcmDRTBlockSequenceInRTBeamsModuleInterface(std::vector< DcmDRTBlockSequenceInRTBeamsModuleInterface::Item > dcmSequence)
Default Constructor.
std::string getSourceToBlockTrayDistanceTag() const
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
std::vector< DcmDRTBlockSequenceInRTBeamsModuleInterface::Item > getSequence() const
Return the DRTBlockSequenceInRTBeamsModule this interface class provides access to.
DcmDRTBlockSequenceInRTBeamsModuleInterface::Item & addItem()
Adds a new item to the sequence.
std::string getBlockNameTag() const
bool getBlockTransmission(unsigned long idx, std::string ¶meter) const
bool setBlockDivergence(unsigned long idx, std::string parameter)
bool getBlockNumber(DCMTree::TreePtr item, std::string ¶meter) const
bool getBlockData(unsigned long idx, std::string ¶meter) const
bool getBlockName(DCMTree::TreePtr item, std::string ¶meter) const
bool getBlockNumberOfPoints(DCMTree::TreePtr item, std::string ¶meter) const
bool setBlockName(unsigned long idx, std::string parameter)
bool setSourceToBlockTrayDistance(unsigned long idx, std::string parameter)
std::string getBlockDataTag() const
bool getAccessoryCode(unsigned long idx, std::string ¶meter) const
void addItem(DcmDRTBlockSequenceInRTBeamsModuleInterface::Item newItem)
DcmDRTBlockSequenceInRTBeamsModuleInterface()
std::string getBlockNumberTag() const
std::string getBlockTrayIDTag() const
std::string getBlockDivergenceTag() const
bool getBlockTransmission(DCMTree::TreePtr item, std::string ¶meter) const
DcmDRTBlockSequenceInRTBeamsModuleInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
bool setBlockNumber(unsigned long idx, std::string parameter)
void setSequence(std::vector< DcmDRTBlockSequenceInRTBeamsModuleInterface::Item > dcmSequence)
Set the DRTBlockSequenceInRTBeamsModule this interface class provides access to.
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