MeVisLab Toolbox Reference
mlDRTSourceSequenceItemWrapper.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/DcmSequenceItemWrapper.h
10//
11// Destination project:
12// FMEwork/ReleaseMeVis/Sources/Wrappers/MLDcmtkIODWrappers/DcmSequenceInterfaces/Items
13//
14//----------------------------------------------------------------------------------
16
22//----------------------------------------------------------------------------------
23
24
25#ifndef __mlDRTSourceSequenceItemWrapper_H
26#define __mlDRTSourceSequenceItemWrapper_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
42
43#endif
44
47class DRTSourceSequenceItemWrapper : public QObject
48{
49 Q_OBJECT
50
51public:
52
53 QStringList _propertyKeys;
54
56 : _wrappedSequenceItem(wrappedSequenceItem)
57 , _sequenceInterface(sequenceInterface)
58 {
59 _init();
60 }
61
63 : QObject()
64 {
65 _wrappedSequenceItem = toCopy.getWrappedSequenceItem();
66 _sequenceInterface = toCopy.getSequence();
67 _init();
68 }
69
71 {
72 _wrappedSequenceItem = toCopy.getWrappedSequenceItem();
73 _sequenceInterface = toCopy.getSequence();
74 _init();
75 return *this;
76 }
77
78 ml::DcmDRTSourceSequenceInterface::Item getWrappedSequenceItem() const { return _wrappedSequenceItem; }
79 ml::DcmDRTSourceSequenceInterface* getSequence() const { return _sequenceInterface; }
80
81
86 QString _MaterialID;
87 Q_PROPERTY(QString MaterialID READ getMaterialID WRITE setMaterialID)
101 Q_PROPERTY(QString SourceNumber READ getSourceNumber WRITE setSourceNumber)
110 QString _SourceType;
111 Q_PROPERTY(QString SourceType READ getSourceType WRITE setSourceType)
112
113
114
115public slots:
118
119 QStringList dir(QString searchString="") const;
120
121 QVariantMap getDicomTagByKey(QString key) const;
122 QVariantMap getDicomTagByName(QString name) const;
123 QVariant getDicomTagValueByKey(QString key) const;
124 QVariant getDicomTagValueByName(QString name) const;
125
126
127 bool setActiveSourceDiameter(QString qParam);
129 QString getActiveSourceDiameter() const;
130
131 bool setActiveSourceLength(QString qParam);
133 QString getActiveSourceLength() const;
134
135 bool setMaterialID(QString qParam);
136 QString getMaterialIDTag() const;
137 QString getMaterialID() const;
138
139 bool setReferenceAirKermaRate(QString qParam);
142
146
150
151 bool setSourceIsotopeHalfLife(QString qParam);
154
155 bool setSourceIsotopeName(QString qParam);
156 QString getSourceIsotopeNameTag() const;
157 QString getSourceIsotopeName() const;
158
159 bool setSourceManufacturer(QString qParam);
161 QString getSourceManufacturer() const;
162
163 bool setSourceNumber(QString qParam);
164 QString getSourceNumberTag() const;
165 QString getSourceNumber() const;
166
167 bool setSourceStrength(QString qParam);
168 QString getSourceStrengthTag() const;
169 QString getSourceStrength() const;
170
171 bool setSourceStrengthReferenceDate(QString qParam);
174
175 bool setSourceStrengthReferenceTime(QString qParam);
178
179 bool setSourceStrengthUnits(QString qParam);
181 QString getSourceStrengthUnits() const;
182
183 bool setSourceType(QString qParam);
184 QString getSourceTypeTag() const;
185 QString getSourceType() const;
186
187
188
190
191private:
192
193 ml::DcmDRTSourceSequenceInterface::Item _wrappedSequenceItem;
194 ml::DcmDRTSourceSequenceInterface* _sequenceInterface;
195
196 QMap<QString, QString> _dcmTagToPropertyMap;
197 QMap<QString, QString> _vrCode;
198 void _init();
199};
200
201
202#endif // __mlDRTSourceSequenceItemWrapper_H
A class that wraps DRTSourceSequence Item for use in Python.
QString getSourceNumber() const
bool setSourceEncapsulationNominalThickness(QString qParam)
QString getSourceStrengthReferenceTimeTag() const
QString getReferenceAirKermaRateTag() const
QString getSourceStrengthUnits() const
QString getSourceEncapsulationNominalThicknessTag() const
ml::DcmDRTSourceSequenceInterface::Item getWrappedSequenceItem() const
bool setSourceStrengthReferenceDate(QString qParam)
bool setSourceStrengthReferenceTime(QString qParam)
QString getActiveSourceDiameterTag() const
bool setActiveSourceDiameter(QString qParam)
QString getSourceStrength() const
QVariantMap getDicomTagByName(QString name) const
QString getSourceIsotopeName() const
bool setSourceManufacturer(QString qParam)
QString getSourceStrengthTag() const
bool setActiveSourceLength(QString qParam)
QString getSourceIsotopeHalfLife() const
QString getSourceManufacturerTag() const
QString getMaterialID() const
QString getActiveSourceLengthTag() const
QStringList dir(QString searchString="") const
bool setSourceType(QString qParam)
bool setSourceIsotopeHalfLife(QString qParam)
QString getSourceIsotopeNameTag() const
QString getMaterialIDTag() const
DRTSourceSequenceItemWrapper(const DRTSourceSequenceItemWrapper &toCopy)
QString getSourceStrengthReferenceDateTag() const
QString getActiveSourceDiameter() const
bool setSourceIsotopeName(QString qParam)
QString getSourceStrengthReferenceDate() const
QString getReferenceAirKermaRate() const
bool setReferenceAirKermaRate(QString qParam)
QString getSourceTypeTag() const
QString getSourceStrengthReferenceTime() const
QVariantMap getDicomTagByKey(QString key) const
QString getSourceEncapsulationNominalTransmission() const
bool setSourceEncapsulationNominalTransmission(QString qParam)
QString getSourceStrengthUnitsTag() const
bool setMaterialID(QString qParam)
bool setSourceStrengthUnits(QString qParam)
QVariant getDicomTagValueByKey(QString key) const
QString getSourceNumberTag() const
ml::DcmDRTSourceSequenceInterface * getSequence() const
QString getActiveSourceLength() const
DRTSourceSequenceItemWrapper & operator=(const DRTSourceSequenceItemWrapper &toCopy)
QString getSourceManufacturer() const
QString getSourceIsotopeHalfLifeTag() const
QVariant getDicomTagValueByName(QString name) const
QString getSourceType() const
QString getSourceEncapsulationNominalThickness() const
DRTSourceSequenceItemWrapper(const ml::DcmDRTSourceSequenceInterface::Item &wrappedSequenceItem, ml::DcmDRTSourceSequenceInterface *sequenceInterface)
bool setSourceStrength(QString qParam)
QString getSourceEncapsulationNominalTransmissionTag() const
bool setSourceNumber(QString qParam)
Class to provide access to DRTSourceSequence.
Class to provide access to DRTSourceSequence.
Main documentation file for ML users and developers.
Definition SoSFMLImage.h:51