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