MeVisLab Toolbox Reference
mlDRTIonBlockSequenceItemWrapper.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 __mlDRTIonBlockSequenceItemWrapper_H
26#define __mlDRTIonBlockSequenceItemWrapper_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 DRTIonBlockSequenceItemWrapper : 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
79 ml::DcmDRTIonBlockSequenceInterface* getSequence() const { return _sequenceInterface; }
80
81
83 Q_PROPERTY(QString AccessoryCode READ getAccessoryCode WRITE setAccessoryCode)
84 QString _BlockData;
85 Q_PROPERTY(QString BlockData READ getBlockData WRITE setBlockData)
90 QString _BlockName;
91 Q_PROPERTY(QString BlockName READ getBlockName WRITE setBlockName)
92 QString _BlockNumber;
93 Q_PROPERTY(QString BlockNumber READ getBlockNumber WRITE setBlockNumber)
97 Q_PROPERTY(QString BlockThickness READ getBlockThickness WRITE setBlockThickness)
98 QString _BlockTrayID;
99 Q_PROPERTY(QString BlockTrayID READ getBlockTrayID WRITE setBlockTrayID)
100 QString _BlockType;
101 Q_PROPERTY(QString BlockType READ getBlockType WRITE setBlockType)
104 QString _MaterialID;
105 Q_PROPERTY(QString MaterialID READ getMaterialID WRITE setMaterialID)
106
107
108
109public slots:
112
113 QStringList dir(QString searchString="") const;
114
115 QVariantMap getDicomTagByKey(QString key) const;
116 QVariantMap getDicomTagByName(QString name) const;
117 QVariant getDicomTagValueByKey(QString key) const;
118 QVariant getDicomTagValueByName(QString name) const;
119
120
121 bool setAccessoryCode(QString qParam);
122 QString getAccessoryCodeTag() const;
123 QString getAccessoryCode() const;
124
125 bool setBlockData(QString qParam);
126 QString getBlockDataTag() const;
127 QString getBlockData() const;
128
129 bool setBlockDivergence(QString qParam);
130 QString getBlockDivergenceTag() const;
131 QString getBlockDivergence() const;
132
133 bool setBlockMountingPosition(QString qParam);
136
137 bool setBlockName(QString qParam);
138 QString getBlockNameTag() const;
139 QString getBlockName() const;
140
141 bool setBlockNumber(QString qParam);
142 QString getBlockNumberTag() const;
143 QString getBlockNumber() const;
144
145 bool setBlockNumberOfPoints(QString qParam);
147 QString getBlockNumberOfPoints() const;
148
149 bool setBlockThickness(QString qParam);
150 QString getBlockThicknessTag() const;
151 QString getBlockThickness() const;
152
153 bool setBlockTrayID(QString qParam);
154 QString getBlockTrayIDTag() const;
155 QString getBlockTrayID() const;
156
157 bool setBlockType(QString qParam);
158 QString getBlockTypeTag() const;
159 QString getBlockType() const;
160
164
165 bool setMaterialID(QString qParam);
166 QString getMaterialIDTag() const;
167 QString getMaterialID() const;
168
169
170
172
173private:
174
175 ml::DcmDRTIonBlockSequenceInterface::Item _wrappedSequenceItem;
176 ml::DcmDRTIonBlockSequenceInterface* _sequenceInterface;
177
178 QMap<QString, QString> _dcmTagToPropertyMap;
179 QMap<QString, QString> _vrCode;
180 void _init();
181};
182
183
184#endif // __mlDRTIonBlockSequenceItemWrapper_H
A class that wraps DRTIonBlockSequence Item for use in Python.
QVariant getDicomTagValueByKey(QString key) const
bool setMaterialID(QString qParam)
QString getBlockNumberOfPointsTag() const
bool setIsocenterToBlockTrayDistance(float qParam)
bool setBlockName(QString qParam)
QVariant getDicomTagValueByName(QString name) const
QString getAccessoryCodeTag() const
DRTIonBlockSequenceItemWrapper & operator=(const DRTIonBlockSequenceItemWrapper &toCopy)
QString getBlockDivergence() const
QString getBlockThicknessTag() const
QString getBlockNumberTag() const
QString getBlockNumberOfPoints() const
QString getAccessoryCode() const
bool setBlockNumber(QString qParam)
QString getBlockDivergenceTag() const
bool setBlockTrayID(QString qParam)
QString getBlockMountingPosition() const
ml::DcmDRTIonBlockSequenceInterface * getSequence() const
float getIsocenterToBlockTrayDistance() const
QVariantMap getDicomTagByKey(QString key) const
QString getIsocenterToBlockTrayDistanceTag() const
QString getBlockThickness() const
QVariantMap getDicomTagByName(QString name) const
bool setBlockMountingPosition(QString qParam)
QString getBlockTrayIDTag() const
bool setBlockDivergence(QString qParam)
QString getBlockMountingPositionTag() const
ml::DcmDRTIonBlockSequenceInterface::Item getWrappedSequenceItem() const
QStringList dir(QString searchString="") const
bool setAccessoryCode(QString qParam)
bool setBlockType(QString qParam)
DRTIonBlockSequenceItemWrapper(const ml::DcmDRTIonBlockSequenceInterface::Item &wrappedSequenceItem, ml::DcmDRTIonBlockSequenceInterface *sequenceInterface)
DRTIonBlockSequenceItemWrapper(const DRTIonBlockSequenceItemWrapper &toCopy)
bool setBlockThickness(QString qParam)
bool setBlockNumberOfPoints(QString qParam)
QString getMaterialIDTag() const
bool setBlockData(QString qParam)
Class to provide access to DRTIonBlockSequence.
Class to provide access to DRTIonBlockSequence.
Main documentation file for ML users and developers.
Definition SoSFMLImage.h:51