23#ifndef __mlDcmDRTFixationDeviceSequenceInterface_H
24#define __mlDcmDRTFixationDeviceSequenceInterface_H
34#ifndef __mlModuleIncludes_H
51 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
63 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
173 std::vector<DcmDRTFixationDeviceSequenceInterface::Item>
getSequence()
const {
180 return (_itemVec.size() != 0);
186 return static_cast<MLint>(_itemVec.size());
192 if (_itemVec.size() >
idx) {
193 return _itemVec[
idx];
202 return _itemVec[_itemVec.size()-1];
212 if (_itemVec.size() >
idx) {
213 std::vector<DcmDRTFixationDeviceSequenceInterface::Item>::iterator
it = _itemVec.begin();
214 std::advance(
it,
idx);
224 if ( _itemVec.size() >
idx ) {
225 std::vector<DcmDRTFixationDeviceSequenceInterface::Item>::iterator
it = _itemVec.begin();
226 std::advance(
it,
idx);
235 std::vector<DcmDRTFixationDeviceSequenceInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
bool getFixationDeviceRollAngle(float ¶meter) const
std::string getFixationDeviceRollAngleTag() const
Item(DCMTree::TreePtr dcmItem)
bool setFixationDeviceDescription(std::string parameter)
bool getFixationDevicePitchAngle(float ¶meter) const
bool setFixationDevicePitchAngle(float parameter)
std::string getFixationDevicePitchAngleTag() const
bool getFixationDeviceDescription(std::string ¶meter) const
bool getAccessoryCode(std::string ¶meter) const
bool getFixationDeviceType(std::string ¶meter) const
std::string getFixationDeviceLabelTag() const
DCMTree::TreePtr getTreePtr() const
bool setAccessoryCode(std::string parameter)
Item & operator=(const Item ©DcmItem)
bool setFixationDeviceRollAngle(float parameter)
bool setFixationDeviceType(std::string parameter)
std::string getFixationDeviceTypeTag() const
bool setFixationDeviceLabel(std::string parameter)
bool setFixationDevicePosition(std::string parameter)
bool getFixationDevicePosition(std::string ¶meter) const
bool getFixationDeviceLabel(std::string ¶meter) const
std::string getAccessoryCodeTag() const
Item(const Item ©DcmItem)
std::string getFixationDevicePositionTag() const
std::string getFixationDeviceDescriptionTag() const
Class to provide access to DRTFixationDeviceSequence.
bool setFixationDeviceRollAngle(unsigned long idx, float parameter)
bool getAccessoryCode(unsigned long idx, std::string ¶meter) const
void setSequence(std::vector< DcmDRTFixationDeviceSequenceInterface::Item > dcmSequence)
Set the DRTFixationDeviceSequence this interface class provides access to.
bool setFixationDeviceDescription(unsigned long idx, std::string parameter)
DcmDRTFixationDeviceSequenceInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
bool getFixationDeviceRollAngle(DCMTree::TreePtr item, float ¶meter) const
std::vector< DcmDRTFixationDeviceSequenceInterface::Item > getSequence() const
Return the DRTFixationDeviceSequence this interface class provides access to.
bool getFixationDeviceDescription(DCMTree::TreePtr item, std::string ¶meter) const
bool getFixationDeviceDescription(unsigned long idx, std::string ¶meter) const
bool getFixationDeviceType(DCMTree::TreePtr item, std::string ¶meter) const
bool setFixationDeviceType(unsigned long idx, std::string parameter)
std::vector< DcmDRTFixationDeviceSequenceInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
bool setAccessoryCode(unsigned long idx, std::string parameter)
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
std::string getFixationDeviceRollAngleTag() const
void addItem(DcmDRTFixationDeviceSequenceInterface::Item newItem)
DcmDRTFixationDeviceSequenceInterface(std::vector< DcmDRTFixationDeviceSequenceInterface::Item > dcmSequence)
Default Constructor.
bool getFixationDevicePitchAngle(unsigned long idx, float ¶meter) const
bool getFixationDeviceRollAngle(unsigned long idx, float ¶meter) const
std::string getFixationDeviceTypeTag() const
DcmDRTFixationDeviceSequenceInterface()
DcmDRTFixationDeviceSequenceInterface::Item & addItem()
Adds a new item to the sequence.
std::string getAccessoryCodeTag() const
bool getFixationDeviceType(unsigned long idx, std::string ¶meter) const
bool getFixationDevicePosition(DCMTree::TreePtr item, std::string ¶meter) const
bool setFixationDevicePosition(unsigned long idx, std::string parameter)
bool setFixationDevicePitchAngle(unsigned long idx, float parameter)
bool getAccessoryCode(DCMTree::TreePtr item, std::string ¶meter) const
bool setFixationDeviceLabel(unsigned long idx, std::string parameter)
bool insertItem(const size_t idx)
Insert an item at the indicated position.
DcmDRTFixationDeviceSequenceInterface(DCMTree::TreePtrVector treePtrSeq)
bool getFixationDeviceLabel(unsigned long idx, std::string ¶meter) const
bool getFixationDevicePitchAngle(DCMTree::TreePtr item, float ¶meter) const
std::string getFixationDevicePitchAngleTag() const
std::string getFixationDeviceLabelTag() const
bool hasSequence() const
Check if the DRTFixationDeviceSequence is set.
virtual ~DcmDRTFixationDeviceSequenceInterface()
Default virtual Destructor.
bool getFixationDeviceLabel(DCMTree::TreePtr item, std::string ¶meter) const
bool getFixationDevicePosition(unsigned long idx, std::string ¶meter) const
std::string getFixationDevicePositionTag() const
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
std::string getFixationDeviceDescriptionTag() const
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