MeVisLab Toolbox Reference
mlDicomEnhancedMRImageModuleTagInterface.h
Go to the documentation of this file.
1 // Copyright (c) Fraunhofer MEVIS, Germany. All rights reserved.
2 // **InsertLicense** code
3 //----------------------------------------------------------------------------------
5 
10 //----------------------------------------------------------------------------------
11 #pragma once
12 
17 
18 ML_START_NAMESPACE
19 
20 //----------------------------------------------------------------------------------
22 //----------------------------------------------------------------------------------
24 {
25 public:
28  enum IODMode {
29  ImageTypeforLegacyConvertedEnhancedMR = 0
30  };
31 
35 
37  void addFields() override;
38 
41 
44 
48 
49 #if 0
52  static bool hasSourceImageSequence(DCMTree::Const_TreePtr dcmTree);
53 #endif
54 
56  void inheritValues(DCMTree::Const_TreePtr dcmTree) override;
57 
62  std::string applyModifications(DCMTree::TreePtr dcmTree,
63  const FieldContainer *treeInfos=nullptr) override;
64 
67  const FieldContainer *treeInfos);
68 
72  std::string checkConsistency() const override;
73 
76 
80 
83 
87 
90 
93 
94 protected:
97 
100 
103 
109 };
110 
111 ML_END_NAMESPACE
Project global and OS specific declarations.
#define MLDICOMTAGINTERFACES_EXPORT
DLL export macro definition.
Field to encapsulate a boolean value.
Definition: mlFields.h:62
FieldAddOn class supporting inheritance and optional writing of a boolean tag value.
Provides control to copy/inherit a set of tag (values) from an input DCMTree, buffer it,...
Manages the module field interface according to DICOM Enhanced MR Image Modules C....
DicomCopyTagSetInterface otherEnhancedMRImageModuleTags
All tags not available in the interface which are from Enhanced MR image.
FieldAddOnBase::FieldChangeState handleFieldChanges(Field *field) override
Handle field notifications according to Module::activateAttachments with a return of field change sta...
std::string applyModifications(DCMTree::TreePtr dcmTree, const FieldContainer *treeInfos=nullptr) override
See DicomModifyFieldAddOnBase::applyModifications() for documentation; adds field values as tags to d...
void _addLegacyConvertedEnhancedMRImageModuleSpecificTags(DCMTree::TreePtr dcmTree, const FieldContainer *treeInfos)
Add tags of the Legacy Converted Enhanced MR Image Module, C.8.13.1.
DicomEnhancedMRImageModuleTagInterface(Module &modRef, IODMode iodMode)
Constructor, setting the reference of the module for which the fields shall be managed; iodMode defin...
DCMTree::TreePtr _referencedImageEvidenceSequenceTree
Stores the pointer to some contents of ReferencedImageSequences inherited from dcmTree.
DicomCopyTagSetInterface otherImagePixelDescriptionMacroAttributesTags
Subset from otherEnhancedMRImageModuleTags not handled there and which shall be configured independen...
static bool hasReferencedImageSequence(DCMTree::Const_TreePtr dcmTree)
Small helper returning true if dcmTree has a top-level tag DCMTree_ReferencedImageSequence tag or one...
void addFields() override
Add fields to field container of module.
IODMode
Defined the mode how the up to four values are configured and filled with values on construction time...
DicomBoolInheritAndWriteTagInterface recognizableVisualFeaturesAddOn
Manages recognizableVisualFeatures tag.
std::string checkConsistency() const override
Checks for invalid parameters; return textual description on error, or empty string on success; requi...
DCMTree::TreePtr _sourceImageEvidenceSequenceTree
Stores the pointer to some contents of SourceImageSequences inherited from dcmTree.
void handleFieldActivationChanges() override
Handle class changes according to Module::activateAttachments.
void inheritValues(DCMTree::Const_TreePtr dcmTree) override
Implements the copy of tag values from the given dcmTree to the fields.
BoolField * _alwaysWritePresentationLUTShapeFld
Convenience flag to enable writing of PresentationLUTShape tag even if not needed to satisfy some IOD...
DicomCopyTagSetInterface otherMRImageModuleTags
All tags not available in the interface which are from MR Image Module mostly must be moved into Unas...
DicomCopyTagSetInterface otherEnhancedImageAndSpectroscopyMacroTags
All tags not available in the interface which are from Enhanced Image And Spectroscopy Macro.
const IODMode _iodMode
Selects the configuration for the internal fields and possible values.
DicomBoolInheritAndWriteTagInterface burnedInAnnotationAddOn
Manages burnedInAnnotation tag.
The class DicomModifyFieldAddOnBase is dedicated to manage fields for ML modules and instances derive...
FieldChangeState
Describes the type of a field changes detected in handleFieldChanges(Field *field).
Defines the class FieldContainer to encapsulate a vector of fields for (see class Field).
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
Header file for the FieldAddOn supporting inheritance and auto creating tag values (for example DICOM...
Header file for the ML module base class DicomCopyTagSetInterface which provides control to copy/inhe...
Header file of the DicomModifyFieldAddOnBase class dedicated to manage fields for ML modules and inst...
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:70