23#ifndef __mlDcmDRTWedgeSequenceInterface_H
24#define __mlDcmDRTWedgeSequenceInterface_H
34#ifndef __mlModuleIncludes_H
51 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
63 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
184 std::vector<DcmDRTWedgeSequenceInterface::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<DcmDRTWedgeSequenceInterface::Item>::iterator
it = _itemVec.begin();
225 std::advance(
it,
idx);
235 if ( _itemVec.size() >
idx ) {
236 std::vector<DcmDRTWedgeSequenceInterface::Item>::iterator
it = _itemVec.begin();
237 std::advance(
it,
idx);
246 std::vector<DcmDRTWedgeSequenceInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
bool setWedgeNumber(std::string parameter)
std::string getWedgeOrientationTag() const
bool setWedgeOrientation(std::string parameter)
std::string getWedgeIDTag() const
bool setWedgeID(std::string parameter)
bool getWedgeOrientation(std::string ¶meter) const
std::string getSourceToWedgeTrayDistanceTag() const
std::string getWedgeNumberTag() const
std::string getWedgeFactorTag() const
bool getSourceToWedgeTrayDistance(std::string ¶meter) const
bool getAccessoryCode(std::string ¶meter) const
bool getWedgeType(std::string ¶meter) const
bool getWedgeID(std::string ¶meter) const
bool setSourceToWedgeTrayDistance(std::string parameter)
bool getWedgeNumber(std::string ¶meter) const
bool setWedgeFactor(std::string parameter)
bool getWedgeAngle(std::string ¶meter) const
bool getWedgeFactor(std::string ¶meter) const
std::string getAccessoryCodeTag() const
bool setAccessoryCode(std::string parameter)
std::string getWedgeAngleTag() const
bool setWedgeType(std::string parameter)
Item(const Item ©DcmItem)
DCMTree::TreePtr getTreePtr() const
bool setWedgeAngle(std::string parameter)
std::string getWedgeTypeTag() const
Item & operator=(const Item ©DcmItem)
Item(DCMTree::TreePtr dcmItem)
Class to provide access to DRTWedgeSequence.
bool getWedgeNumber(unsigned long idx, std::string ¶meter) const
bool getWedgeType(unsigned long idx, std::string ¶meter) const
DcmDRTWedgeSequenceInterface(std::vector< DcmDRTWedgeSequenceInterface::Item > dcmSequence)
Default Constructor.
DcmDRTWedgeSequenceInterface(DCMTree::TreePtrVector treePtrSeq)
bool getWedgeID(DCMTree::TreePtr item, std::string ¶meter) const
std::string getAccessoryCodeTag() const
bool insertItem(const size_t idx)
Insert an item at the indicated position.
bool getAccessoryCode(DCMTree::TreePtr item, std::string ¶meter) const
std::vector< DcmDRTWedgeSequenceInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
bool setWedgeAngle(unsigned long idx, std::string parameter)
std::string getSourceToWedgeTrayDistanceTag() const
bool setSourceToWedgeTrayDistance(unsigned long idx, std::string parameter)
virtual ~DcmDRTWedgeSequenceInterface()
Default virtual Destructor.
bool getWedgeID(unsigned long idx, std::string ¶meter) const
DcmDRTWedgeSequenceInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
bool setWedgeID(unsigned long idx, std::string parameter)
std::string getWedgeIDTag() const
DcmDRTWedgeSequenceInterface()
bool setAccessoryCode(unsigned long idx, std::string parameter)
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
std::string getWedgeFactorTag() const
std::string getWedgeOrientationTag() const
bool getWedgeOrientation(DCMTree::TreePtr item, std::string ¶meter) const
bool getWedgeAngle(unsigned long idx, std::string ¶meter) const
std::string getWedgeNumberTag() const
void addItem(DcmDRTWedgeSequenceInterface::Item newItem)
bool hasSequence() const
Check if the DRTWedgeSequence is set.
DcmDRTWedgeSequenceInterface::Item & addItem()
Adds a new item to the sequence.
bool setWedgeFactor(unsigned long idx, std::string parameter)
bool getWedgeFactor(DCMTree::TreePtr item, std::string ¶meter) const
bool getWedgeFactor(unsigned long idx, std::string ¶meter) const
void setSequence(std::vector< DcmDRTWedgeSequenceInterface::Item > dcmSequence)
Set the DRTWedgeSequence this interface class provides access to.
bool getAccessoryCode(unsigned long idx, std::string ¶meter) const
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
bool getWedgeNumber(DCMTree::TreePtr item, std::string ¶meter) const
bool getSourceToWedgeTrayDistance(DCMTree::TreePtr item, std::string ¶meter) const
bool getWedgeOrientation(unsigned long idx, std::string ¶meter) const
bool getSourceToWedgeTrayDistance(unsigned long idx, std::string ¶meter) const
bool setWedgeType(unsigned long idx, std::string parameter)
bool getWedgeType(DCMTree::TreePtr item, std::string ¶meter) const
std::string getWedgeAngleTag() const
std::vector< DcmDRTWedgeSequenceInterface::Item > getSequence() const
Return the DRTWedgeSequence this interface class provides access to.
bool setWedgeOrientation(unsigned long idx, std::string parameter)
bool setWedgeNumber(unsigned long idx, std::string parameter)
std::string getWedgeTypeTag() const
bool getWedgeAngle(DCMTree::TreePtr item, std::string ¶meter) 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