MeVisLab Toolbox Reference
mlDicomImagePlaneModuleTagInterface.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 
16 ML_START_NAMESPACE
17 
18 //----------------------------------------------------------------------------------
20 //----------------------------------------------------------------------------------
22 {
23 public:
26 
28  void addFields() override;
29 
31  void inheritValues(DCMTree::Const_TreePtr dcmTree) override;
32 
34  std::string applyModifications(DCMTree::TreePtr dcmTree,
35  const FieldContainer *treeInfos=nullptr) override;
36 
38  std::string checkConsistency() const override;
39 
49 };
50 
51 ML_END_NAMESPACE
Project global and OS specific declarations.
#define MLDICOMTAGINTERFACES_EXPORT
DLL export macro definition.
Manages the module field interface according to DICOM Image Plane Module, C.7.6.2.
DicomImagePlaneModuleTagInterface(Module &modRef)
Constructor, setting the reference of the module for which the fields shall be managed.
DoubleField * _sliceThicknessFld
The Thickness of pixels in the z-dimension to be written; usually derived from a connected input.
Vector3Field * _imagePositionPatientFld
The ImagePositionPatient tag to be written; usually derived from a connected input.
Vector6Field * _imageOrientationPatientFld
The ImageOrientationPatient tag to be written; usually derived from a connected input.
void addFields() override
Add fields to field container of module.
void inheritValues(DCMTree::Const_TreePtr dcmTree) override
Implements the copy of tag values from the given dcmTree to the fields.
std::string checkConsistency() const override
Checks for invalid parameters; return textual description on error, or empty string on success.
std::string applyModifications(DCMTree::TreePtr dcmTree, const FieldContainer *treeInfos=nullptr) override
See DicomModifyFieldAddOnBase::applyModifications() for documentation.
The class DicomModifyFieldAddOnBase is dedicated to manage fields for ML modules and instances derive...
Field to encapsulate a double value.
Definition: mlFields.h:806
Defines the class FieldContainer to encapsulate a vector of fields for (see class Field).
Base class for an image processing module of the ML.
Definition: mlModule.h:156
Field to encapsulate a vector of 2 double values.
Definition: mlFields.h:1428
Field to encapsulate a vector of 3 double values.
Definition: mlFields.h:1538
Field to encapsulate a vector of 6 double values.
Definition: mlFields.h:1857
Header file of the DicomModifyFieldAddOnBase class dedicated to manage fields for ML modules and inst...
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