MeVisLab Toolbox Reference
mlDicomTreeCompare.h
Go to the documentation of this file.
1// Copyright (c) Fraunhofer MEVIS, Germany. All rights reserved.
2// **InsertLicense** code
3//----------------------------------------------------------------------------------
6
11//----------------------------------------------------------------------------------
12#pragma once
13
15#include <mlModuleIncludes.h>
16#include <DCMTree_Tree.h>
17
19
20//----------------------------------------------------------------------------------
23//----------------------------------------------------------------------------------
25public:
26
29
31 void activateAttachments() override;
32
35
36protected:
37
40
43 std::string _getDifferenceDescription(const std::string &givenString,
44 const std::string &expectedString);
45
60
63
64private:
65
68
69 // INPUT CONNECTIONS:
71 EnumField *_inputSelectorFld[2];
72
75 BaseField *_inputBaseFld[2];
76
78 IntField *_inputVolumeIndexFld[2];
79
81 IntField *_numVolumesFld[2];
82
84 StringField *_inputFilePathFld[2];
85
86
87 // COMPARSION SETTINGS:
90 StringField *_expectedChangesFld;
91
95 StringField *_excludeFromChangesFld;
96
102 BoolField *_postErrorIfDifferenceIsFoundFld;
103
107 StringField *_errorPostPrefixFld;
108
111 BoolField *_alsoCompareNumTagValuesFld;
112
115 BoolField *_compareRecursivelyFld;
116
119 BoolField *_compareMultiplicityFld;
120
123 BoolField *_compareMultiFrameDataFld;
124
126 BoolField *_decodePrivateTagsFld;
127
129 NotifyField *_setAsExpectedResultFld;
130
132 EnumField *_updateModeFld;
133
135 NotifyField *_compareFld;
136
137
138 // OUTPUT FIELD SETTINGS:
142 IntField *_tagDumpSizeFld;
143
145 BoolField *_removeIgnoreIdsInAddedTagsFld;
146
150 BoolField *_cleanupEmptyTreesInAddedTagsFld;
151
153 BoolField *_removeIgnoreIdsInRemovedTagsFld;
154
158 BoolField *_cleanupEmptyTreesInRemovedTagsFld;
159
160 // OUTPUT FIELDS:
162 StringField *_input1DumpFld;
163
165 StringField *_input2DumpFld;
166
168 StringField *_unchangedFld;
169
171 StringField *_addedFld;
172
174 StringField *_removedFld;
175
177 StringField *_changedFld;
178
180 StringField *_allChangesFld;
181
184 BoolField *_testPassedFld;
185
187 BoolField *_clearDICOMCachesBeforeCompareFld;
188
190 NotifyField *_clearDICOMCachesFld;
191
193
196};
197
Project global and OS specific declarations.
#define ML_DICOM_ANALYSIS_EXPORT
DLL export macro definition.
Field to encapsulate a pointer to an ML base object.
Definition mlFields.h:797
Field to encapsulate a boolean value.
Definition mlFields.h:58
ML module class to compare two DCMTrees, to display the differences and to post errors if the differe...
void _resetResultFields()
Reset result fields to default state.
std::string _updateResultFields(DCMTree::Const_TreePtr input1Tags, DCMTree::Const_TreePtr input2Tags, DCMTree::TreePtr unchangedTags, DCMTree::TreePtr addedTags, DCMTree::TreePtr removedTags, DCMTree::TreePtr changedTags)
Update the result fields according to the current comparison results and display settings.
void activateAttachments() override
Handles changes which were applied without notifications.
void _compare(DCMTree::Const_TreePtr inTree1, DCMTree::Const_TreePtr inTree2)
Compare inTree1 and inTree2 and update the result fields.
void handleNotification(Field *field) override
Handles field changes.
DicomTreeCompare()
Constructor.
std::string _getDifferenceDescription(const std::string &givenString, const std::string &expectedString)
Compares givenString with expectedString and returns "" on equality, otherwise it returns a descripti...
Field to encapsulate an enumerated value.
Definition mlFields.h:195
Base class for all fields used in the ML.
Definition mlField.h:73
Field to encapsulate an integer value.
Definition mlFields.h:126
Base class for an image processing module of the ML.
Definition mlModule.h:151
Field without value for notifications.
Definition mlFields.h:659
Field to encapsulate a string value.
Definition mlFields.h:610
#define ML_MODULE_CLASS_HEADER(className)
Like ML_CLASS_HEADER for the usage of derived classes from Module.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
boost::shared_ptr< const Tree > Const_TreePtr
Definition DCMTree_Lib.h:73
boost::shared_ptr< Tree > TreePtr
shared pointer to a DCMTree::Tree
Definition DCMTree_Lib.h:72