MeVisLab Toolbox Reference
mlDRTCompensatorSequenceWrapper.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 __mlDRTCompensatorSequenceWrapper_H
26 #define __mlDRTCompensatorSequenceWrapper_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 DRTCompensatorSequenceWrapper : public QObject
46 {
47  Q_OBJECT
48 
49 public:
50 
51  DRTCompensatorSequenceWrapper(ML_NAMESPACE::DcmDRTCompensatorSequenceInterface* 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::DcmDRTCompensatorSequenceInterface getWrappedSequence() const { return _wrappedSequence; }
68 
69 
70  QString getAccessoryCodeTag() const { return QString(_wrappedSequence.getAccessoryCodeTag().c_str()); }
71 
72  QString getCompensatorColumnsTag() const { return QString(_wrappedSequence.getCompensatorColumnsTag().c_str()); }
73 
74  QString getCompensatorDivergenceTag() const { return QString(_wrappedSequence.getCompensatorDivergenceTag().c_str()); }
75 
76  QString getCompensatorIDTag() const { return QString(_wrappedSequence.getCompensatorIDTag().c_str()); }
77 
78  QString getCompensatorMountingPositionTag() const { return QString(_wrappedSequence.getCompensatorMountingPositionTag().c_str()); }
79 
80  QString getCompensatorNumberTag() const { return QString(_wrappedSequence.getCompensatorNumberTag().c_str()); }
81 
82  QString getCompensatorPixelSpacingTag() const { return QString(_wrappedSequence.getCompensatorPixelSpacingTag().c_str()); }
83 
84  QString getCompensatorPositionTag() const { return QString(_wrappedSequence.getCompensatorPositionTag().c_str()); }
85 
86  QString getCompensatorRowsTag() const { return QString(_wrappedSequence.getCompensatorRowsTag().c_str()); }
87 
88  QString getCompensatorThicknessDataTag() const { return QString(_wrappedSequence.getCompensatorThicknessDataTag().c_str()); }
89 
90  QString getCompensatorTransmissionDataTag() const { return QString(_wrappedSequence.getCompensatorTransmissionDataTag().c_str()); }
91 
92  QString getCompensatorTypeTag() const { return QString(_wrappedSequence.getCompensatorTypeTag().c_str()); }
93 
94  QString getMaterialIDTag() const { return QString(_wrappedSequence.getMaterialIDTag().c_str()); }
95 
96  QString getSourceToCompensatorDistanceTag() const { return QString(_wrappedSequence.getSourceToCompensatorDistanceTag().c_str()); }
97 
98  QString getSourceToCompensatorTrayDistanceTag() const { return QString(_wrappedSequence.getSourceToCompensatorTrayDistanceTag().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:
117 };
118 
119 
120 #endif // __mlDRTCompensatorSequenceWrapper_H
A class that wraps DRTCompensatorSequence Item for use in Python.
DRTCompensatorSequenceWrapper & operator=(const DRTCompensatorSequenceWrapper &toCopy)
DRTCompensatorSequenceWrapper(const DRTCompensatorSequenceWrapper &toCopy)
ml::DcmDRTCompensatorSequenceInterface getWrappedSequence() const
DRTCompensatorSequenceWrapper(ml::DcmDRTCompensatorSequenceInterface *wrappedSequence)
Class to provide access to DRTCompensatorSequence.
std::vector< DcmDRTCompensatorSequenceInterface::Item > getSequence() const
Return the DRTCompensatorSequence this interface class provides access to.
void setSequence(std::vector< DcmDRTCompensatorSequenceInterface::Item > dcmSequence)
Set the DRTCompensatorSequence this interface class provides access to.
Class to provide access to DRTCompensatorSequence.