23#ifndef __mlDcmDRTToleranceTableSequenceInterface_H
24#define __mlDcmDRTToleranceTableSequenceInterface_H
35#ifndef __mlModuleIncludes_H
52 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
64 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
217 std::vector<DcmDRTToleranceTableSequenceInterface::Item>
getSequence()
const {
224 return (_itemVec.size() != 0);
230 return static_cast<MLint>(_itemVec.size());
236 if (_itemVec.size() >
idx) {
237 return _itemVec[
idx];
246 return _itemVec[_itemVec.size()-1];
256 if (_itemVec.size() >
idx) {
257 std::vector<DcmDRTToleranceTableSequenceInterface::Item>::iterator
it = _itemVec.begin();
258 std::advance(
it,
idx);
268 if ( _itemVec.size() >
idx ) {
269 std::vector<DcmDRTToleranceTableSequenceInterface::Item>::iterator
it = _itemVec.begin();
270 std::advance(
it,
idx);
279 std::vector<DcmDRTToleranceTableSequenceInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
Class to provide access to DRTBeamLimitingDeviceToleranceSequence.
std::string getTableTopLateralPositionToleranceTag() const
bool setToleranceTableNumber(std::string parameter)
DcmDRTBeamLimitingDeviceToleranceSequenceInterface getBeamLimitingDeviceToleranceSequence() const
bool setToleranceTableLabel(std::string parameter)
std::string getTableTopEccentricAngleToleranceTag() const
bool setTableTopVerticalPositionTolerance(std::string parameter)
std::string getTableTopLongitudinalPositionToleranceTag() const
void setBeamLimitingDeviceToleranceSequence(DcmDRTBeamLimitingDeviceToleranceSequenceInterface seq)
bool getToleranceTableLabel(std::string ¶meter) const
std::string getGantryPitchAngleToleranceTag() const
bool getGantryPitchAngleTolerance(float ¶meter) const
std::string getToleranceTableLabelTag() const
bool getTableTopEccentricAngleTolerance(std::string ¶meter) const
std::string getPatientSupportAngleToleranceTag() const
bool setPatientSupportAngleTolerance(std::string parameter)
std::string getTableTopVerticalPositionToleranceTag() const
Item(DCMTree::TreePtr dcmItem)
std::string getGantryAngleToleranceTag() const
bool setTableTopLongitudinalPositionTolerance(std::string parameter)
DCMTree::TreePtr getTreePtr() const
Item(const Item ©DcmItem)
std::string getBeamLimitingDeviceToleranceSequenceTag() const
bool getTableTopLongitudinalPositionTolerance(std::string ¶meter) const
bool getGantryAngleTolerance(std::string ¶meter) const
bool getTableTopLateralPositionTolerance(std::string ¶meter) const
std::string getToleranceTableNumberTag() const
bool setGantryAngleTolerance(std::string parameter)
bool setTableTopEccentricAngleTolerance(std::string parameter)
bool getToleranceTableNumber(std::string ¶meter) const
bool getBeamLimitingDeviceAngleTolerance(std::string ¶meter) const
bool setGantryPitchAngleTolerance(float parameter)
Item & operator=(const Item ©DcmItem)
bool getPatientSupportAngleTolerance(std::string ¶meter) const
bool setTableTopLateralPositionTolerance(std::string parameter)
bool getTableTopVerticalPositionTolerance(std::string ¶meter) const
std::string getBeamLimitingDeviceAngleToleranceTag() const
bool setBeamLimitingDeviceAngleTolerance(std::string parameter)
Class to provide access to DRTToleranceTableSequence.
std::string getBeamLimitingDeviceToleranceSequenceTag() const
std::string getTableTopLongitudinalPositionToleranceTag() const
bool setBeamLimitingDeviceAngleTolerance(unsigned long idx, std::string parameter)
bool getTableTopVerticalPositionTolerance(unsigned long idx, std::string ¶meter) const
DcmDRTToleranceTableSequenceInterface()
DcmDRTToleranceTableSequenceInterface(DCMTree::TreePtrVector treePtrSeq)
DcmDRTToleranceTableSequenceInterface::Item & addItem()
Adds a new item to the sequence.
bool getToleranceTableLabel(DCMTree::TreePtr item, std::string ¶meter) const
DcmDRTToleranceTableSequenceInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
std::string getToleranceTableNumberTag() const
void setSequence(std::vector< DcmDRTToleranceTableSequenceInterface::Item > dcmSequence)
Set the DRTToleranceTableSequence this interface class provides access to.
std::string getGantryAngleToleranceTag() const
bool getTableTopVerticalPositionTolerance(DCMTree::TreePtr item, std::string ¶meter) const
bool getPatientSupportAngleTolerance(DCMTree::TreePtr item, std::string ¶meter) const
bool getGantryPitchAngleTolerance(unsigned long idx, float ¶meter) const
bool getBeamLimitingDeviceAngleTolerance(DCMTree::TreePtr item, std::string ¶meter) const
bool getGantryAngleTolerance(unsigned long idx, std::string ¶meter) const
std::string getTableTopLateralPositionToleranceTag() const
bool setGantryAngleTolerance(unsigned long idx, std::string parameter)
bool getToleranceTableLabel(unsigned long idx, std::string ¶meter) const
bool setTableTopLateralPositionTolerance(unsigned long idx, std::string parameter)
bool getBeamLimitingDeviceAngleTolerance(unsigned long idx, std::string ¶meter) const
std::vector< DcmDRTToleranceTableSequenceInterface::Item > getSequence() const
Return the DRTToleranceTableSequence this interface class provides access to.
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
bool getToleranceTableNumber(DCMTree::TreePtr item, std::string ¶meter) const
virtual ~DcmDRTToleranceTableSequenceInterface()
Default virtual Destructor.
bool getTableTopLateralPositionTolerance(unsigned long idx, std::string ¶meter) const
bool hasSequence() const
Check if the DRTToleranceTableSequence is set.
std::string getGantryPitchAngleToleranceTag() const
void addItem(DcmDRTToleranceTableSequenceInterface::Item newItem)
bool getTableTopLongitudinalPositionTolerance(DCMTree::TreePtr item, std::string ¶meter) const
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
DcmDRTToleranceTableSequenceInterface(std::vector< DcmDRTToleranceTableSequenceInterface::Item > dcmSequence)
Default Constructor.
bool getTableTopEccentricAngleTolerance(DCMTree::TreePtr item, std::string ¶meter) const
bool setGantryPitchAngleTolerance(unsigned long idx, float parameter)
bool setToleranceTableNumber(unsigned long idx, std::string parameter)
bool setPatientSupportAngleTolerance(unsigned long idx, std::string parameter)
std::string getTableTopVerticalPositionToleranceTag() const
std::vector< DcmDRTToleranceTableSequenceInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
bool getTableTopEccentricAngleTolerance(unsigned long idx, std::string ¶meter) const
bool setTableTopLongitudinalPositionTolerance(unsigned long idx, std::string parameter)
void setBeamLimitingDeviceToleranceSequence(DcmDRTBeamLimitingDeviceToleranceSequenceInterface seq, unsigned long idx)
bool getGantryPitchAngleTolerance(DCMTree::TreePtr item, float ¶meter) const
std::string getBeamLimitingDeviceAngleToleranceTag() const
bool getToleranceTableNumber(unsigned long idx, std::string ¶meter) const
std::string getPatientSupportAngleToleranceTag() const
bool setTableTopVerticalPositionTolerance(unsigned long idx, std::string parameter)
bool getGantryAngleTolerance(DCMTree::TreePtr item, std::string ¶meter) const
bool insertItem(const size_t idx)
Insert an item at the indicated position.
bool getTableTopLongitudinalPositionTolerance(unsigned long idx, std::string ¶meter) const
bool setTableTopEccentricAngleTolerance(unsigned long idx, std::string parameter)
DcmDRTBeamLimitingDeviceToleranceSequenceInterface getBeamLimitingDeviceToleranceSequence(unsigned long idx) const
std::string getTableTopEccentricAngleToleranceTag() const
bool getPatientSupportAngleTolerance(unsigned long idx, std::string ¶meter) const
bool setToleranceTableLabel(unsigned long idx, std::string parameter)
bool getTableTopLateralPositionTolerance(DCMTree::TreePtr item, std::string ¶meter) const
std::string getToleranceTableLabelTag() const
Class to provide access to DRTBeamLimitingDeviceToleranceSequence.
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