MeVisLab Toolbox Reference
mlDicomGeneralSeriesModuleTagInterface.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
18ML_START_NAMESPACE
19
20//----------------------------------------------------------------------------------
22//----------------------------------------------------------------------------------
24{
25public:
37 bool useEnhancedSeriesNumber=false,
38 const std::string &modality="",
39 bool forceSeriesInstanceUIDAsType1=false);
40
42 void addFields() override;
43
45 void inheritValues(DCMTree::Const_TreePtr dcmTree) override;
46
49 const FieldContainer *treeInfos=nullptr) override;
50
53
55 std::string checkConsistency() const override;
56
58 // NOTE: Although the modality tag is part of the general series module it is not provided
59 // as field here, because normally it should not be editable by users. DICOM export
60 // modules typically have to set it manually.
61
64
69
77
80
83
86
91
98
101
104
109
112
134
137
140
143
146
147 protected:
150
153
156
159
161 const std::string _modality;
162
163 public:
166};
167
168ML_END_NAMESPACE
Project global and OS specific declarations.
#define MLDICOMTAGINTERFACES_EXPORT
DLL export macro definition.
static const char *const LateralityStringValues[NumLateralityEnumerators]
String representations for the _lateralityFld enum.
StringField * _bodyPartExaminedFld
Value of possibly inherited BodyPartExamined tag.
StringField * _bodyPartExaminedValuesFld
Available values for _bodyPartExaminedFld.
const std::string _modality
If not empty then the content will be set as Modality tag, otherwise ignored.
StringField * _seriesNumberFld
Content of the corresponding DICOM tag definition.
BoolField * _inheritSeriesNumberFld
If true then the seriesNumber field is overwritten with inherited states, otherwise not.
const bool _useEnhancedSeriesNumber
If true then Series Number will be checked to be non-empty.
FieldAddOnBase::FieldChangeState handleFieldChanges(Field *field) override
Handle field notifications.
static const char *const LateralityChecksStringValues[NumLateralityChecksEnumerators]
String representations for the LateralityChecksValues enum.
DicomGeneralSeriesModuleTagInterface(Module &modRef, bool useEnhancedSeriesNumber=false, const std::string &modality="", bool forceSeriesInstanceUIDAsType1=false)
void inheritValues(DCMTree::Const_TreePtr dcmTree) override
Implements the copy of tag values from the given dcmTree to the fields.
static const char *const UnpairedBodyPartExaminedStringValues[NumUnpairedBodyPartExaminedValues]
String representations for the _unpairedBodyPartExaminedValuesFld.
DicomValueInheritAndCreateTagInterface _seriesInstanceUIDAddOn
Fields.
BodyPartExaminedValues
Available values for BodyPartExaminedValues.
LateralityChecksValues
Enumerator for modes of laterality checks tag.
@ AsWarning
Log a possible problem as console warning.
BoolField * _writeBodyPartExaminedFld
Enables/disabled whether bodyPartExamined shall be written or not.
EnumField * _lateralityFld
Laterality tag (0020,0060), type 2C.
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.
DicomCopyTagSetInterface _otherGeneralSeriesTags
All other General Series tags not available in the interface, allow public access.
StringField * _seriesDescriptionFld
Describes the series for which this DICOM file is created.
std::string applyModifications(DCMTree::TreePtr dcmTree, const FieldContainer *treeInfos=nullptr) override
See DicomModifyFieldAddOnBase::applyModifications() for documentation.
static const char *const BodyPartExaminedStringValues[NumBodyPartExaminedValues]
String representations for the _bodyPartExaminedValuesFld.
DicomModifyFieldAddOnBase(FieldContainer &fieldContainerRef, size_t numInstances=1, bool createInputModifyTagsPluginBaseConnectorField=false, bool createOutputModifyTagsPluginBaseConnectorField=false)
FieldChangeState
Describes the type of a field changes detected in handleFieldChanges(Field *field).
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