23#ifndef __mlDcmDRTContourSequenceInterface_H 
   24#define __mlDcmDRTContourSequenceInterface_H 
   35#ifndef __mlModuleIncludes_H 
   52      Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
 
   64      bool isValid()
 const { 
return _dcmItem.get() != 
nullptr; }
 
 
  184    std::vector<DcmDRTContourSequenceInterface::Item> 
getSequence()
 const {
 
 
  191      return (_itemVec.size() != 0);
 
 
  197      return static_cast<MLint>(_itemVec.size());
 
 
  203      if (_itemVec.size() > 
idx) {
 
  204        return _itemVec[
idx];
 
 
  213      return _itemVec[_itemVec.size()-1];
 
 
  223      if (_itemVec.size() > 
idx) {
 
  224        std::vector<DcmDRTContourSequenceInterface::Item>::iterator 
it =  _itemVec.begin();
 
  225        std::advance(
it, 
idx);
 
 
  235      if ( _itemVec.size() > 
idx ) {
 
  236        std::vector<DcmDRTContourSequenceInterface::Item>::iterator 
it =  _itemVec.begin();
 
  237        std::advance(
it, 
idx);
 
 
  246    std::vector<DcmDRTContourSequenceInterface::Item> 
_itemVec;
 
 
#define MLDCMTKACCESSORIES_EXPORT
 
Class to provide access to DRTContourImageSequence.
 
std::string getContourOffsetVectorTag() const
 
std::string getContourNumberTag() const
 
bool setAttachedContours(std::string parameter)
 
bool getContourSlabThickness(std::string ¶meter) const
 
bool setContourSlabThickness(std::string parameter)
 
std::string getAttachedContoursTag() const
 
bool setContourData(std::string parameter)
 
std::string getContourGeometricTypeTag() const
 
Item & operator=(const Item ©DcmItem)
 
bool getContourOffsetVector(std::string ¶meter) const
 
std::string getContourDataTag() const
 
bool setContourNumber(std::string parameter)
 
void setContourImageSequence(DcmDRTContourImageSequenceInterface seq)
 
std::string getNumberOfContourPointsTag() const
 
bool getNumberOfContourPoints(std::string ¶meter) const
 
std::string getContourImageSequenceTag() const
 
bool getContourNumber(std::string ¶meter) const
 
bool setNumberOfContourPoints(std::string parameter)
 
bool setContourGeometricType(std::string parameter)
 
std::string getContourSlabThicknessTag() const
 
bool getContourGeometricType(std::string ¶meter) const
 
bool setContourOffsetVector(std::string parameter)
 
DCMTree::TreePtr getTreePtr() const
 
bool getAttachedContours(std::string ¶meter) const
 
bool getContourData(std::string ¶meter) const
 
Item(DCMTree::TreePtr dcmItem)
 
DcmDRTContourImageSequenceInterface getContourImageSequence() const
 
Item(const Item ©DcmItem)
 
Class to provide access to DRTContourSequence.
 
bool getContourOffsetVector(DCMTree::TreePtr item, std::string ¶meter) const
 
std::string getContourOffsetVectorTag() const
 
void addItem(DcmDRTContourSequenceInterface::Item newItem)
 
bool setContourNumber(unsigned long idx, std::string parameter)
 
std::string getContourImageSequenceTag() const
 
DcmDRTContourSequenceInterface()
 
bool getContourData(unsigned long idx, std::string ¶meter) const
 
std::string getContourDataTag() const
 
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
 
bool getContourOffsetVector(unsigned long idx, std::string ¶meter) const
 
bool setContourGeometricType(unsigned long idx, std::string parameter)
 
bool setContourData(unsigned long idx, std::string parameter)
 
DcmDRTContourSequenceInterface::Item & addItem()
Adds a new item to the sequence.
 
std::string getContourNumberTag() const
 
bool getContourSlabThickness(DCMTree::TreePtr item, std::string ¶meter) const
 
bool setAttachedContours(unsigned long idx, std::string parameter)
 
DcmDRTContourImageSequenceInterface getContourImageSequence(unsigned long idx) const
 
virtual ~DcmDRTContourSequenceInterface()
Default virtual Destructor.
 
std::string getAttachedContoursTag() const
 
bool getContourGeometricType(DCMTree::TreePtr item, std::string ¶meter) const
 
bool getContourSlabThickness(unsigned long idx, std::string ¶meter) const
 
void setContourImageSequence(DcmDRTContourImageSequenceInterface seq, unsigned long idx)
 
bool setContourOffsetVector(unsigned long idx, std::string parameter)
 
bool setContourSlabThickness(unsigned long idx, std::string parameter)
 
bool getNumberOfContourPoints(unsigned long idx, std::string ¶meter) const
 
std::vector< DcmDRTContourSequenceInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
 
bool insertItem(const size_t idx)
Insert an item at the indicated position.
 
DcmDRTContourSequenceInterface(std::vector< DcmDRTContourSequenceInterface::Item > dcmSequence)
Default Constructor.
 
DcmDRTContourSequenceInterface(DCMTree::TreePtrVector treePtrSeq)
 
bool getContourData(DCMTree::TreePtr item, std::string ¶meter) const
 
std::vector< DcmDRTContourSequenceInterface::Item > getSequence() const
Return the DRTContourSequence this interface class provides access to.
 
std::string getContourGeometricTypeTag() const
 
bool getContourNumber(unsigned long idx, std::string ¶meter) const
 
bool getContourGeometricType(unsigned long idx, std::string ¶meter) const
 
bool getNumberOfContourPoints(DCMTree::TreePtr item, std::string ¶meter) const
 
bool setNumberOfContourPoints(unsigned long idx, std::string parameter)
 
bool getAttachedContours(DCMTree::TreePtr item, std::string ¶meter) const
 
void setSequence(std::vector< DcmDRTContourSequenceInterface::Item > dcmSequence)
Set the DRTContourSequence this interface class provides access to.
 
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
 
bool hasSequence() const
Check if the DRTContourSequence is set.
 
std::string getNumberOfContourPointsTag() const
 
bool getAttachedContours(unsigned long idx, std::string ¶meter) const
 
DcmDRTContourSequenceInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
 
bool getContourNumber(DCMTree::TreePtr item, std::string ¶meter) const
 
std::string getContourSlabThicknessTag() const
 
Class to provide access to DRTContourImageSequence.
 
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.