MeVisLab Toolbox Reference
mlDicomSCMultiframeImageModuleTagInterface.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
15
16ML_START_NAMESPACE
17
18//----------------------------------------------------------------------------------
24//----------------------------------------------------------------------------------
26{
27public:
32 bool autoCreateSOPInstanceUID=true);
33
35 inline void setInputPagedImage(PagedImage &inImg){ _inImg = &inImg; }
36
38 inline PagedImage *getInputPagedImage() const { return _inImg; }
39
41 inline void setIsDigitizedFilm(bool isDigiFilm){ _isDigitizedFilm = isDigiFilm; }
42
44 void addFields() override;
45
47 void inheritValues(DCMTree::Const_TreePtr dcmTree) override;
48
51 const FieldContainer *treeInfos=nullptr) override;
52
54 std::string checkConsistency() const override;
55
66
69private:
71 PagedImage *_inImg;
72
74 bool _isDigitizedFilm;
75
77 const bool _autoCreateSOPInstanceUID;
78
79};
80
81ML_END_NAMESPACE
Project global and OS specific declarations.
#define MLDICOMTAGINTERFACES_EXPORT
DLL export macro definition.
DicomModifyFieldAddOnBase(FieldContainer &fieldContainerRef, size_t numInstances=1, bool createInputModifyTagsPluginBaseConnectorField=false, bool createOutputModifyTagsPluginBaseConnectorField=false)
void inheritValues(DCMTree::Const_TreePtr dcmTree) override
Implements the copy of tag values from the given dcmTree to the fields.
void setInputPagedImage(PagedImage &inImg)
Sets the input image from which the vector grid data shall be retrieved.
PagedImage * getInputPagedImage() const
Returns the currently set input image from which the vector grid data shall be retrieved.
DicomSCMultiframeImageModuleTagInterface(Module &modRef, bool autoCreateSOPInstanceUID=true)
void addFields() override
Add fields to field container of module.
void setIsDigitizedFilm(bool isDigiFilm)
If set to true then tags are written assuming that the conversion type is DigitizedFilm.
std::string checkConsistency() const override
Checks for invalid parameters; return textual description on error, or empty string on success.
DoubleField * _rescaleSlopeFld
Rescale Intercept for the image data to be written.
std::string applyModifications(DCMTree::TreePtr dcmTree, const FieldContainer *treeInfos=nullptr) override
See DicomModifyFieldAddOnBase::applyModifications() for documentation.
StringField * _rescaleTypeFld
Rescale Intercept for the image data to be written.
DoubleField * _rescaleInterceptFld
Rescale Intercept for the image data to be written.
Vector2Field * _nominalScannedPixelSpacingFld
The NominalScannedPixelSpacing tag to be written in case of ConversionType==DigitizedFilm.
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