MeVisLab Toolbox Reference
mlDicomEncapsulatedDocumentModuleTagInterface.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 
18 
19 ML_START_NAMESPACE
20 
21 //----------------------------------------------------------------------------------
23 //----------------------------------------------------------------------------------
25 {
26 public:
29 
31  void addFields() override;
32 
34  void inheritValues(DCMTree::Const_TreePtr dcmTree) override;
35 
39  std::string applyModifications(DCMTree::TreePtr dcmTree,
40  const FieldContainer *treeInfos=nullptr) override;
41 
43  std::string checkConsistency() const override;
44 
48  static std::string addBinaryDocumentData(DCMTree::TreePtr dcmTree,
49  const std::string &fileName,
50  const MLint fileSize);
51 
55 
58 
61 
64 
67 
69 //StringField *_HL7IdentifierFld;
70 };
71 
72 ML_END_NAMESPACE
Project global and OS specific declarations.
#define MLDICOMTAGINTERFACES_EXPORT
DLL export macro definition.
FieldAddOn class supporting inheritance and optional writing of a boolean tag value.
Manages the module field interface according to DICOM ContentDate and ContentTime tags.
Manages the module field interface according to Encapsulated Document Module C.24....
DicomBoolInheritAndWriteTagInterface recognizableVisualFeaturesAddOn
Manages recognizableVisualFeatures tag.
void addFields() override
Add fields to field container of module.
std::string checkConsistency() const override
Checks for invalid parameters; return textual description on error, or empty string on success.
StringField * _documentTitleFld
Tag Document Title (0042,0010), Type 2.
DicomContentDateTimeTagInterface acquisitionDateTimeFieldsAddOn
Used to add acquisition Date and Time tags.
void inheritValues(DCMTree::Const_TreePtr dcmTree) override
Implements the copy of tag values from the given dcmTree to the fields.
static std::string addBinaryDocumentData(DCMTree::TreePtr dcmTree, const std::string &fileName, const MLint fileSize)
Helper routine to add the content of fileName to dcmTree as OB data of tag Encapsulated Document (004...
std::string applyModifications(DCMTree::TreePtr dcmTree, const FieldContainer *treeInfos=nullptr) override
See DicomModifyFieldAddOnBase::applyModifications() for documentation; the mandatory tags Encapsulate...
DicomBoolInheritAndWriteTagInterface burnedInAnnotationAddOn
Manages burnedInAnnotation tag.
DicomEncapsulatedDocumentModuleTagInterface(Module &modRef)
Constructor, setting the reference of the module for which the fields shall be managed.
DicomGeneralImageModuleTagInterface instanceNumberAndContentFieldAddOn
Fields.
Manages the module field interface according to DICOM General Image, C.7.6.1.
The class DicomModifyFieldAddOnBase is dedicated to manage fields for ML modules and instances derive...
Defines the class FieldContainer to encapsulate a vector of fields for (see class Field).
Base class for an image processing module of the ML.
Definition: mlModule.h:156
Field to encapsulate a string value.
Definition: mlFields.h:1000
Header file for the FieldAddOn supporting inheritance and auto creating tag values (for example DICOM...
Header file for the ML module base class DicomContentDateTimeTagInterface.
Header file for the ML module base class DicomGeneralImageModuleTagInterface.
Header file of the DicomModifyFieldAddOnBase class dedicated to manage fields for ML modules and inst...
MLint64 MLint
A signed ML integer type with at least 64 bits used for index calculations on very large images even ...
Definition: mlTypeDefs.h:578
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