MeVisLab Toolbox Reference
mlDRTContourSequenceWrapper.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 __mlDRTContourSequenceWrapper_H
26#define __mlDRTContourSequenceWrapper_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#endif
42
45class DRTContourSequenceWrapper : public QObject
46{
48
49public:
50
51 DRTContourSequenceWrapper(ML_NAMESPACE::DcmDRTContourSequenceInterface* 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::DcmDRTContourSequenceInterface getWrappedSequence() const { return _wrappedSequence; }
68
69
70 QString getAttachedContoursTag() const { return QString(_wrappedSequence.getAttachedContoursTag().c_str()); }
71
72 QString getContourDataTag() const { return QString(_wrappedSequence.getContourDataTag().c_str()); }
73
74 QString getContourGeometricTypeTag() const { return QString(_wrappedSequence.getContourGeometricTypeTag().c_str()); }
75
76 QString getContourNumberTag() const { return QString(_wrappedSequence.getContourNumberTag().c_str()); }
77
78 QString getContourOffsetVectorTag() const { return QString(_wrappedSequence.getContourOffsetVectorTag().c_str()); }
79
80 QString getContourSlabThicknessTag() const { return QString(_wrappedSequence.getContourSlabThicknessTag().c_str()); }
81
82 QString getNumberOfContourPointsTag() const { return QString(_wrappedSequence.getNumberOfContourPointsTag().c_str()); }
83
84
85 QString getContourImageSequenceTag() const { return QString(_wrappedSequence.getContourImageSequenceTag().c_str()); }
86
87
88
89public slots:
92
93 int getNumberOfItems() const;
96 bool insertItem(int idx);
97 bool removeItem(int idx);
98
100
101private:
102 ml::DcmDRTContourSequenceInterface _wrappedSequence;
103};
104
105
106#endif // __mlDRTContourSequenceWrapper_H
A class that wraps DRTContourSequence Item for use in Python.
DRTContourSequenceWrapper(ml::DcmDRTContourSequenceInterface *wrappedSequence)
DRTContourSequenceWrapper & operator=(const DRTContourSequenceWrapper &toCopy)
QVariant getItem(int idx)
DRTContourSequenceWrapper(const DRTContourSequenceWrapper &toCopy)
ml::DcmDRTContourSequenceInterface getWrappedSequence() const
Class to provide access to DRTContourSequence.
void setSequence(std::vector< DcmDRTContourSequenceInterface::Item > dcmSequence)
Set the DRTContourSequence this interface class provides access to.
Class to provide access to DRTContourSequence.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.