MeVisLab Toolbox Reference
mlDRTSourceSequenceWrapper.h
Go to the documentation of this file.
1// Copyright (c) Fraunhofer MEVIS, Germany. All rights reserved.
2// **InsertLicense** code
3//----------------------------------------------------------------------------------
4//
5// NOTE:
6// This file has been generated automatically by
7// FMEwork/ReleaseMeVis/Configuration/CodeGenerators/dcmtkToMLConverter/convertDcmtkToML.py
8// using the template file
9// FMEwork/ReleaseMeVis/Configuration/CodeGenerators/dcmtkToMLConverter/MLDcmtkIODWrappers/templates/DcmSequenceWrapper.h
10//
11// Destination project:
12// FMEwork/ReleaseMeVis/Sources/Wrappers/MLDcmtkIODWrappers/DcmSequenceInterfaces
13//
14//----------------------------------------------------------------------------------
16
22//----------------------------------------------------------------------------------
23
24
25#ifndef __mlDRTSourceSequenceWrapper_H
26#define __mlDRTSourceSequenceWrapper_H
27
28#ifndef Q_MOC_RUN
29
30#include <FMEThirdPartyWarningsDisable.h>
31#include <QObject>
32#include <QVariant>
33#include <QVariantMap>
34#include <QList>
35#include <QStringList>
36#include <FMEThirdPartyWarningsRestore.h>
37
38// MLDcmtkAccessories includes
40
41#endif
42
45class DRTSourceSequenceWrapper : public QObject
46{
48
49public:
50
51 DRTSourceSequenceWrapper(ML_NAMESPACE::DcmDRTSourceSequenceInterface* wrappedSequence)
52 : _wrappedSequence(wrappedSequence->getSequence())
53 {
54 }
55
57 {
58 _wrappedSequence.setSequence(toCopy.getWrappedSequence().getSequence());
59 }
60
62 {
63 _wrappedSequence.setSequence(toCopy.getWrappedSequence().getSequence());
64 return *this;
65 }
66
67 ml::DcmDRTSourceSequenceInterface getWrappedSequence() const { return _wrappedSequence; }
68
69
70 QString getActiveSourceDiameterTag() const { return QString(_wrappedSequence.getActiveSourceDiameterTag().c_str()); }
71
72 QString getActiveSourceLengthTag() const { return QString(_wrappedSequence.getActiveSourceLengthTag().c_str()); }
73
74 QString getMaterialIDTag() const { return QString(_wrappedSequence.getMaterialIDTag().c_str()); }
75
76 QString getReferenceAirKermaRateTag() const { return QString(_wrappedSequence.getReferenceAirKermaRateTag().c_str()); }
77
79
81
82 QString getSourceIsotopeHalfLifeTag() const { return QString(_wrappedSequence.getSourceIsotopeHalfLifeTag().c_str()); }
83
84 QString getSourceIsotopeNameTag() const { return QString(_wrappedSequence.getSourceIsotopeNameTag().c_str()); }
85
86 QString getSourceManufacturerTag() const { return QString(_wrappedSequence.getSourceManufacturerTag().c_str()); }
87
88 QString getSourceNumberTag() const { return QString(_wrappedSequence.getSourceNumberTag().c_str()); }
89
90 QString getSourceStrengthTag() const { return QString(_wrappedSequence.getSourceStrengthTag().c_str()); }
91
93
95
96 QString getSourceStrengthUnitsTag() const { return QString(_wrappedSequence.getSourceStrengthUnitsTag().c_str()); }
97
98 QString getSourceTypeTag() const { return QString(_wrappedSequence.getSourceTypeTag().c_str()); }
99
100
101
102
103public slots:
106
107 int getNumberOfItems() const;
110 bool insertItem(int idx);
111 bool removeItem(int idx);
112
114
115private:
116 ml::DcmDRTSourceSequenceInterface _wrappedSequence;
117};
118
119
120#endif // __mlDRTSourceSequenceWrapper_H
A class that wraps DRTSourceSequence Item for use in Python.
DRTSourceSequenceWrapper(const DRTSourceSequenceWrapper &toCopy)
QString getSourceStrengthReferenceTimeTag() const
ml::DcmDRTSourceSequenceInterface getWrappedSequence() const
DRTSourceSequenceWrapper & operator=(const DRTSourceSequenceWrapper &toCopy)
int getNumberOfItems() const
bool insertItem(int idx)
QString getSourceStrengthReferenceDateTag() const
bool removeItem(int idx)
DRTSourceSequenceWrapper(ml::DcmDRTSourceSequenceInterface *wrappedSequence)
QString getSourceEncapsulationNominalThicknessTag() const
QVariant getItem(int idx)
QString getSourceEncapsulationNominalTransmissionTag() const
Class to provide access to DRTSourceSequence.
void setSequence(std::vector< DcmDRTSourceSequenceInterface::Item > dcmSequence)
Set the DRTSourceSequence this interface class provides access to.
Class to provide access to DRTSourceSequence.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.