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 IntField *_numShownBinaryEntriesFld;
146
148 BoolField *_removeIgnoreIdsInAddedTagsFld;
149
153 BoolField *_cleanupEmptyTreesInAddedTagsFld;
154
156 BoolField *_removeIgnoreIdsInRemovedTagsFld;
157
161 BoolField *_cleanupEmptyTreesInRemovedTagsFld;
162
163 // OUTPUT FIELDS:
165 StringField *_input1DumpFld;
166
168 StringField *_input2DumpFld;
169
171 StringField *_unchangedFld;
172
174 StringField *_addedFld;
175
177 StringField *_removedFld;
178
180 StringField *_changedFld;
181
183 StringField *_allChangesFld;
184
187 BoolField *_testPassedFld;
188
190 BoolField *_clearDICOMCachesBeforeCompareFld;
191
193 NotifyField *_clearDICOMCachesFld;
194
196
199};
200
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:729
Field to encapsulate a boolean value.
Definition mlFields.h:56
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:173
Base class for all fields used in the ML.
Definition mlField.h:73
Field to encapsulate an integer value.
Definition mlFields.h:117
Base class for an image processing module of the ML.
Definition mlModule.h:151
Field without value for notifications.
Definition mlFields.h:598
Field to encapsulate a string value.
Definition mlFields.h:553
#define ML_MODULE_CLASS_HEADER(className)
Similar to 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:67
boost::shared_ptr< Tree > TreePtr
Shared pointer to a DCMTree::Tree.
Definition DCMTree_Lib.h:66