MeVisLab Toolbox Reference
mlDRTIonBlockSequenceWrapper.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 __mlDRTIonBlockSequenceWrapper_H
26 #define __mlDRTIonBlockSequenceWrapper_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 DRTIonBlockSequenceWrapper : public QObject
46 {
47  Q_OBJECT
48 
49 public:
50 
51  DRTIonBlockSequenceWrapper(ML_NAMESPACE::DcmDRTIonBlockSequenceInterface* 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::DcmDRTIonBlockSequenceInterface getWrappedSequence() const { return _wrappedSequence; }
68 
69 
70  QString getAccessoryCodeTag() const { return QString(_wrappedSequence.getAccessoryCodeTag().c_str()); }
71 
72  QString getBlockDataTag() const { return QString(_wrappedSequence.getBlockDataTag().c_str()); }
73 
74  QString getBlockDivergenceTag() const { return QString(_wrappedSequence.getBlockDivergenceTag().c_str()); }
75 
76  QString getBlockMountingPositionTag() const { return QString(_wrappedSequence.getBlockMountingPositionTag().c_str()); }
77 
78  QString getBlockNameTag() const { return QString(_wrappedSequence.getBlockNameTag().c_str()); }
79 
80  QString getBlockNumberTag() const { return QString(_wrappedSequence.getBlockNumberTag().c_str()); }
81 
82  QString getBlockNumberOfPointsTag() const { return QString(_wrappedSequence.getBlockNumberOfPointsTag().c_str()); }
83 
84  QString getBlockThicknessTag() const { return QString(_wrappedSequence.getBlockThicknessTag().c_str()); }
85 
86  QString getBlockTrayIDTag() const { return QString(_wrappedSequence.getBlockTrayIDTag().c_str()); }
87 
88  QString getBlockTypeTag() const { return QString(_wrappedSequence.getBlockTypeTag().c_str()); }
89 
90  QString getIsocenterToBlockTrayDistanceTag() const { return QString(_wrappedSequence.getIsocenterToBlockTrayDistanceTag().c_str()); }
91 
92  QString getMaterialIDTag() const { return QString(_wrappedSequence.getMaterialIDTag().c_str()); }
93 
94 
95 
96 
97 public slots:
100 
101  int getNumberOfItems() const;
102  QVariant getItem(int idx);
103  QVariant addItem();
104  bool insertItem(int idx);
105  bool removeItem(int idx);
106 
108 
109 private:
110  ml::DcmDRTIonBlockSequenceInterface _wrappedSequence;
111 };
112 
113 
114 #endif // __mlDRTIonBlockSequenceWrapper_H
A class that wraps DRTIonBlockSequence Item for use in Python.
DRTIonBlockSequenceWrapper(const DRTIonBlockSequenceWrapper &toCopy)
QVariant getItem(int idx)
DRTIonBlockSequenceWrapper & operator=(const DRTIonBlockSequenceWrapper &toCopy)
ml::DcmDRTIonBlockSequenceInterface getWrappedSequence() const
DRTIonBlockSequenceWrapper(ml::DcmDRTIonBlockSequenceInterface *wrappedSequence)
Class to provide access to DRTIonBlockSequence.
void setSequence(std::vector< DcmDRTIonBlockSequenceInterface::Item > dcmSequence)
Set the DRTIonBlockSequence this interface class provides access to.
std::vector< DcmDRTIonBlockSequenceInterface::Item > getSequence() const
Return the DRTIonBlockSequence this interface class provides access to.
Class to provide access to DRTIonBlockSequence.