23#ifndef __mlDcmDRTSetupDeviceSequenceInterface_H 
   24#define __mlDcmDRTSetupDeviceSequenceInterface_H 
   34#ifndef __mlModuleIncludes_H 
   51      Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
 
   63      bool isValid()
 const { 
return _dcmItem.get() != 
nullptr; }
 
 
  151    std::vector<DcmDRTSetupDeviceSequenceInterface::Item> 
getSequence()
 const {
 
 
  158      return (_itemVec.size() != 0);
 
 
  164      return static_cast<MLint>(_itemVec.size());
 
 
  170      if (_itemVec.size() > 
idx) {
 
  171        return _itemVec[
idx];
 
 
  180      return _itemVec[_itemVec.size()-1];
 
 
  190      if (_itemVec.size() > 
idx) {
 
  191        std::vector<DcmDRTSetupDeviceSequenceInterface::Item>::iterator 
it =  _itemVec.begin();
 
  192        std::advance(
it, 
idx);
 
 
  202      if ( _itemVec.size() > 
idx ) {
 
  203        std::vector<DcmDRTSetupDeviceSequenceInterface::Item>::iterator 
it =  _itemVec.begin();
 
  204        std::advance(
it, 
idx);
 
 
  213    std::vector<DcmDRTSetupDeviceSequenceInterface::Item> 
_itemVec;
 
 
#define MLDCMTKACCESSORIES_EXPORT
 
bool setSetupDeviceParameter(std::string parameter)
 
bool setSetupDeviceDescription(std::string parameter)
 
bool setSetupDeviceType(std::string parameter)
 
bool getSetupDeviceLabel(std::string ¶meter) const
 
bool setSetupDeviceLabel(std::string parameter)
 
bool getSetupDeviceType(std::string ¶meter) const
 
bool getSetupDeviceDescription(std::string ¶meter) const
 
std::string getSetupDeviceLabelTag() const
 
Item(const Item ©DcmItem)
 
bool getSetupDeviceParameter(std::string ¶meter) const
 
bool getSetupReferenceDescription(std::string ¶meter) const
 
std::string getSetupDeviceParameterTag() const
 
Item(DCMTree::TreePtr dcmItem)
 
std::string getSetupDeviceTypeTag() const
 
DCMTree::TreePtr getTreePtr() const
 
bool setSetupReferenceDescription(std::string parameter)
 
std::string getSetupReferenceDescriptionTag() const
 
std::string getSetupDeviceDescriptionTag() const
 
Item & operator=(const Item ©DcmItem)
 
Class to provide access to DRTSetupDeviceSequence.
 
bool setSetupDeviceType(unsigned long idx, std::string parameter)
 
bool getSetupDeviceParameter(unsigned long idx, std::string ¶meter) const
 
bool hasSequence() const
Check if the DRTSetupDeviceSequence is set.
 
std::string getSetupDeviceLabelTag() const
 
bool getSetupDeviceDescription(DCMTree::TreePtr item, std::string ¶meter) const
 
void addItem(DcmDRTSetupDeviceSequenceInterface::Item newItem)
 
bool getSetupDeviceDescription(unsigned long idx, std::string ¶meter) const
 
bool getSetupReferenceDescription(DCMTree::TreePtr item, std::string ¶meter) const
 
bool getSetupDeviceType(DCMTree::TreePtr item, std::string ¶meter) const
 
DcmDRTSetupDeviceSequenceInterface(std::vector< DcmDRTSetupDeviceSequenceInterface::Item > dcmSequence)
Default Constructor.
 
bool getSetupDeviceLabel(unsigned long idx, std::string ¶meter) const
 
bool setSetupDeviceLabel(unsigned long idx, std::string parameter)
 
std::string getSetupDeviceDescriptionTag() const
 
void setSequence(std::vector< DcmDRTSetupDeviceSequenceInterface::Item > dcmSequence)
Set the DRTSetupDeviceSequence this interface class provides access to.
 
DcmDRTSetupDeviceSequenceInterface(DCMTree::TreePtrVector treePtrSeq)
 
DcmDRTSetupDeviceSequenceInterface::Item & addItem()
Adds a new item to the sequence.
 
std::string getSetupReferenceDescriptionTag() const
 
bool getSetupReferenceDescription(unsigned long idx, std::string ¶meter) const
 
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
 
bool setSetupReferenceDescription(unsigned long idx, std::string parameter)
 
std::string getSetupDeviceParameterTag() const
 
std::string getSetupDeviceTypeTag() const
 
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.
 
std::vector< DcmDRTSetupDeviceSequenceInterface::Item > getSequence() const
Return the DRTSetupDeviceSequence this interface class provides access to.
 
bool getSetupDeviceType(unsigned long idx, std::string ¶meter) const
 
bool setSetupDeviceDescription(unsigned long idx, std::string parameter)
 
virtual ~DcmDRTSetupDeviceSequenceInterface()
Default virtual Destructor.
 
std::vector< DcmDRTSetupDeviceSequenceInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
 
bool setSetupDeviceParameter(unsigned long idx, std::string parameter)
 
DcmDRTSetupDeviceSequenceInterface()
 
DcmDRTSetupDeviceSequenceInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
 
bool getSetupDeviceParameter(DCMTree::TreePtr item, std::string ¶meter) const
 
bool getSetupDeviceLabel(DCMTree::TreePtr item, std::string ¶meter) 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.