23#ifndef __mlDcmDRTFrameOfReferenceRelationshipSequenceInterface_H
24#define __mlDcmDRTFrameOfReferenceRelationshipSequenceInterface_H
34#ifndef __mlModuleIncludes_H
51 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
63 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
140 std::vector<DcmDRTFrameOfReferenceRelationshipSequenceInterface::Item>
getSequence()
const {
147 return (_itemVec.size() != 0);
153 return static_cast<MLint>(_itemVec.size());
159 if (_itemVec.size() >
idx) {
160 return _itemVec[
idx];
169 return _itemVec[_itemVec.size()-1];
179 if (_itemVec.size() >
idx) {
180 std::vector<DcmDRTFrameOfReferenceRelationshipSequenceInterface::Item>::iterator
it = _itemVec.begin();
181 std::advance(
it,
idx);
191 if ( _itemVec.size() >
idx ) {
192 std::vector<DcmDRTFrameOfReferenceRelationshipSequenceInterface::Item>::iterator
it = _itemVec.begin();
193 std::advance(
it,
idx);
202 std::vector<DcmDRTFrameOfReferenceRelationshipSequenceInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
Item(const Item ©DcmItem)
Item & operator=(const Item ©DcmItem)
bool setFrameOfReferenceTransformationComment(std::string parameter)
bool setFrameOfReferenceTransformationMatrix(std::string parameter)
DCMTree::TreePtr getTreePtr() const
bool getFrameOfReferenceTransformationComment(std::string ¶meter) const
std::string getFrameOfReferenceTransformationTypeTag() const
std::string getRelatedFrameOfReferenceUIDTag() const
bool setFrameOfReferenceTransformationType(std::string parameter)
Item(DCMTree::TreePtr dcmItem)
std::string getFrameOfReferenceTransformationCommentTag() const
std::string getFrameOfReferenceTransformationMatrixTag() const
bool getRelatedFrameOfReferenceUID(std::string ¶meter) const
bool getFrameOfReferenceTransformationType(std::string ¶meter) const
bool setRelatedFrameOfReferenceUID(std::string parameter)
bool getFrameOfReferenceTransformationMatrix(std::string ¶meter) const
Class to provide access to DRTFrameOfReferenceRelationshipSequence.
bool getFrameOfReferenceTransformationMatrix(DCMTree::TreePtr item, std::string ¶meter) const
DcmDRTFrameOfReferenceRelationshipSequenceInterface::Item & addItem()
Adds a new item to the sequence.
bool setFrameOfReferenceTransformationType(unsigned long idx, std::string parameter)
bool setRelatedFrameOfReferenceUID(unsigned long idx, std::string parameter)
DcmDRTFrameOfReferenceRelationshipSequenceInterface(DCMTree::TreePtrVector treePtrSeq)
bool getRelatedFrameOfReferenceUID(DCMTree::TreePtr item, std::string ¶meter) const
bool getRelatedFrameOfReferenceUID(unsigned long idx, std::string ¶meter) const
virtual ~DcmDRTFrameOfReferenceRelationshipSequenceInterface()
Default virtual Destructor.
bool getFrameOfReferenceTransformationMatrix(unsigned long idx, std::string ¶meter) const
std::vector< DcmDRTFrameOfReferenceRelationshipSequenceInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
bool insertItem(const size_t idx)
Insert an item at the indicated position.
std::string getFrameOfReferenceTransformationCommentTag() const
void setSequence(std::vector< DcmDRTFrameOfReferenceRelationshipSequenceInterface::Item > dcmSequence)
Set the DRTFrameOfReferenceRelationshipSequence this interface class provides access to.
bool getFrameOfReferenceTransformationType(unsigned long idx, std::string ¶meter) const
bool getFrameOfReferenceTransformationComment(DCMTree::TreePtr item, std::string ¶meter) const
bool hasSequence() const
Check if the DRTFrameOfReferenceRelationshipSequence is set.
std::string getRelatedFrameOfReferenceUIDTag() const
bool setFrameOfReferenceTransformationMatrix(unsigned long idx, std::string parameter)
std::string getFrameOfReferenceTransformationMatrixTag() const
bool getFrameOfReferenceTransformationType(DCMTree::TreePtr item, std::string ¶meter) const
DcmDRTFrameOfReferenceRelationshipSequenceInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
bool getFrameOfReferenceTransformationComment(unsigned long idx, std::string ¶meter) const
void addItem(DcmDRTFrameOfReferenceRelationshipSequenceInterface::Item newItem)
DcmDRTFrameOfReferenceRelationshipSequenceInterface()
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
std::vector< DcmDRTFrameOfReferenceRelationshipSequenceInterface::Item > getSequence() const
Return the DRTFrameOfReferenceRelationshipSequence this interface class provides access to.
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
DcmDRTFrameOfReferenceRelationshipSequenceInterface(std::vector< DcmDRTFrameOfReferenceRelationshipSequenceInterface::Item > dcmSequence)
Default Constructor.
bool setFrameOfReferenceTransformationComment(unsigned long idx, std::string parameter)
std::string getFrameOfReferenceTransformationTypeTag() 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