23#ifndef __mlDcmDRTIonRangeCompensatorSequenceInterface_H
24#define __mlDcmDRTIonRangeCompensatorSequenceInterface_H
34#ifndef __mlModuleIncludes_H
51 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
63 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
272 std::vector<DcmDRTIonRangeCompensatorSequenceInterface::Item>
getSequence()
const {
279 return (_itemVec.size() != 0);
285 return static_cast<MLint>(_itemVec.size());
291 if (_itemVec.size() >
idx) {
292 return _itemVec[
idx];
301 return _itemVec[_itemVec.size()-1];
311 if (_itemVec.size() >
idx) {
312 std::vector<DcmDRTIonRangeCompensatorSequenceInterface::Item>::iterator
it = _itemVec.begin();
313 std::advance(
it,
idx);
323 if ( _itemVec.size() >
idx ) {
324 std::vector<DcmDRTIonRangeCompensatorSequenceInterface::Item>::iterator
it = _itemVec.begin();
325 std::advance(
it,
idx);
334 std::vector<DcmDRTIonRangeCompensatorSequenceInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
std::string getCompensatorRowsTag() const
std::string getCompensatorColumnOffsetTag() const
bool getCompensatorRelativeStoppingPowerRatio(float ¶meter) const
std::string getIsocenterToCompensatorDistancesTag() const
std::string getCompensatorRelativeStoppingPowerRatioTag() const
std::string getIsocenterToCompensatorTrayDistanceTag() const
std::string getCompensatorDivergenceTag() const
bool setIsocenterToCompensatorDistances(float parameter)
bool setCompensatorThicknessData(std::string parameter)
bool setCompensatorColumns(std::string parameter)
bool setCompensatorMillingToolDiameter(float parameter)
DCMTree::TreePtr getTreePtr() const
bool setIsocenterToCompensatorTrayDistance(float parameter)
bool setCompensatorMountingPosition(std::string parameter)
Item(DCMTree::TreePtr dcmItem)
bool getCompensatorRows(std::string ¶meter) const
std::string getMaterialIDTag() const
bool getCompensatorID(std::string ¶meter) const
bool getAccessoryCode(std::string ¶meter) const
bool getMaterialID(std::string ¶meter) const
bool getCompensatorMillingToolDiameter(float ¶meter) const
bool setMaterialID(std::string parameter)
bool setAccessoryCode(std::string parameter)
bool getCompensatorColumns(std::string ¶meter) const
std::string getCompensatorPositionTag() const
bool setCompensatorNumber(std::string parameter)
bool getCompensatorMountingPosition(std::string ¶meter) const
bool setCompensatorRelativeStoppingPowerRatio(float parameter)
bool setCompensatorPixelSpacing(std::string parameter)
bool getIsocenterToCompensatorDistances(float ¶meter) const
std::string getCompensatorPixelSpacingTag() const
bool getCompensatorColumnOffset(float ¶meter) const
bool getCompensatorDivergence(std::string ¶meter) const
bool setCompensatorPosition(std::string parameter)
std::string getCompensatorMillingToolDiameterTag() const
std::string getCompensatorThicknessDataTag() const
std::string getCompensatorColumnsTag() const
bool setCompensatorColumnOffset(float parameter)
std::string getCompensatorMountingPositionTag() const
bool getIsocenterToCompensatorTrayDistance(float ¶meter) const
Item(const Item ©DcmItem)
std::string getCompensatorIDTag() const
Item & operator=(const Item ©DcmItem)
std::string getCompensatorNumberTag() const
std::string getAccessoryCodeTag() const
bool setCompensatorDivergence(std::string parameter)
bool getCompensatorPosition(std::string ¶meter) const
bool getCompensatorNumber(std::string ¶meter) const
bool setCompensatorID(std::string parameter)
bool getCompensatorPixelSpacing(std::string ¶meter) const
bool setCompensatorRows(std::string parameter)
bool getCompensatorThicknessData(std::string ¶meter) const
Class to provide access to DRTIonRangeCompensatorSequence.
bool getIsocenterToCompensatorDistances(DCMTree::TreePtr item, float ¶meter) const
DcmDRTIonRangeCompensatorSequenceInterface(std::vector< DcmDRTIonRangeCompensatorSequenceInterface::Item > dcmSequence)
Default Constructor.
std::string getCompensatorMountingPositionTag() const
bool getCompensatorMillingToolDiameter(DCMTree::TreePtr item, float ¶meter) const
bool getCompensatorThicknessData(unsigned long idx, std::string ¶meter) const
void addItem(DcmDRTIonRangeCompensatorSequenceInterface::Item newItem)
bool getCompensatorColumns(unsigned long idx, std::string ¶meter) const
bool getCompensatorPosition(DCMTree::TreePtr item, std::string ¶meter) const
DcmDRTIonRangeCompensatorSequenceInterface()
std::string getCompensatorNumberTag() const
DcmDRTIonRangeCompensatorSequenceInterface::Item & addItem()
Adds a new item to the sequence.
bool getCompensatorPixelSpacing(DCMTree::TreePtr item, std::string ¶meter) const
bool getCompensatorMountingPosition(DCMTree::TreePtr item, std::string ¶meter) const
bool hasSequence() const
Check if the DRTIonRangeCompensatorSequence is set.
bool getCompensatorNumber(unsigned long idx, std::string ¶meter) const
bool setCompensatorPosition(unsigned long idx, std::string parameter)
bool setCompensatorDivergence(unsigned long idx, std::string parameter)
std::string getAccessoryCodeTag() const
bool getMaterialID(unsigned long idx, std::string ¶meter) const
std::vector< DcmDRTIonRangeCompensatorSequenceInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
bool setCompensatorID(unsigned long idx, std::string parameter)
bool insertItem(const size_t idx)
Insert an item at the indicated position.
bool getCompensatorMillingToolDiameter(unsigned long idx, float ¶meter) const
bool getCompensatorMountingPosition(unsigned long idx, std::string ¶meter) const
void setSequence(std::vector< DcmDRTIonRangeCompensatorSequenceInterface::Item > dcmSequence)
Set the DRTIonRangeCompensatorSequence this interface class provides access to.
bool getCompensatorPosition(unsigned long idx, std::string ¶meter) const
std::vector< DcmDRTIonRangeCompensatorSequenceInterface::Item > getSequence() const
Return the DRTIonRangeCompensatorSequence this interface class provides access to.
bool getMaterialID(DCMTree::TreePtr item, std::string ¶meter) const
bool getCompensatorRows(unsigned long idx, std::string ¶meter) const
std::string getCompensatorThicknessDataTag() const
std::string getCompensatorDivergenceTag() const
std::string getCompensatorPositionTag() const
bool getCompensatorID(unsigned long idx, std::string ¶meter) const
bool setCompensatorPixelSpacing(unsigned long idx, std::string parameter)
std::string getIsocenterToCompensatorTrayDistanceTag() const
bool getCompensatorDivergence(DCMTree::TreePtr item, std::string ¶meter) const
bool setCompensatorRelativeStoppingPowerRatio(unsigned long idx, float parameter)
bool setMaterialID(unsigned long idx, std::string parameter)
bool getCompensatorPixelSpacing(unsigned long idx, std::string ¶meter) const
bool getCompensatorRelativeStoppingPowerRatio(DCMTree::TreePtr item, float ¶meter) const
virtual ~DcmDRTIonRangeCompensatorSequenceInterface()
Default virtual Destructor.
bool getCompensatorColumnOffset(unsigned long idx, float ¶meter) const
bool getCompensatorColumnOffset(DCMTree::TreePtr item, float ¶meter) const
bool getCompensatorNumber(DCMTree::TreePtr item, std::string ¶meter) const
bool getIsocenterToCompensatorTrayDistance(DCMTree::TreePtr item, float ¶meter) const
bool getIsocenterToCompensatorTrayDistance(unsigned long idx, float ¶meter) const
bool getCompensatorRelativeStoppingPowerRatio(unsigned long idx, float ¶meter) const
bool setIsocenterToCompensatorDistances(unsigned long idx, float parameter)
std::string getMaterialIDTag() const
std::string getCompensatorColumnOffsetTag() const
bool setCompensatorMillingToolDiameter(unsigned long idx, float parameter)
std::string getCompensatorIDTag() const
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
bool setCompensatorMountingPosition(unsigned long idx, std::string parameter)
std::string getCompensatorPixelSpacingTag() const
bool setCompensatorRows(unsigned long idx, std::string parameter)
bool setIsocenterToCompensatorTrayDistance(unsigned long idx, float parameter)
bool getCompensatorID(DCMTree::TreePtr item, std::string ¶meter) const
std::string getCompensatorRelativeStoppingPowerRatioTag() const
std::string getCompensatorRowsTag() const
bool getAccessoryCode(unsigned long idx, std::string ¶meter) const
bool getCompensatorDivergence(unsigned long idx, std::string ¶meter) const
bool getAccessoryCode(DCMTree::TreePtr item, std::string ¶meter) const
std::string getCompensatorColumnsTag() const
bool setCompensatorNumber(unsigned long idx, std::string parameter)
DcmDRTIonRangeCompensatorSequenceInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
bool setCompensatorColumnOffset(unsigned long idx, float parameter)
bool getCompensatorRows(DCMTree::TreePtr item, std::string ¶meter) const
bool setCompensatorThicknessData(unsigned long idx, std::string parameter)
std::string getCompensatorMillingToolDiameterTag() const
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
DcmDRTIonRangeCompensatorSequenceInterface(DCMTree::TreePtrVector treePtrSeq)
bool getCompensatorThicknessData(DCMTree::TreePtr item, std::string ¶meter) const
std::string getIsocenterToCompensatorDistancesTag() const
bool getCompensatorColumns(DCMTree::TreePtr item, std::string ¶meter) const
bool setAccessoryCode(unsigned long idx, std::string parameter)
bool getIsocenterToCompensatorDistances(unsigned long idx, float ¶meter) const
bool setCompensatorColumns(unsigned long idx, std::string parameter)
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