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
28
29#include <mlModuleIncludes.h>
30#include <mlDicomSaveBase.h>
33
34// DICOM tree etc.
35#include <DCMTree_Tree.h>
36
37ML_START_NAMESPACE
38
40class DicomDOCSaveAddOnPointers;
41
44
45//----------------------------------------------------------------------------------
46// See above.
47//----------------------------------------------------------------------------------
49{
50public:
51
54
56 virtual ~DicomDOCSave();
57
58protected:
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
98ML_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
_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
std::string _addEncapsulatedDocumentTags(DCMTree::TreePtr resultTree)
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
void _inheritFieldValuesFromDCMTree(DCMTree::Const_TreePtr dcmTree) override
Overloads base class field inheritance and adds the additional tags needed by this class.
DicomSaveBase(int numInputs=1, int numOutputs=0)
Constructor, currently 0-3 input images are allowed to be set by derived modules.
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:67
boost::shared_ptr< Tree > TreePtr
Shared pointer to a DCMTree::Tree.
Definition DCMTree_Lib.h:66
DicomModifyFieldAddOnList< DicomModifyFieldAddOnBase, DicomDOCSaveAddOnPointers * > _DOCFieldAddOnListType
Container type which handles all internally used DicomModifyFieldAddOns.