23#ifndef __mlDcmDRTCompensatorSequenceInterface_H
24#define __mlDcmDRTCompensatorSequenceInterface_H
34#ifndef __mlModuleIncludes_H
51 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
63 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
261 std::vector<DcmDRTCompensatorSequenceInterface::Item>
getSequence()
const {
268 return (_itemVec.size() != 0);
274 return static_cast<MLint>(_itemVec.size());
280 if (_itemVec.size() >
idx) {
281 return _itemVec[
idx];
290 return _itemVec[_itemVec.size()-1];
300 if (_itemVec.size() >
idx) {
301 std::vector<DcmDRTCompensatorSequenceInterface::Item>::iterator
it = _itemVec.begin();
302 std::advance(
it,
idx);
312 if ( _itemVec.size() >
idx ) {
313 std::vector<DcmDRTCompensatorSequenceInterface::Item>::iterator
it = _itemVec.begin();
314 std::advance(
it,
idx);
323 std::vector<DcmDRTCompensatorSequenceInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
bool setCompensatorType(std::string parameter)
bool setAccessoryCode(std::string parameter)
std::string getCompensatorMountingPositionTag() const
Item(const Item ©DcmItem)
std::string getCompensatorPositionTag() const
bool getCompensatorPosition(std::string ¶meter) const
std::string getCompensatorTransmissionDataTag() const
bool getCompensatorPixelSpacing(std::string ¶meter) const
bool setCompensatorPixelSpacing(std::string parameter)
bool setCompensatorID(std::string parameter)
std::string getCompensatorColumnsTag() const
bool setCompensatorRows(std::string parameter)
bool getAccessoryCode(std::string ¶meter) const
std::string getCompensatorTypeTag() const
bool getCompensatorID(std::string ¶meter) const
std::string getSourceToCompensatorDistanceTag() const
bool setCompensatorTransmissionData(std::string parameter)
bool setCompensatorNumber(std::string parameter)
std::string getMaterialIDTag() const
std::string getCompensatorThicknessDataTag() const
std::string getCompensatorIDTag() const
std::string getCompensatorDivergenceTag() const
bool setCompensatorPosition(std::string parameter)
bool getCompensatorDivergence(std::string ¶meter) const
bool setCompensatorDivergence(std::string parameter)
bool getCompensatorTransmissionData(std::string ¶meter) const
bool setCompensatorColumns(std::string parameter)
bool getCompensatorType(std::string ¶meter) const
bool getCompensatorColumns(std::string ¶meter) const
DCMTree::TreePtr getTreePtr() const
bool getSourceToCompensatorTrayDistance(std::string ¶meter) const
bool getMaterialID(std::string ¶meter) const
bool setSourceToCompensatorDistance(std::string parameter)
std::string getAccessoryCodeTag() const
Item(DCMTree::TreePtr dcmItem)
std::string getSourceToCompensatorTrayDistanceTag() const
bool setCompensatorMountingPosition(std::string parameter)
std::string getCompensatorNumberTag() const
bool setSourceToCompensatorTrayDistance(std::string parameter)
Item & operator=(const Item ©DcmItem)
std::string getCompensatorRowsTag() const
std::string getCompensatorPixelSpacingTag() const
bool getCompensatorNumber(std::string ¶meter) const
bool getCompensatorThicknessData(std::string ¶meter) const
bool getCompensatorRows(std::string ¶meter) const
bool setCompensatorThicknessData(std::string parameter)
bool getSourceToCompensatorDistance(std::string ¶meter) const
bool setMaterialID(std::string parameter)
bool getCompensatorMountingPosition(std::string ¶meter) const
Class to provide access to DRTCompensatorSequence.
bool setCompensatorNumber(unsigned long idx, std::string parameter)
bool getCompensatorType(unsigned long idx, std::string ¶meter) const
bool getCompensatorPixelSpacing(DCMTree::TreePtr item, std::string ¶meter) const
DcmDRTCompensatorSequenceInterface(DCMTree::TreePtrVector treePtrSeq)
bool insertItem(const size_t idx)
Insert an item at the indicated position.
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
bool getMaterialID(DCMTree::TreePtr item, std::string ¶meter) const
bool getCompensatorPosition(DCMTree::TreePtr item, std::string ¶meter) const
virtual ~DcmDRTCompensatorSequenceInterface()
Default virtual Destructor.
bool getCompensatorRows(unsigned long idx, std::string ¶meter) const
bool getCompensatorDivergence(unsigned long idx, std::string ¶meter) const
bool setCompensatorMountingPosition(unsigned long idx, std::string parameter)
bool getAccessoryCode(unsigned long idx, std::string ¶meter) const
bool hasSequence() const
Check if the DRTCompensatorSequence is set.
bool getCompensatorThicknessData(unsigned long idx, std::string ¶meter) const
bool getCompensatorMountingPosition(unsigned long idx, std::string ¶meter) const
std::string getCompensatorTypeTag() const
void setSequence(std::vector< DcmDRTCompensatorSequenceInterface::Item > dcmSequence)
Set the DRTCompensatorSequence this interface class provides access to.
bool setCompensatorID(unsigned long idx, std::string parameter)
bool getCompensatorPosition(unsigned long idx, std::string ¶meter) const
bool setCompensatorPixelSpacing(unsigned long idx, std::string parameter)
bool setCompensatorRows(unsigned long idx, std::string parameter)
DcmDRTCompensatorSequenceInterface::Item & addItem()
Adds a new item to the sequence.
bool getSourceToCompensatorDistance(DCMTree::TreePtr item, std::string ¶meter) const
DcmDRTCompensatorSequenceInterface()
bool setSourceToCompensatorDistance(unsigned long idx, std::string parameter)
std::string getCompensatorDivergenceTag() const
bool getCompensatorRows(DCMTree::TreePtr item, std::string ¶meter) const
bool getSourceToCompensatorTrayDistance(DCMTree::TreePtr item, std::string ¶meter) const
bool getAccessoryCode(DCMTree::TreePtr item, std::string ¶meter) const
std::string getCompensatorPositionTag() const
bool getMaterialID(unsigned long idx, std::string ¶meter) const
std::vector< DcmDRTCompensatorSequenceInterface::Item > getSequence() const
Return the DRTCompensatorSequence this interface class provides access to.
bool setMaterialID(unsigned long idx, std::string parameter)
bool setAccessoryCode(unsigned long idx, std::string parameter)
bool setSourceToCompensatorTrayDistance(unsigned long idx, std::string parameter)
bool getCompensatorNumber(DCMTree::TreePtr item, std::string ¶meter) const
bool getCompensatorPixelSpacing(unsigned long idx, std::string ¶meter) const
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
bool getCompensatorID(DCMTree::TreePtr item, std::string ¶meter) const
std::string getAccessoryCodeTag() const
std::string getCompensatorMountingPositionTag() const
std::string getCompensatorRowsTag() const
void addItem(DcmDRTCompensatorSequenceInterface::Item newItem)
bool getCompensatorType(DCMTree::TreePtr item, std::string ¶meter) const
bool setCompensatorTransmissionData(unsigned long idx, std::string parameter)
std::string getCompensatorPixelSpacingTag() const
std::vector< DcmDRTCompensatorSequenceInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
DcmDRTCompensatorSequenceInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
bool getCompensatorTransmissionData(DCMTree::TreePtr item, std::string ¶meter) const
bool getSourceToCompensatorTrayDistance(unsigned long idx, std::string ¶meter) const
std::string getCompensatorThicknessDataTag() const
bool setCompensatorPosition(unsigned long idx, std::string parameter)
std::string getCompensatorNumberTag() const
bool getCompensatorID(unsigned long idx, std::string ¶meter) const
bool setCompensatorType(unsigned long idx, std::string parameter)
bool getCompensatorTransmissionData(unsigned long idx, std::string ¶meter) const
std::string getCompensatorTransmissionDataTag() const
bool getCompensatorMountingPosition(DCMTree::TreePtr item, std::string ¶meter) const
bool setCompensatorColumns(unsigned long idx, std::string parameter)
bool getSourceToCompensatorDistance(unsigned long idx, std::string ¶meter) const
std::string getCompensatorIDTag() const
bool getCompensatorColumns(unsigned long idx, std::string ¶meter) const
std::string getSourceToCompensatorDistanceTag() const
bool getCompensatorThicknessData(DCMTree::TreePtr item, std::string ¶meter) const
bool getCompensatorDivergence(DCMTree::TreePtr item, std::string ¶meter) const
bool getCompensatorColumns(DCMTree::TreePtr item, std::string ¶meter) const
std::string getSourceToCompensatorTrayDistanceTag() const
DcmDRTCompensatorSequenceInterface(std::vector< DcmDRTCompensatorSequenceInterface::Item > dcmSequence)
Default Constructor.
std::string getMaterialIDTag() const
std::string getCompensatorColumnsTag() const
bool setCompensatorDivergence(unsigned long idx, std::string parameter)
bool setCompensatorThicknessData(unsigned long idx, std::string parameter)
bool getCompensatorNumber(unsigned long idx, 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