23#ifndef __mlDcmDRTBrachyControlPointSequenceInterface_H 
   24#define __mlDcmDRTBrachyControlPointSequenceInterface_H 
   35#ifndef __mlModuleIncludes_H 
   52      Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
 
   64      bool isValid()
 const { 
return _dcmItem.get() != 
nullptr; }
 
 
  151    std::vector<DcmDRTBrachyControlPointSequenceInterface::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<DcmDRTBrachyControlPointSequenceInterface::Item>::iterator 
it =  _itemVec.begin();
 
  192        std::advance(
it, 
idx);
 
 
  202      if ( _itemVec.size() > 
idx ) {
 
  203        std::vector<DcmDRTBrachyControlPointSequenceInterface::Item>::iterator 
it =  _itemVec.begin();
 
  204        std::advance(
it, 
idx);
 
 
  213    std::vector<DcmDRTBrachyControlPointSequenceInterface::Item> 
_itemVec;
 
 
#define MLDCMTKACCESSORIES_EXPORT
 
std::string getControlPoint3DPositionTag() const
 
void setBrachyReferencedDoseReferenceSequence(DcmDRTBrachyReferencedDoseReferenceSequenceInterface seq)
 
std::string getCumulativeTimeWeightTag() const
 
bool setControlPointRelativePosition(std::string parameter)
 
DCMTree::TreePtr getTreePtr() const
 
std::string getBrachyReferencedDoseReferenceSequenceTag() const
 
Item(const Item ©DcmItem)
 
std::string getControlPointRelativePositionTag() const
 
bool setControlPoint3DPosition(std::string parameter)
 
DcmDRTBrachyReferencedDoseReferenceSequenceInterface getBrachyReferencedDoseReferenceSequence() const
 
std::string getControlPointIndexTag() const
 
bool setCumulativeTimeWeight(std::string parameter)
 
bool getControlPoint3DPosition(std::string ¶meter) const
 
Item(DCMTree::TreePtr dcmItem)
 
bool getCumulativeTimeWeight(std::string ¶meter) const
 
bool getControlPointIndex(std::string ¶meter) const
 
Item & operator=(const Item ©DcmItem)
 
bool setControlPointIndex(std::string parameter)
 
bool getControlPointRelativePosition(std::string ¶meter) const
 
Class to provide access to DRTBrachyControlPointSequence.
 
DcmDRTBrachyReferencedDoseReferenceSequenceInterface getBrachyReferencedDoseReferenceSequence(unsigned long idx) const
 
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
 
std::string getControlPointRelativePositionTag() const
 
bool setControlPoint3DPosition(unsigned long idx, std::string parameter)
 
std::string getControlPointIndexTag() const
 
bool getControlPoint3DPosition(DCMTree::TreePtr item, std::string ¶meter) const
 
bool setCumulativeTimeWeight(unsigned long idx, std::string parameter)
 
bool setControlPointIndex(unsigned long idx, std::string parameter)
 
DcmDRTBrachyControlPointSequenceInterface::Item & addItem()
Adds a new item to the sequence.
 
std::vector< DcmDRTBrachyControlPointSequenceInterface::Item > getSequence() const
Return the DRTBrachyControlPointSequence this interface class provides access to.
 
DcmDRTBrachyControlPointSequenceInterface(DCMTree::TreePtrVector treePtrSeq)
 
virtual ~DcmDRTBrachyControlPointSequenceInterface()
Default virtual Destructor.
 
DcmDRTBrachyControlPointSequenceInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
 
bool getCumulativeTimeWeight(unsigned long idx, std::string ¶meter) const
 
bool getControlPointRelativePosition(DCMTree::TreePtr item, std::string ¶meter) const
 
bool getControlPointIndex(DCMTree::TreePtr item, std::string ¶meter) const
 
void setBrachyReferencedDoseReferenceSequence(DcmDRTBrachyReferencedDoseReferenceSequenceInterface seq, unsigned long idx)
 
bool getControlPointIndex(unsigned long idx, std::string ¶meter) const
 
bool insertItem(const size_t idx)
Insert an item at the indicated position.
 
bool setControlPointRelativePosition(unsigned long idx, std::string parameter)
 
std::string getBrachyReferencedDoseReferenceSequenceTag() const
 
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
 
bool hasSequence() const
Check if the DRTBrachyControlPointSequence is set.
 
void addItem(DcmDRTBrachyControlPointSequenceInterface::Item newItem)
 
std::string getControlPoint3DPositionTag() const
 
bool getCumulativeTimeWeight(DCMTree::TreePtr item, std::string ¶meter) const
 
bool getControlPoint3DPosition(unsigned long idx, std::string ¶meter) const
 
DcmDRTBrachyControlPointSequenceInterface()
 
bool getControlPointRelativePosition(unsigned long idx, std::string ¶meter) const
 
std::vector< DcmDRTBrachyControlPointSequenceInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
 
std::string getCumulativeTimeWeightTag() const
 
DcmDRTBrachyControlPointSequenceInterface(std::vector< DcmDRTBrachyControlPointSequenceInterface::Item > dcmSequence)
Default Constructor.
 
void setSequence(std::vector< DcmDRTBrachyControlPointSequenceInterface::Item > dcmSequence)
Set the DRTBrachyControlPointSequence this interface class provides access to.
 
Class to provide access to DRTBrachyReferencedDoseReferenceSequence.
 
Class to provide access to DRTBrachyReferencedDoseReferenceSequence.
 
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.