23#ifndef __mlDcmDRTPatientSetupSequenceInterface_H
24#define __mlDcmDRTPatientSetupSequenceInterface_H
39#ifndef __mlModuleIncludes_H
56 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
68 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
250 std::vector<DcmDRTPatientSetupSequenceInterface::Item>
getSequence()
const {
257 return (_itemVec.size() != 0);
263 return static_cast<MLint>(_itemVec.size());
269 if (_itemVec.size() >
idx) {
270 return _itemVec[
idx];
279 return _itemVec[_itemVec.size()-1];
289 if (_itemVec.size() >
idx) {
290 std::vector<DcmDRTPatientSetupSequenceInterface::Item>::iterator
it = _itemVec.begin();
291 std::advance(
it,
idx);
301 if ( _itemVec.size() >
idx ) {
302 std::vector<DcmDRTPatientSetupSequenceInterface::Item>::iterator
it = _itemVec.begin();
303 std::advance(
it,
idx);
312 std::vector<DcmDRTPatientSetupSequenceInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
Class to provide access to DRTFixationDeviceSequence.
Class to provide access to DRTMotionSynchronizationSequence.
std::string getTableTopLateralSetupDisplacementTag() const
std::string getPatientSetupNumberTag() const
bool getPatientPosition(std::string ¶meter) const
bool getPatientAdditionalPosition(std::string ¶meter) const
bool getSetupTechnique(std::string ¶meter) const
std::string getTableTopVerticalSetupDisplacementTag() const
bool setPatientSetupLabel(std::string parameter)
bool getPatientSetupLabel(std::string ¶meter) const
std::string getPatientSetupLabelTag() const
void setSetupDeviceSequence(DcmDRTSetupDeviceSequenceInterface seq)
std::string getFixationDeviceSequenceTag() const
std::string getPatientAdditionalPositionTag() const
bool setPatientAdditionalPosition(std::string parameter)
bool getTableTopLongitudinalSetupDisplacement(std::string ¶meter) const
bool setSetupTechnique(std::string parameter)
std::string getSetupTechniqueDescriptionTag() const
DcmDRTSetupDeviceSequenceInterface getSetupDeviceSequence() const
void setFixationDeviceSequence(DcmDRTFixationDeviceSequenceInterface seq)
bool setPatientPosition(std::string parameter)
Item(DCMTree::TreePtr dcmItem)
std::string getSetupTechniqueTag() const
void setShieldingDeviceSequence(DcmDRTShieldingDeviceSequenceInterface seq)
bool getPatientSetupNumber(std::string ¶meter) const
DcmDRTMotionSynchronizationSequenceInterface getMotionSynchronizationSequence() const
std::string getSetupDeviceSequenceTag() const
void setReferencedSetupImageSequence(DcmDRTReferencedSetupImageSequenceInterface seq)
bool getSetupTechniqueDescription(std::string ¶meter) const
DCMTree::TreePtr getTreePtr() const
std::string getPatientPositionTag() const
DcmDRTReferencedSetupImageSequenceInterface getReferencedSetupImageSequence() const
std::string getTableTopLongitudinalSetupDisplacementTag() const
bool setTableTopLateralSetupDisplacement(std::string parameter)
bool setSetupTechniqueDescription(std::string parameter)
std::string getMotionSynchronizationSequenceTag() const
DcmDRTShieldingDeviceSequenceInterface getShieldingDeviceSequence() const
bool setTableTopLongitudinalSetupDisplacement(std::string parameter)
bool setPatientSetupNumber(std::string parameter)
bool getTableTopVerticalSetupDisplacement(std::string ¶meter) const
bool setTableTopVerticalSetupDisplacement(std::string parameter)
Item(const Item ©DcmItem)
Item & operator=(const Item ©DcmItem)
bool getTableTopLateralSetupDisplacement(std::string ¶meter) const
std::string getReferencedSetupImageSequenceTag() const
DcmDRTFixationDeviceSequenceInterface getFixationDeviceSequence() const
std::string getShieldingDeviceSequenceTag() const
void setMotionSynchronizationSequence(DcmDRTMotionSynchronizationSequenceInterface seq)
Class to provide access to DRTPatientSetupSequence.
bool getSetupTechniqueDescription(DCMTree::TreePtr item, std::string ¶meter) const
void addItem(DcmDRTPatientSetupSequenceInterface::Item newItem)
std::vector< DcmDRTPatientSetupSequenceInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
DcmDRTFixationDeviceSequenceInterface getFixationDeviceSequence(unsigned long idx) const
bool getPatientAdditionalPosition(DCMTree::TreePtr item, std::string ¶meter) const
virtual ~DcmDRTPatientSetupSequenceInterface()
Default virtual Destructor.
bool hasSequence() const
Check if the DRTPatientSetupSequence is set.
DcmDRTPatientSetupSequenceInterface(std::vector< DcmDRTPatientSetupSequenceInterface::Item > dcmSequence)
Default Constructor.
void setSetupDeviceSequence(DcmDRTSetupDeviceSequenceInterface seq, unsigned long idx)
DcmDRTReferencedSetupImageSequenceInterface getReferencedSetupImageSequence(unsigned long idx) const
std::string getTableTopLateralSetupDisplacementTag() const
DcmDRTPatientSetupSequenceInterface::Item & addItem()
Adds a new item to the sequence.
bool getPatientPosition(DCMTree::TreePtr item, std::string ¶meter) const
bool getPatientSetupNumber(DCMTree::TreePtr item, std::string ¶meter) const
bool getTableTopLongitudinalSetupDisplacement(DCMTree::TreePtr item, std::string ¶meter) const
bool setPatientSetupNumber(unsigned long idx, std::string parameter)
void setFixationDeviceSequence(DcmDRTFixationDeviceSequenceInterface seq, unsigned long idx)
std::string getTableTopVerticalSetupDisplacementTag() const
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
bool setTableTopLongitudinalSetupDisplacement(unsigned long idx, std::string parameter)
std::string getReferencedSetupImageSequenceTag() const
bool setSetupTechniqueDescription(unsigned long idx, std::string parameter)
void setSequence(std::vector< DcmDRTPatientSetupSequenceInterface::Item > dcmSequence)
Set the DRTPatientSetupSequence this interface class provides access to.
std::string getShieldingDeviceSequenceTag() const
bool setPatientPosition(unsigned long idx, std::string parameter)
bool getPatientSetupLabel(unsigned long idx, std::string ¶meter) const
DcmDRTPatientSetupSequenceInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
std::string getSetupTechniqueTag() const
bool setSetupTechnique(unsigned long idx, std::string parameter)
DcmDRTPatientSetupSequenceInterface()
bool getTableTopLateralSetupDisplacement(unsigned long idx, std::string ¶meter) const
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
std::string getTableTopLongitudinalSetupDisplacementTag() const
bool getPatientSetupNumber(unsigned long idx, std::string ¶meter) const
void setMotionSynchronizationSequence(DcmDRTMotionSynchronizationSequenceInterface seq, unsigned long idx)
std::string getMotionSynchronizationSequenceTag() const
std::string getPatientSetupLabelTag() const
std::string getPatientAdditionalPositionTag() const
bool getTableTopVerticalSetupDisplacement(DCMTree::TreePtr item, std::string ¶meter) const
void setShieldingDeviceSequence(DcmDRTShieldingDeviceSequenceInterface seq, unsigned long idx)
bool setPatientSetupLabel(unsigned long idx, std::string parameter)
void setReferencedSetupImageSequence(DcmDRTReferencedSetupImageSequenceInterface seq, unsigned long idx)
DcmDRTShieldingDeviceSequenceInterface getShieldingDeviceSequence(unsigned long idx) const
std::string getPatientSetupNumberTag() const
std::string getSetupTechniqueDescriptionTag() const
std::string getSetupDeviceSequenceTag() const
std::string getFixationDeviceSequenceTag() const
bool getPatientAdditionalPosition(unsigned long idx, std::string ¶meter) const
DcmDRTPatientSetupSequenceInterface(DCMTree::TreePtrVector treePtrSeq)
bool getTableTopVerticalSetupDisplacement(unsigned long idx, std::string ¶meter) const
bool getSetupTechnique(DCMTree::TreePtr item, std::string ¶meter) const
DcmDRTSetupDeviceSequenceInterface getSetupDeviceSequence(unsigned long idx) const
bool getPatientPosition(unsigned long idx, std::string ¶meter) const
std::string getPatientPositionTag() const
bool getSetupTechniqueDescription(unsigned long idx, std::string ¶meter) const
DcmDRTMotionSynchronizationSequenceInterface getMotionSynchronizationSequence(unsigned long idx) const
bool insertItem(const size_t idx)
Insert an item at the indicated position.
bool getTableTopLongitudinalSetupDisplacement(unsigned long idx, std::string ¶meter) const
bool setTableTopVerticalSetupDisplacement(unsigned long idx, std::string parameter)
bool setTableTopLateralSetupDisplacement(unsigned long idx, std::string parameter)
bool getSetupTechnique(unsigned long idx, std::string ¶meter) const
bool setPatientAdditionalPosition(unsigned long idx, std::string parameter)
std::vector< DcmDRTPatientSetupSequenceInterface::Item > getSequence() const
Return the DRTPatientSetupSequence this interface class provides access to.
bool getTableTopLateralSetupDisplacement(DCMTree::TreePtr item, std::string ¶meter) const
bool getPatientSetupLabel(DCMTree::TreePtr item, std::string ¶meter) const
Class to provide access to DRTReferencedSetupImageSequence.
Class to provide access to DRTSetupDeviceSequence.
Class to provide access to DRTShieldingDeviceSequence.
Class to provide access to DRTFixationDeviceSequence.
Class to provide access to DRTMotionSynchronizationSequence.
Class to provide access to DRTReferencedSetupImageSequence.
Class to provide access to DRTSetupDeviceSequence.
Class to provide access to DRTShieldingDeviceSequence.
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