23#ifndef __mlDcmDRTPlannedVerificationImageSequenceInterface_H
24#define __mlDcmDRTPlannedVerificationImageSequenceInterface_H
34#ifndef __mlModuleIncludes_H
51 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
63 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
206 std::vector<DcmDRTPlannedVerificationImageSequenceInterface::Item>
getSequence()
const {
213 return (_itemVec.size() != 0);
219 return static_cast<MLint>(_itemVec.size());
225 if (_itemVec.size() >
idx) {
226 return _itemVec[
idx];
235 return _itemVec[_itemVec.size()-1];
245 if (_itemVec.size() >
idx) {
246 std::vector<DcmDRTPlannedVerificationImageSequenceInterface::Item>::iterator
it = _itemVec.begin();
247 std::advance(
it,
idx);
257 if ( _itemVec.size() >
idx ) {
258 std::vector<DcmDRTPlannedVerificationImageSequenceInterface::Item>::iterator
it = _itemVec.begin();
259 std::advance(
it,
idx);
268 std::vector<DcmDRTPlannedVerificationImageSequenceInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
std::string getRTImageOrientationTag() const
bool setStartCumulativeMetersetWeight(std::string parameter)
std::string getRTImagePlaneTag() const
Item & operator=(const Item ©DcmItem)
bool getStartCumulativeMetersetWeight(std::string ¶meter) const
bool getEndCumulativeMetersetWeight(std::string ¶meter) const
bool getRTImageOrientation(std::string ¶meter) const
bool setReferencedReferenceImageNumber(std::string parameter)
bool getMetersetExposure(std::string ¶meter) const
bool getReferencedReferenceImageNumber(std::string ¶meter) const
bool getImagingDeviceSpecificAcquisitionParameters(std::string ¶meter) const
bool setXRayImageReceptorAngle(std::string parameter)
std::string getXRayImageReceptorAngleTag() const
DCMTree::TreePtr getTreePtr() const
std::string getRTImagePositionTag() const
bool setRTImagePosition(std::string parameter)
bool setImagingDeviceSpecificAcquisitionParameters(std::string parameter)
bool getXRayImageReceptorAngle(std::string ¶meter) const
std::string getRTImageSIDTag() const
std::string getImagingDeviceSpecificAcquisitionParametersTag() const
std::string getReferencedReferenceImageNumberTag() const
bool setRTImagePlane(std::string parameter)
std::string getMetersetExposureTag() const
Item(const Item ©DcmItem)
bool getRTImageSID(std::string ¶meter) const
bool setMetersetExposure(std::string parameter)
Item(DCMTree::TreePtr dcmItem)
bool setRTImageSID(std::string parameter)
bool getRTImagePosition(std::string ¶meter) const
bool setEndCumulativeMetersetWeight(std::string parameter)
bool getRTImagePlane(std::string ¶meter) const
std::string getEndCumulativeMetersetWeightTag() const
bool setRTImageOrientation(std::string parameter)
std::string getStartCumulativeMetersetWeightTag() const
Class to provide access to DRTPlannedVerificationImageSequence.
bool setRTImagePosition(unsigned long idx, std::string parameter)
bool getReferencedReferenceImageNumber(DCMTree::TreePtr item, std::string ¶meter) const
bool insertItem(const size_t idx)
Insert an item at the indicated position.
std::string getReferencedReferenceImageNumberTag() const
DcmDRTPlannedVerificationImageSequenceInterface(DCMTree::TreePtrVector treePtrSeq)
bool getImagingDeviceSpecificAcquisitionParameters(DCMTree::TreePtr item, std::string ¶meter) const
bool getEndCumulativeMetersetWeight(unsigned long idx, std::string ¶meter) const
bool getRTImagePlane(unsigned long idx, std::string ¶meter) const
virtual ~DcmDRTPlannedVerificationImageSequenceInterface()
Default virtual Destructor.
bool getStartCumulativeMetersetWeight(DCMTree::TreePtr item, std::string ¶meter) const
bool getMetersetExposure(DCMTree::TreePtr item, std::string ¶meter) const
bool getRTImageSID(unsigned long idx, std::string ¶meter) const
bool getRTImageOrientation(DCMTree::TreePtr item, std::string ¶meter) const
bool getRTImagePosition(unsigned long idx, std::string ¶meter) const
std::string getMetersetExposureTag() const
std::string getImagingDeviceSpecificAcquisitionParametersTag() const
bool getMetersetExposure(unsigned long idx, std::string ¶meter) const
bool setRTImageOrientation(unsigned long idx, std::string parameter)
bool getStartCumulativeMetersetWeight(unsigned long idx, std::string ¶meter) const
bool setRTImageSID(unsigned long idx, std::string parameter)
std::string getStartCumulativeMetersetWeightTag() const
std::string getEndCumulativeMetersetWeightTag() const
std::string getRTImageOrientationTag() const
bool setReferencedReferenceImageNumber(unsigned long idx, std::string parameter)
bool getImagingDeviceSpecificAcquisitionParameters(unsigned long idx, std::string ¶meter) const
DcmDRTPlannedVerificationImageSequenceInterface()
DcmDRTPlannedVerificationImageSequenceInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
std::string getRTImagePlaneTag() const
bool getRTImagePlane(DCMTree::TreePtr item, std::string ¶meter) const
bool setImagingDeviceSpecificAcquisitionParameters(unsigned long idx, std::string parameter)
void setSequence(std::vector< DcmDRTPlannedVerificationImageSequenceInterface::Item > dcmSequence)
Set the DRTPlannedVerificationImageSequence this interface class provides access to.
bool getEndCumulativeMetersetWeight(DCMTree::TreePtr item, std::string ¶meter) const
bool setStartCumulativeMetersetWeight(unsigned long idx, std::string parameter)
bool setMetersetExposure(unsigned long idx, std::string parameter)
std::string getRTImagePositionTag() const
std::vector< DcmDRTPlannedVerificationImageSequenceInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
bool hasSequence() const
Check if the DRTPlannedVerificationImageSequence is set.
DcmDRTPlannedVerificationImageSequenceInterface(std::vector< DcmDRTPlannedVerificationImageSequenceInterface::Item > dcmSequence)
Default Constructor.
std::string getRTImageSIDTag() const
bool setEndCumulativeMetersetWeight(unsigned long idx, std::string parameter)
std::vector< DcmDRTPlannedVerificationImageSequenceInterface::Item > getSequence() const
Return the DRTPlannedVerificationImageSequence this interface class provides access to.
void addItem(DcmDRTPlannedVerificationImageSequenceInterface::Item newItem)
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
bool getXRayImageReceptorAngle(unsigned long idx, std::string ¶meter) const
bool setRTImagePlane(unsigned long idx, std::string parameter)
bool getRTImagePosition(DCMTree::TreePtr item, std::string ¶meter) const
bool getReferencedReferenceImageNumber(unsigned long idx, std::string ¶meter) const
std::string getXRayImageReceptorAngleTag() const
bool getRTImageOrientation(unsigned long idx, std::string ¶meter) const
bool setXRayImageReceptorAngle(unsigned long idx, std::string parameter)
bool getXRayImageReceptorAngle(DCMTree::TreePtr item, std::string ¶meter) const
bool getRTImageSID(DCMTree::TreePtr item, std::string ¶meter) const
DcmDRTPlannedVerificationImageSequenceInterface::Item & addItem()
Adds a new item to the sequence.
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
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