23#ifndef __mlDcmDRTExposureSequenceInterface_H
24#define __mlDcmDRTExposureSequenceInterface_H
37#ifndef __mlModuleIncludes_H
54 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
66 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
90 bool getKVP(std::string& parameter)
const;
91 std::string
getKVPTag()
const {
return "(0018,0060)"; }
175 bool getKVP(
unsigned long idx, std::string& parameter)
const;
228 std::vector<DcmDRTExposureSequenceInterface::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<DcmDRTExposureSequenceInterface::Item>::iterator
it = _itemVec.begin();
269 std::advance(
it,
idx);
279 if ( _itemVec.size() >
idx ) {
280 std::vector<DcmDRTExposureSequenceInterface::Item>::iterator
it = _itemVec.begin();
281 std::advance(
it,
idx);
290 std::vector<DcmDRTExposureSequenceInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
Class to provide access to DRTApplicatorSequenceInRTImageModule.
Class to provide access to DRTBeamLimitingDeviceSequenceInRTImageModule.
Class to provide access to DRTBlockSequenceInRTImageModule.
bool getFluenceDataSource(std::string ¶meter) const
void setBlockSequence(DcmDRTBlockSequenceInRTImageModuleInterface seq)
bool getNumberOfBlocks(std::string ¶meter) const
std::string getDiaphragmPositionTag() const
bool getReferencedFrameNumber(std::string ¶meter) const
std::string getNumberOfBlocksTag() const
bool getMetersetExposure(std::string ¶meter) const
std::string getFluenceDataSourceTag() const
bool getDiaphragmPosition(std::string ¶meter) const
Item(const Item ©DcmItem)
bool setMetersetExposure(std::string parameter)
bool getXRayTubeCurrent(std::string ¶meter) const
std::string getFluenceDataScaleTag() const
bool setKVP(std::string parameter)
void setApplicatorSequence(DcmDRTApplicatorSequenceInRTImageModuleInterface seq)
std::string getReferencedFrameNumberTag() const
std::string getMetersetExposureTag() const
bool getKVP(std::string ¶meter) const
std::string getKVPTag() const
bool setDiaphragmPosition(std::string parameter)
std::string getXRayTubeCurrentTag() const
std::string getBlockSequenceTag() const
DcmDRTApplicatorSequenceInRTImageModuleInterface getApplicatorSequence() const
bool setNumberOfBlocks(std::string parameter)
Item & operator=(const Item ©DcmItem)
std::string getApplicatorSequenceTag() const
bool setFluenceDataScale(std::string parameter)
bool setReferencedFrameNumber(std::string parameter)
void setBeamLimitingDeviceSequence(DcmDRTBeamLimitingDeviceSequenceInRTImageModuleInterface seq)
Item(DCMTree::TreePtr dcmItem)
DcmDRTBlockSequenceInRTImageModuleInterface getBlockSequence() const
bool setFluenceDataSource(std::string parameter)
DCMTree::TreePtr getTreePtr() const
DcmDRTBeamLimitingDeviceSequenceInRTImageModuleInterface getBeamLimitingDeviceSequence() const
std::string getExposureTimeTag() const
bool setXRayTubeCurrent(std::string parameter)
bool setExposureTime(std::string parameter)
bool getFluenceDataScale(std::string ¶meter) const
bool getExposureTime(std::string ¶meter) const
std::string getBeamLimitingDeviceSequenceTag() const
Class to provide access to DRTExposureSequence.
std::string getReferencedFrameNumberTag() const
bool getDiaphragmPosition(DCMTree::TreePtr item, std::string ¶meter) const
bool getXRayTubeCurrent(unsigned long idx, std::string ¶meter) const
std::string getDiaphragmPositionTag() const
bool setXRayTubeCurrent(unsigned long idx, std::string parameter)
std::vector< DcmDRTExposureSequenceInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
std::string getNumberOfBlocksTag() const
bool setMetersetExposure(unsigned long idx, std::string parameter)
std::vector< DcmDRTExposureSequenceInterface::Item > getSequence() const
Return the DRTExposureSequence this interface class provides access to.
std::string getExposureTimeTag() const
bool getFluenceDataSource(unsigned long idx, std::string ¶meter) const
DcmDRTExposureSequenceInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
bool getXRayTubeCurrent(DCMTree::TreePtr item, std::string ¶meter) const
DcmDRTExposureSequenceInterface(std::vector< DcmDRTExposureSequenceInterface::Item > dcmSequence)
Default Constructor.
bool getDiaphragmPosition(unsigned long idx, std::string ¶meter) const
bool getKVP(DCMTree::TreePtr item, std::string ¶meter) const
DcmDRTExposureSequenceInterface()
bool getFluenceDataScale(DCMTree::TreePtr item, std::string ¶meter) const
bool getKVP(unsigned long idx, std::string ¶meter) const
DcmDRTApplicatorSequenceInRTImageModuleInterface getApplicatorSequence(unsigned long idx) const
bool setDiaphragmPosition(unsigned long idx, std::string parameter)
std::string getFluenceDataScaleTag() const
DcmDRTBeamLimitingDeviceSequenceInRTImageModuleInterface getBeamLimitingDeviceSequence(unsigned long idx) const
std::string getKVPTag() const
std::string getBeamLimitingDeviceSequenceTag() const
void addItem(DcmDRTExposureSequenceInterface::Item newItem)
std::string getXRayTubeCurrentTag() const
std::string getMetersetExposureTag() const
virtual ~DcmDRTExposureSequenceInterface()
Default virtual Destructor.
bool setExposureTime(unsigned long idx, std::string parameter)
bool setNumberOfBlocks(unsigned long idx, std::string parameter)
DcmDRTExposureSequenceInterface(DCMTree::TreePtrVector treePtrSeq)
bool getReferencedFrameNumber(DCMTree::TreePtr item, std::string ¶meter) const
bool setFluenceDataScale(unsigned long idx, std::string parameter)
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
bool getReferencedFrameNumber(unsigned long idx, std::string ¶meter) const
void setBeamLimitingDeviceSequence(DcmDRTBeamLimitingDeviceSequenceInRTImageModuleInterface seq, unsigned long idx)
DcmDRTExposureSequenceInterface::Item & addItem()
Adds a new item to the sequence.
void setSequence(std::vector< DcmDRTExposureSequenceInterface::Item > dcmSequence)
Set the DRTExposureSequence this interface class provides access to.
bool getNumberOfBlocks(unsigned long idx, std::string ¶meter) const
DcmDRTBlockSequenceInRTImageModuleInterface getBlockSequence(unsigned long idx) const
bool setFluenceDataSource(unsigned long idx, std::string parameter)
bool getExposureTime(unsigned long idx, std::string ¶meter) const
bool insertItem(const size_t idx)
Insert an item at the indicated position.
void setApplicatorSequence(DcmDRTApplicatorSequenceInRTImageModuleInterface seq, unsigned long idx)
std::string getBlockSequenceTag() const
bool getMetersetExposure(DCMTree::TreePtr item, std::string ¶meter) const
bool setReferencedFrameNumber(unsigned long idx, std::string parameter)
bool getMetersetExposure(unsigned long idx, std::string ¶meter) const
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
bool getNumberOfBlocks(DCMTree::TreePtr item, std::string ¶meter) const
bool hasSequence() const
Check if the DRTExposureSequence is set.
std::string getApplicatorSequenceTag() const
bool getFluenceDataSource(DCMTree::TreePtr item, std::string ¶meter) const
bool getFluenceDataScale(unsigned long idx, std::string ¶meter) const
bool setKVP(unsigned long idx, std::string parameter)
std::string getFluenceDataSourceTag() const
void setBlockSequence(DcmDRTBlockSequenceInRTImageModuleInterface seq, unsigned long idx)
bool getExposureTime(DCMTree::TreePtr item, std::string ¶meter) const
Class to provide access to DRTApplicatorSequenceInRTImageModule.
Class to provide access to DRTBeamLimitingDeviceSequenceInRTImageModule.
Class to provide access to DRTBlockSequenceInRTImageModule.
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