MeVisLab Toolbox Reference
mlDicomFrameOfReferenceModuleTagInterface.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 
43 
46  void setActive(bool active);
47 
49  bool isActive() const;
50 
51 protected:
53 
57 
60 
63 
66  bool _isActive;
67 };
68 
69 ML_END_NAMESPACE
Project global and OS specific declarations.
#define MLDICOMTAGINTERFACES_EXPORT
DLL export macro definition.
Field to encapsulate a boolean value.
Definition: mlFields.h:62
Manages the module field interface for the DICOM Frame Of Reference Module.
StringField * _frameOfReferenceUIDFld
Uniquely identifies the frame of reference for a Series. See C.7.4.1.1.1 in DICOM standard.
BoolField & getMakeGUIInsensitiveFld()
Return reference to _makeGUIInsensitiveFld to allow modules hosting this AddOn to change sensitivity;...
bool isActive() const
Returns true if FieldAddOn is active,,otherwise false.
void inheritValues(DCMTree::Const_TreePtr dcmTree) override
Implements the copy of tag values from the given dcmTree to the fields.
void setActive(bool active)
Sets flag which (de)activates this FieldAddOn; if deactivated: checkConsistency always returns an emp...
StringField * _positionReferenceIndicatorFld
Part of the imaging target used as a reference. See C.7.4.1.1.2 in DICOM Standard....
std::string applyModifications(DCMTree::TreePtr dcmTree, const FieldContainer *treeInfos=nullptr) override
See DicomModifyFieldAddOnBase::applyModifications() for documentation.
bool _isActive
Sets flag which (de)activates this FieldAddOn; if deactivated: checkConsistency always returns an emp...
void addFields() override
Add fields to field container of module.
DicomFrameOfReferenceModuleTagInterface(Module &modRef)
Constructor, setting the reference of the module for which the fields shall be managed.
std::string checkConsistency() const override
Checks for invalid parameters; return textual description on error, or empty string on success.
The class DicomModifyFieldAddOnBase is dedicated to manage fields for ML modules and instances derive...
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 string value.
Definition: mlFields.h:1000
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