23#ifndef __mlDcmDRTIonToleranceTableSequenceInterface_H
24#define __mlDcmDRTIonToleranceTableSequenceInterface_H
35#ifndef __mlModuleIncludes_H
52 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
64 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
228 std::vector<DcmDRTIonToleranceTableSequenceInterface::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<DcmDRTIonToleranceTableSequenceInterface::Item>::iterator
it = _itemVec.begin();
269 std::advance(
it,
idx);
279 if ( _itemVec.size() >
idx ) {
280 std::vector<DcmDRTIonToleranceTableSequenceInterface::Item>::iterator
it = _itemVec.begin();
281 std::advance(
it,
idx);
290 std::vector<DcmDRTIonToleranceTableSequenceInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
Class to provide access to DRTBeamLimitingDeviceToleranceSequence.
bool getTableTopRollAngleTolerance(float ¶meter) const
bool getSnoutPositionTolerance(float ¶meter) const
bool setTableTopRollAngleTolerance(float parameter)
std::string getToleranceTableNumberTag() const
bool getTableTopVerticalPositionTolerance(std::string ¶meter) const
void setBeamLimitingDeviceToleranceSequence(DcmDRTBeamLimitingDeviceToleranceSequenceInterface seq)
bool setTableTopLongitudinalPositionTolerance(std::string parameter)
bool getTableTopLateralPositionTolerance(std::string ¶meter) const
bool setTableTopLateralPositionTolerance(std::string parameter)
DcmDRTBeamLimitingDeviceToleranceSequenceInterface getBeamLimitingDeviceToleranceSequence() const
Item(const Item ©DcmItem)
bool setTableTopPitchAngleTolerance(float parameter)
std::string getSnoutPositionToleranceTag() const
bool getTableTopPitchAngleTolerance(float ¶meter) const
bool setToleranceTableNumber(std::string parameter)
bool setToleranceTableLabel(std::string parameter)
std::string getTableTopVerticalPositionToleranceTag() const
bool setSnoutPositionTolerance(float parameter)
bool getToleranceTableLabel(std::string ¶meter) const
Item & operator=(const Item ©DcmItem)
std::string getTableTopLongitudinalPositionToleranceTag() const
std::string getTableTopLateralPositionToleranceTag() const
std::string getBeamLimitingDeviceAngleToleranceTag() const
bool getToleranceTableNumber(std::string ¶meter) const
DCMTree::TreePtr getTreePtr() const
bool setPatientSupportAngleTolerance(std::string parameter)
bool setTableTopVerticalPositionTolerance(std::string parameter)
std::string getBeamLimitingDeviceToleranceSequenceTag() const
bool getGantryAngleTolerance(std::string ¶meter) const
bool setBeamLimitingDeviceAngleTolerance(std::string parameter)
bool setGantryAngleTolerance(std::string parameter)
std::string getPatientSupportAngleToleranceTag() const
bool getTableTopLongitudinalPositionTolerance(std::string ¶meter) const
bool getBeamLimitingDeviceAngleTolerance(std::string ¶meter) const
bool getPatientSupportAngleTolerance(std::string ¶meter) const
std::string getTableTopPitchAngleToleranceTag() const
Item(DCMTree::TreePtr dcmItem)
std::string getTableTopRollAngleToleranceTag() const
std::string getGantryAngleToleranceTag() const
std::string getToleranceTableLabelTag() const
Class to provide access to DRTIonToleranceTableSequence.
void setSequence(std::vector< DcmDRTIonToleranceTableSequenceInterface::Item > dcmSequence)
Set the DRTIonToleranceTableSequence this interface class provides access to.
bool getPatientSupportAngleTolerance(unsigned long idx, std::string ¶meter) const
DcmDRTIonToleranceTableSequenceInterface(DCMTree::TreePtrVector treePtrSeq)
std::string getBeamLimitingDeviceToleranceSequenceTag() const
bool getToleranceTableNumber(DCMTree::TreePtr item, std::string ¶meter) const
bool getTableTopLateralPositionTolerance(DCMTree::TreePtr item, std::string ¶meter) const
bool setTableTopVerticalPositionTolerance(unsigned long idx, std::string parameter)
bool setBeamLimitingDeviceAngleTolerance(unsigned long idx, std::string parameter)
std::string getBeamLimitingDeviceAngleToleranceTag() const
std::string getTableTopRollAngleToleranceTag() const
std::string getPatientSupportAngleToleranceTag() const
DcmDRTBeamLimitingDeviceToleranceSequenceInterface getBeamLimitingDeviceToleranceSequence(unsigned long idx) const
bool getTableTopLongitudinalPositionTolerance(unsigned long idx, std::string ¶meter) const
bool getPatientSupportAngleTolerance(DCMTree::TreePtr item, std::string ¶meter) const
bool getSnoutPositionTolerance(DCMTree::TreePtr item, float ¶meter) const
std::string getToleranceTableLabelTag() const
bool getTableTopPitchAngleTolerance(DCMTree::TreePtr item, float ¶meter) const
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
DcmDRTIonToleranceTableSequenceInterface()
bool getGantryAngleTolerance(DCMTree::TreePtr item, std::string ¶meter) const
bool setTableTopRollAngleTolerance(unsigned long idx, float parameter)
bool getTableTopLateralPositionTolerance(unsigned long idx, std::string ¶meter) const
bool getTableTopLongitudinalPositionTolerance(DCMTree::TreePtr item, std::string ¶meter) const
bool getTableTopPitchAngleTolerance(unsigned long idx, float ¶meter) const
bool setPatientSupportAngleTolerance(unsigned long idx, std::string parameter)
DcmDRTIonToleranceTableSequenceInterface::Item & addItem()
Adds a new item to the sequence.
bool setTableTopLateralPositionTolerance(unsigned long idx, std::string parameter)
bool getBeamLimitingDeviceAngleTolerance(unsigned long idx, std::string ¶meter) const
std::string getTableTopVerticalPositionToleranceTag() const
std::string getTableTopPitchAngleToleranceTag() const
bool getToleranceTableNumber(unsigned long idx, std::string ¶meter) const
DcmDRTIonToleranceTableSequenceInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
bool getTableTopRollAngleTolerance(unsigned long idx, float ¶meter) const
bool getTableTopVerticalPositionTolerance(DCMTree::TreePtr item, std::string ¶meter) const
bool setGantryAngleTolerance(unsigned long idx, std::string parameter)
std::string getGantryAngleToleranceTag() const
DcmDRTIonToleranceTableSequenceInterface(std::vector< DcmDRTIonToleranceTableSequenceInterface::Item > dcmSequence)
Default Constructor.
std::string getSnoutPositionToleranceTag() const
bool getSnoutPositionTolerance(unsigned long idx, float ¶meter) const
bool setTableTopLongitudinalPositionTolerance(unsigned long idx, std::string parameter)
void addItem(DcmDRTIonToleranceTableSequenceInterface::Item newItem)
std::string getTableTopLongitudinalPositionToleranceTag() const
bool getBeamLimitingDeviceAngleTolerance(DCMTree::TreePtr item, std::string ¶meter) const
bool getToleranceTableLabel(DCMTree::TreePtr item, std::string ¶meter) const
std::vector< DcmDRTIonToleranceTableSequenceInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
bool insertItem(const size_t idx)
Insert an item at the indicated position.
bool setToleranceTableLabel(unsigned long idx, std::string parameter)
void setBeamLimitingDeviceToleranceSequence(DcmDRTBeamLimitingDeviceToleranceSequenceInterface seq, unsigned long idx)
std::vector< DcmDRTIonToleranceTableSequenceInterface::Item > getSequence() const
Return the DRTIonToleranceTableSequence this interface class provides access to.
std::string getToleranceTableNumberTag() const
bool setTableTopPitchAngleTolerance(unsigned long idx, float parameter)
std::string getTableTopLateralPositionToleranceTag() const
bool getTableTopVerticalPositionTolerance(unsigned long idx, std::string ¶meter) const
bool setSnoutPositionTolerance(unsigned long idx, float parameter)
bool setToleranceTableNumber(unsigned long idx, std::string parameter)
bool getGantryAngleTolerance(unsigned long idx, std::string ¶meter) const
bool getToleranceTableLabel(unsigned long idx, std::string ¶meter) const
virtual ~DcmDRTIonToleranceTableSequenceInterface()
Default virtual Destructor.
bool hasSequence() const
Check if the DRTIonToleranceTableSequence is set.
bool getTableTopRollAngleTolerance(DCMTree::TreePtr item, float ¶meter) 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