MeVisLab Toolbox Reference
mlDicomTreeValidate.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 
20 
21 ML_START_NAMESPACE
22 
23 //----------------------------------------------------------------------------------
26 //----------------------------------------------------------------------------------
28 public:
29 
32 
34  void activateAttachments() override;
35 
37  void handleNotification(Field *field) override;
38 
39 protected:
42 
45 
46 private:
47 
50 
52  TreeAndVolumeInputFieldAddOn _dcmTreeInputFieldAddOn;
53 
54 
55  // SETTINGS mirror from DefaultValidator as fields:
57  BaseField *_inputValidatorsBaseFld;
58 
60  BoolField *_valueSizeCheckFld;
61 
65  BoolField *_valueMultiplicityCheckFld;
66 
68  BoolField *_valueRepresentationCheckFld;
69 
72  BoolField *_typeOneCheckFld;
73 
77  BoolField *_checkCommonSettingsFld;
78 
81  BoolField *_warnUnknownEnumeratorItemsFld;
82 
84  BoolField *_emptyTreeIsErrorFld;
85 
91  BoolField *_postMessagesOnIssuesFld;
92 
96  StringField *_warningPostPrefixFld;
97 
101  StringField *_errorPostPrefixFld;
102 
104  EnumField *_updateModeFld;
105 
107  NotifyField *_validateFld;
108 
109  // OUTPUTS FIELDS:
111  StringField *_validationReportFld;
112 
114  BoolField *_validationOkFld;
115 
117  BoolField *_hasWarningsFld;
118 
120 
123 };
124 
125 ML_END_NAMESPACE
Project global and OS specific declarations.
#define ML_DICOM_ANALYSIS_WORK_EXPORT
DLL export macro definition.
Field to encapsulate a pointer to an ML base object.
Definition: mlFields.h:1187
Field to encapsulate a boolean value.
Definition: mlFields.h:62
ML module class to validate DCMTree and to display the validation result, and optionally to post erro...
DicomTreeValidate()
Constructor.
void _validate(DCMTree::Const_TreePtr dcmTree)
Validate dcmTree and update result fields.
void handleNotification(Field *field) override
Handles field changes.
void activateAttachments() override
Handles changes which were applied without notifications.
void _resetResultFields()
Reset result fields to default state.
Field to encapsulate an enumerated value.
Definition: mlFields.h:363
Base class for all fields used in the ML.
Definition: mlField.h:73
Base class for an image processing module of the ML.
Definition: mlModule.h:156
Field without value for notifications.
Definition: mlFields.h:1049
Field to encapsulate a string value.
Definition: mlFields.h:1000
Class implementing a FieldAddOn managing fields and functionality for a multi- purpose input connecto...
#define ML_MODULE_CLASS_HEADER(className)
Like ML_CLASS_HEADER for the usage of derived classes from Module.
Header file of a FieldAddOn managing fields and functionality for a multi- purpose input connector fo...
boost::shared_ptr< const Tree > Const_TreePtr
Definition: DCMTree_Lib.h:73