MeVisLab Toolbox Reference
Loading...
Searching...
No Matches
mlDicomREGSave.h
Go to the documentation of this file.
1// Copyright (c) Fraunhofer MEVIS, Germany. All rights reserved.
2// **InsertLicense** code
3//----------------------------------------------------------------------------------
5
23//----------------------------------------------------------------------------------
24#pragma once
25
26// Local includes
28
29#include <mlModuleIncludes.h>
30#include <mlDicomSaveBase.h>
38
41
45
46// DICOM tree etc.
47#include <DCMTree_Tree.h>
48
50
51//----------------------------------------------------------------------------------
52// See above.
53//----------------------------------------------------------------------------------
55{
56public:
57
60
61protected:
62
65
68
71 std::string _checkConsistency() const override;
72
75
78 void _updateInputState() override;
79
82
85 std::string _setUpTreeContent() override;
86
89 EnumField *_registrationTypeToExportFld = nullptr;
90
91 // Mandatory:
94
95 // Mandatory:
98
99 // Mandatory:
104
105 // Mandatory:
108
109 // Mandatory:
112
113 // Mandatory:
118
119 // Mandatory:
122
123 // Mandatory:
126
127 // Mandatory (or if not available, then A.39.2.3 Deformable Spatial Registration IOD Module Table​ above must be
128 // implemented for deformable spatial registration):
132 // IMPORTANT: This member must be listed BEFORE _deformableSpatialRegistrationModule, because later we rely
133 // on initialization order!
135
136 // Mandatory (or if not available, then A.39.1.3 Spatial Registration IOD Module Table​ above must be
137 // implemented for spatial registration):
142
143 // Mandatory:
146
147 // Mandatory:
150
151 // Mandatory:
154
155 // Mandatory:
158};
159
Project global and OS specific declarations.
#define MLDICOMOUTPUTS_EXPORT
DLL export macro definition.
Manages the module field interface according to Common Instance Reference Module in DICOM Part 3.
Manages the module field interface according to DICOM ContentDate and ContentTime tags.
Manages the module field interface according to DICOM Content Identification macro,...
Manages the module field interface according to DICOM Deformable Spatial Registration C....
Manages the module field interface for the DICOM Frame Of Reference Module.
Manages the module field interface according to DICOM General Equipment, C.7.5.1.
Manages the module field interface according to DICOM General Series, C.7.3.1.
Manages the module field interface according to DICOM General Study, C.7.1.3.
Manages the module field interface according to DICOM Patient Module, C.7.1.1.
DicomSpatialRegistrationModuleTagInterface _spatialRegistrationModule
Spatial Registration Module C.20.2, without ContentDate, ContentTime, and ContentIdentificationMacro,...
DicomREGSave()
Constructor.
void _updateInputState() override
Overwrites base class and sets up additional stuff in _commonInstanceReferenceModuleTags and _deforma...
DicomGeneralStudyModuleTagInterface _generalStudyTags
General Study tags, C.7.2.1, mandatory for A.39.2.3 Deformable Spatial Registration IOD Module.
std::string _checkConsistency() const override
Checks for invalid parameters and return a textual description of the error if there is any,...
DicomPatientModuleTagInterface _patientTags
Patient information tags, C.7.1.1., mandatory for A.39.2.3 Deformable Spatial Registration IOD Module...
ML_MODULE_CLASS_HEADER(DicomREGSave)
Implements interface for the runtime type system of the ML.
DicomContentIdentificationMacroTagInterface _contentIdentificationMacro
Content Identification macro, 10.9 (needed as mandatory part of [Deformable] Spatial Registration Mod...
DicomFrameOfReferenceModuleTagInterface _frameOfReferenceTags
C.20.1 Spatial Registration Series Module​ (only the Modality (0008,0060) tag which is not handled wi...
void handleNotification(Field *field) override
Handles field changes of the field field.
DicomContentDateTimeTagInterface _contentDateTimeTags
ContentDate and ContentTime tags (needed as mandatory part of [Deformable] Spatial Registration Modul...
DicomGeneralSeriesModuleTagInterface _generalSeriesTags
General Series tags, C.7.3.1, mandatory for A.39.2.3 Deformable Spatial Registration IOD Module.
void _removeUndesiredInputTags(DCMTree::TreePtr resultTree) const
Remove tags from tree which could disturb the correct interpretation of the written DICOM file.
void _inheritFieldValuesFromDCMTree(DCMTree::Const_TreePtr dcmTree) override
Overloads base class field inheritance and adds the additional tags needed by this class.
bool _doSpatialRegistration() const
Returns true if Spatial Registration shall be exported, otherwise false i.e. if Deformable Spatial Re...
DicomCommonInstanceReferenceModuleTagInterface _commonInstanceReferenceModuleTags
Common Instance Reference, C.12.2, mandatory for A.39.1.3 Spatial Registration IOD Module and A....
DicomDeformableSpatialRegistrationModuleTagInterface _deformableSpatialRegistrationModule
Deformable Spatial Registration Module C.20.3, without ContentDate, ContentTime, and ContentIdentific...
std::string _setUpTreeContent() override
Set the REG DICOM tags in the tree.
DicomReferencedImageSequenceTagInterface _referencedImageSequence
ReferencedImageSequence according to Spatial Registration Module C.20.2 and Deformable Spatial Regist...
DicomGeneralEquipmentModuleTagInterface _generalAndEnhancedGeneralEquipmentTags
General Equipment tags, C.7.5.1, and C.2.2, Enhanced General Equipment, C.5.2, both mandatory for A....
DicomSOPCommonModuleTagInterface _sopCommonModuleTags
SOP Common C.12.1, mandatory for A.39.1.3 Spatial Registration IOD Module and A.39....
Manages the module field interface according to Common Instance Reference Module in DICOM Part 3.
Manages the module field interface according to SOP Common Module shown in DICOM Table 12-1.
Manages the module field interface according to DICOM Spatial Registration C.20.2 without ContentDate...
Field to encapsulate an enumerated value.
Definition mlFields.h:185
Base class for all fields used in the ML.
Definition mlField.h:73
Header file for the tag interface which manages the Common Instance Reference Module in DICOM Part 3.
Header file for the ML module base class DicomContentDateTimeTagInterface.
Header file for the ML module base class DicomContentIdentificationMacroTagInterface.
Header file for the ML module base class DicomDeformableSpatialRegistrationModuleTagInterface.
Header file for the tag interface for the Frame Of Reference Module, C.7-6.
Header file for the ML module base class DicomGeneralEquipmentModuleTagInterface.
Header file for the ML module base class DicomGeneralSeriesModuleTagInterface.
Header file for the ML module base class DicomGeneralStudyModuleTagInterface.
Header file for the ML module base class DicomPatientModuleTagInterface.
Header file for the tag interface which manages the Referenced Image Sequence in DICOM Part 3.
Header file for the tag interface for the SOP Common Module shown as in DICOM Table 12-1.
Header file for the ML module base class DicomSaveBase.
Header file for the ML module base class DicomSpatialRegistrationModuleTagInterface.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
boost::shared_ptr< const Tree > Const_TreePtr
Definition DCMTree_Lib.h:68
boost::shared_ptr< Tree > TreePtr
Shared pointer to a DCMTree::Tree.
Definition DCMTree_Lib.h:67