MeVisLab Toolbox Reference
mlDRTRelatedRTROIObservationsSequenceItemWrapper.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 __mlDRTRelatedRTROIObservationsSequenceItemWrapper_H
26 #define __mlDRTRelatedRTROIObservationsSequenceItemWrapper_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 
42 
43 #endif
44 
48 {
49  Q_OBJECT
50 
51 public:
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 
79  ml::DcmDRTRelatedRTROIObservationsSequenceInterface* getSequence() const { return _sequenceInterface; }
80 
81 
83  Q_PROPERTY(QString ObservationNumber READ getObservationNumber WRITE setObservationNumber)
84 
85 
86 
87 public slots:
90 
91  QStringList dir(QString searchString="") const;
92 
93  QVariantMap getDicomTagByKey(QString key) const;
94  QVariantMap getDicomTagByName(QString name) const;
95  QVariant getDicomTagValueByKey(QString key) const;
96  QVariant getDicomTagValueByName(QString name) const;
97 
98 
99  bool setObservationNumber(QString qParam);
100  QString getObservationNumberTag() const;
101  QString getObservationNumber() const;
102 
103 
104 
106 
107 private:
108 
111 
112  QMap<QString, QString> _dcmTagToPropertyMap;
113  QMap<QString, QString> _vrCode;
114  void _init();
115 };
116 
117 
118 #endif // __mlDRTRelatedRTROIObservationsSequenceItemWrapper_H
A class that wraps DRTRelatedRTROIObservationsSequence Item for use in Python.
DRTRelatedRTROIObservationsSequenceItemWrapper & operator=(const DRTRelatedRTROIObservationsSequenceItemWrapper &toCopy)
QVariant getDicomTagValueByName(QString name) const
QVariantMap getDicomTagByKey(QString key) const
QVariantMap getDicomTagByName(QString name) const
ml::DcmDRTRelatedRTROIObservationsSequenceInterface * getSequence() const
DRTRelatedRTROIObservationsSequenceItemWrapper(const DRTRelatedRTROIObservationsSequenceItemWrapper &toCopy)
ml::DcmDRTRelatedRTROIObservationsSequenceInterface::Item getWrappedSequenceItem() const
QVariant getDicomTagValueByKey(QString key) const
DRTRelatedRTROIObservationsSequenceItemWrapper(const ml::DcmDRTRelatedRTROIObservationsSequenceInterface::Item &wrappedSequenceItem, ml::DcmDRTRelatedRTROIObservationsSequenceInterface *sequenceInterface)
QStringList dir(QString searchString="") const
Class to provide access to DRTRelatedRTROIObservationsSequence.
Class to provide access to DRTRelatedRTROIObservationsSequence.