MeVisLab Toolbox Reference
mlDicomDOCSave.h
Go to the documentation of this file.
1 // Copyright (c) Fraunhofer MEVIS, Germany. All rights reserved.
2 // **InsertLicense** code
3 //----------------------------------------------------------------------------------
5 
23 //----------------------------------------------------------------------------------
24 #pragma once
25 
26 // Local includes
27 #include "MLDicomOutputsSystem.h"
28 
29 #include <mlModuleIncludes.h>
30 #include <mlDicomSaveBase.h>
33 
34 // DICOM tree etc.
35 #include <DCMTree_Tree.h>
36 
37 ML_START_NAMESPACE
38 
40 class DicomDOCSaveAddOnPointers;
41 
44 
45 //----------------------------------------------------------------------------------
46 // See above.
47 //----------------------------------------------------------------------------------
49 {
50 public:
51 
54 
56  virtual ~DicomDOCSave();
57 
58 protected:
59 
61  void handleNotification(Field *field) override;
62 
65  void activateAttachments() override;
66 
69  std::string _checkConsistency() const override;
70 
73 
77 
80 
83  std::string _setUpTreeContent() override;
84 
87 
90 
93 
96 };
97 
98 ML_END_NAMESPACE
Project global and OS specific declarations.
#define MLDICOMOUTPUTS_EXPORT
DLL export macro definition.
void handleNotification(Field *field) override
Handles field changes of the field field.
virtual ~DicomDOCSave()
Destructor.
void activateAttachments() override
Updates the internal module state after loading or cloning the module, and enables notification handl...
_DOCFieldAddOnListType _fieldAddOnList
Container which handles all internally used DicomModifyFieldAddOns.
ML_MODULE_CLASS_HEADER(DicomDOCSave)
Implements interface for the runtime type system of the ML.
StringField * _documentFileNameFld
Absoplute file name of document to be loaded and stored in DICOM file.
std::string _setUpTreeContent() override
Sets the Enhanced DICOM tags in the tree; required that checkConsistency returns success.
std::string _addEncapsulatedDocumentTags(DCMTree::TreePtr resultTree)
Sets the tags EncapsulatedDocument and related tags and returns an empty string on success,...
DicomDOCSave()
Constructor.
EnumField * _docTypeFld
The document type to be exported.
void _removeUndesiredInputTags(DCMTree::TreePtr resultTree) const
Remove tags from tree which could disturb the correct interpretation of the written DICOM file.
std::string _checkConsistency() const override
Checks for invalid parameters and return a textual description of the error if there is any,...
void _inheritFieldValuesFromDCMTree(DCMTree::Const_TreePtr dcmTree) override
Overloads base class field inheritance and adds the additional tags needed by this class.
Field to encapsulate an enumerated value.
Definition: mlFields.h:363
Base class for all fields used in the ML.
Definition: mlField.h:73
Field to encapsulate a string value.
Definition: mlFields.h:1000
Header file of the DicomModifyFieldAddOnBase class dedicated to manage fields for ML modules and inst...
Header file of a class managing many DicomModifFieldAddOns to simplify usage of multiple AddOns.
Header file for the ML module base class DicomSaveBase.
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
DicomModifyFieldAddOnList< DicomModifyFieldAddOnBase, DicomDOCSaveAddOnPointers * > _DOCFieldAddOnListType
Container type which handles all internally used DicomModifyFieldAddOns.