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 <ThirdPartyWarningsDisable.h>
31 #include <QObject>
32 #include <QVariant>
33 #include <QVariantMap>
34 #include <QList>
35 #include <QStringList>
36 #include <ThirdPartyWarningsRestore.h>
37 
38 // MLDcmtkAccessories includes
40 
41 #endif
42 
45 class DRTSourceSequenceWrapper : public QObject
46 {
47  Q_OBJECT
48 
49 public:
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 
78  QString getSourceEncapsulationNominalThicknessTag() const { return QString(_wrappedSequence.getSourceEncapsulationNominalThicknessTag().c_str()); }
79 
80  QString getSourceEncapsulationNominalTransmissionTag() const { return QString(_wrappedSequence.getSourceEncapsulationNominalTransmissionTag().c_str()); }
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 
92  QString getSourceStrengthReferenceDateTag() const { return QString(_wrappedSequence.getSourceStrengthReferenceDateTag().c_str()); }
93 
94  QString getSourceStrengthReferenceTimeTag() const { return QString(_wrappedSequence.getSourceStrengthReferenceTimeTag().c_str()); }
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 
103 public slots:
106 
107  int getNumberOfItems() const;
108  QVariant getItem(int idx);
109  QVariant addItem();
110  bool insertItem(int idx);
111  bool removeItem(int idx);
112 
114 
115 private:
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
int getNumberOfItems() const
bool insertItem(int idx)
QString getSourceStrengthReferenceDateTag() const
bool removeItem(int idx)
DRTSourceSequenceWrapper & operator=(const DRTSourceSequenceWrapper &toCopy)
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.
std::vector< DcmDRTSourceSequenceInterface::Item > getSequence() const
Return the DRTSourceSequence this interface class provides access to.
Class to provide access to DRTSourceSequence.