23#ifndef __mlDcmDRTIonWedgePositionSequenceInterface_H
24#define __mlDcmDRTIonWedgePositionSequenceInterface_H
34#ifndef __mlModuleIncludes_H
51 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
63 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
129 std::vector<DcmDRTIonWedgePositionSequenceInterface::Item>
getSequence()
const {
136 return (_itemVec.size() != 0);
142 return static_cast<MLint>(_itemVec.size());
148 if (_itemVec.size() >
idx) {
149 return _itemVec[
idx];
158 return _itemVec[_itemVec.size()-1];
168 if (_itemVec.size() >
idx) {
169 std::vector<DcmDRTIonWedgePositionSequenceInterface::Item>::iterator
it = _itemVec.begin();
170 std::advance(
it,
idx);
180 if ( _itemVec.size() >
idx ) {
181 std::vector<DcmDRTIonWedgePositionSequenceInterface::Item>::iterator
it = _itemVec.begin();
182 std::advance(
it,
idx);
191 std::vector<DcmDRTIonWedgePositionSequenceInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
bool getWedgeThinEdgePosition(float ¶meter) const
DCMTree::TreePtr getTreePtr() const
bool getReferencedWedgeNumber(std::string ¶meter) const
std::string getReferencedWedgeNumberTag() const
std::string getWedgeThinEdgePositionTag() const
bool setReferencedWedgeNumber(std::string parameter)
Item & operator=(const Item ©DcmItem)
bool setWedgeThinEdgePosition(float parameter)
std::string getWedgePositionTag() const
bool getWedgePosition(std::string ¶meter) const
Item(const Item ©DcmItem)
bool setWedgePosition(std::string parameter)
Item(DCMTree::TreePtr dcmItem)
Class to provide access to DRTIonWedgePositionSequence.
bool getReferencedWedgeNumber(DCMTree::TreePtr item, std::string ¶meter) const
std::vector< DcmDRTIonWedgePositionSequenceInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
virtual ~DcmDRTIonWedgePositionSequenceInterface()
Default virtual Destructor.
DcmDRTIonWedgePositionSequenceInterface::Item & addItem()
Adds a new item to the sequence.
std::string getWedgeThinEdgePositionTag() const
void setSequence(std::vector< DcmDRTIonWedgePositionSequenceInterface::Item > dcmSequence)
Set the DRTIonWedgePositionSequence this interface class provides access to.
bool hasSequence() const
Check if the DRTIonWedgePositionSequence is set.
std::string getReferencedWedgeNumberTag() const
bool getWedgeThinEdgePosition(DCMTree::TreePtr item, float ¶meter) const
void addItem(DcmDRTIonWedgePositionSequenceInterface::Item newItem)
bool insertItem(const size_t idx)
Insert an item at the indicated position.
DcmDRTIonWedgePositionSequenceInterface(std::vector< DcmDRTIonWedgePositionSequenceInterface::Item > dcmSequence)
Default Constructor.
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
std::vector< DcmDRTIonWedgePositionSequenceInterface::Item > getSequence() const
Return the DRTIonWedgePositionSequence this interface class provides access to.
DcmDRTIonWedgePositionSequenceInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
std::string getWedgePositionTag() const
DcmDRTIonWedgePositionSequenceInterface(DCMTree::TreePtrVector treePtrSeq)
bool getWedgePosition(unsigned long idx, std::string ¶meter) const
bool setReferencedWedgeNumber(unsigned long idx, std::string parameter)
DcmDRTIonWedgePositionSequenceInterface()
bool getReferencedWedgeNumber(unsigned long idx, std::string ¶meter) const
bool getWedgePosition(DCMTree::TreePtr item, std::string ¶meter) const
bool setWedgeThinEdgePosition(unsigned long idx, float parameter)
bool getWedgeThinEdgePosition(unsigned long idx, float ¶meter) const
bool setWedgePosition(unsigned long idx, std::string parameter)
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
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