23#ifndef __mlDcmDRTRecordedWedgeSequenceInterface_H
24#define __mlDcmDRTRecordedWedgeSequenceInterface_H
34#ifndef __mlModuleIncludes_H
51 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
63 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
162 std::vector<DcmDRTRecordedWedgeSequenceInterface::Item>
getSequence()
const {
169 return (_itemVec.size() != 0);
175 return static_cast<MLint>(_itemVec.size());
181 if (_itemVec.size() >
idx) {
182 return _itemVec[
idx];
191 return _itemVec[_itemVec.size()-1];
201 if (_itemVec.size() >
idx) {
202 std::vector<DcmDRTRecordedWedgeSequenceInterface::Item>::iterator
it = _itemVec.begin();
203 std::advance(
it,
idx);
213 if ( _itemVec.size() >
idx ) {
214 std::vector<DcmDRTRecordedWedgeSequenceInterface::Item>::iterator
it = _itemVec.begin();
215 std::advance(
it,
idx);
224 std::vector<DcmDRTRecordedWedgeSequenceInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
bool getWedgeNumber(std::string ¶meter) const
std::string getWedgeTypeTag() const
bool getWedgeOrientation(std::string ¶meter) const
DCMTree::TreePtr getTreePtr() const
bool setWedgeNumber(std::string parameter)
bool getAccessoryCode(std::string ¶meter) const
bool setWedgeOrientation(std::string parameter)
std::string getAccessoryCodeTag() const
bool getWedgeID(std::string ¶meter) const
bool getWedgeAngle(std::string ¶meter) const
std::string getWedgeIDTag() const
bool getWedgeType(std::string ¶meter) const
bool setWedgeID(std::string parameter)
Item(const Item ©DcmItem)
bool setWedgeType(std::string parameter)
bool setAccessoryCode(std::string parameter)
std::string getWedgeNumberTag() const
std::string getWedgeOrientationTag() const
Item & operator=(const Item ©DcmItem)
Item(DCMTree::TreePtr dcmItem)
bool setWedgeAngle(std::string parameter)
std::string getWedgeAngleTag() const
Class to provide access to DRTRecordedWedgeSequence.
void setSequence(std::vector< DcmDRTRecordedWedgeSequenceInterface::Item > dcmSequence)
Set the DRTRecordedWedgeSequence this interface class provides access to.
bool hasSequence() const
Check if the DRTRecordedWedgeSequence is set.
bool getWedgeType(unsigned long idx, std::string ¶meter) const
DcmDRTRecordedWedgeSequenceInterface(std::vector< DcmDRTRecordedWedgeSequenceInterface::Item > dcmSequence)
Default Constructor.
bool getWedgeNumber(DCMTree::TreePtr item, std::string ¶meter) const
bool setWedgeAngle(unsigned long idx, std::string parameter)
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
bool getAccessoryCode(unsigned long idx, std::string ¶meter) const
std::string getWedgeAngleTag() const
bool getAccessoryCode(DCMTree::TreePtr item, std::string ¶meter) const
std::string getWedgeTypeTag() const
virtual ~DcmDRTRecordedWedgeSequenceInterface()
Default virtual Destructor.
bool getWedgeType(DCMTree::TreePtr item, std::string ¶meter) const
bool setWedgeID(unsigned long idx, std::string parameter)
void addItem(DcmDRTRecordedWedgeSequenceInterface::Item newItem)
bool getWedgeID(unsigned long idx, std::string ¶meter) const
std::string getWedgeNumberTag() const
DcmDRTRecordedWedgeSequenceInterface(DCMTree::TreePtrVector treePtrSeq)
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
bool getWedgeAngle(unsigned long idx, std::string ¶meter) const
std::string getAccessoryCodeTag() const
std::string getWedgeOrientationTag() const
bool getWedgeID(DCMTree::TreePtr item, std::string ¶meter) const
std::vector< DcmDRTRecordedWedgeSequenceInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
bool getWedgeAngle(DCMTree::TreePtr item, std::string ¶meter) const
DcmDRTRecordedWedgeSequenceInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
DcmDRTRecordedWedgeSequenceInterface()
std::string getWedgeIDTag() const
bool setAccessoryCode(unsigned long idx, std::string parameter)
bool setWedgeNumber(unsigned long idx, std::string parameter)
bool setWedgeType(unsigned long idx, std::string parameter)
bool getWedgeOrientation(DCMTree::TreePtr item, std::string ¶meter) const
DcmDRTRecordedWedgeSequenceInterface::Item & addItem()
Adds a new item to the sequence.
bool setWedgeOrientation(unsigned long idx, std::string parameter)
bool insertItem(const size_t idx)
Insert an item at the indicated position.
bool getWedgeOrientation(unsigned long idx, std::string ¶meter) const
bool getWedgeNumber(unsigned long idx, std::string ¶meter) const
std::vector< DcmDRTRecordedWedgeSequenceInterface::Item > getSequence() const
Return the DRTRecordedWedgeSequence this interface class provides access to.
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