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