MeVisLab Toolbox Reference
mlDicomPresentationStateIdentificationTagInterface.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
16#include "DCMTree_DicomTags.h"
17
18ML_START_NAMESPACE
19
20//----------------------------------------------------------------------------------
25//----------------------------------------------------------------------------------
27{
28public:
31 bool allowEmptyStrings=true,
32 bool allowOldFormats=true);
33
35 void addFields() override;
36
38 void inheritValues(DCMTree::Const_TreePtr dcmTree) override;
39
42
45 const FieldContainer *treeInfos=nullptr) override;
46
48 std::string checkConsistency() const override;
49
60
61protected:
64
67
68 // Fields.
71
74
77
80};
81
82ML_END_NAMESPACE
Project global and OS specific declarations.
#define MLDICOMTAGINTERFACES_EXPORT
DLL export macro definition.
DicomContentDateTimeTagInterface(Module &modRef, bool allowEmptyStrings=true, bool allowOldFormats=true, const std::string &contentDateFieldName="contentDate", const std::string &contentTimeFieldName="contentTime", const std::string &msgContentDateFieldName="Content Date", const std::string &msgContentTimeFieldName="Content Time", const DCMTree::RawTagId dateTagId=DCMTree_ContentDate, const DCMTree::RawTagId timeTagId=DCMTree_ContentTime)
Constructor, setting the reference of the module for which the fields shall be managed.
FieldAddOnBase::FieldChangeState handleFieldChanges(Field *field) override
Handle field notifications.
std::string applyModifications(DCMTree::TreePtr dcmTree, const FieldContainer *treeInfos=nullptr) override
See DicomModifyFieldAddOnBase::applyModifications() for documentation.
void _setCurrentTime()
If called then the Presentation Creation Time Field is initialized with the current time.
BoolField * _autoSetUpPresentationCreationTimeFld
If enabled then the Presentation Creation Time Field is initialized with the current time when inheri...
void addFields() override
Add fields to field container of module.
BoolField * _autoSetUpPresentationCreationDateFld
If enabled then the Presentation Creation Date Field is initialized with the current date when inheri...
BoolField & getAutoSetUpPresentationCreationDateFld()
Access interface to members; see corresponding member for details.
std::string checkConsistency() const override
Checks for invalid parameters; return textual description on error, or empty string on success.
void inheritValues(DCMTree::Const_TreePtr dcmTree) override
Implements the copy of tag values from the given dcmTree to the fields.
void _setCurrentDate()
If called then the Presentation Creation Date Field is initialized with the current date.
NotifyField * _setCurrentTimeFld
If notified then the Presentation Creation Time Field is initialized with the current time.
NotifyField * _setCurrentDateFld
If notified then the Presentation Creation Date Field is initialized with the current date.
DicomPresentationStateIdentificationTagInterface(Module &modRef, bool allowEmptyStrings=true, bool allowOldFormats=true)
Constructor, setting the reference of the module for which the fields shall be managed.
FieldChangeState
Describes the type of a field changes detected in handleFieldChanges(Field *field).
Header file for the ML module base class DicomContentDateTimeTagInterface.
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