MeVisLab Toolbox Reference
mlDicomSpatialFiducialsModuleTagInterface.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 #include "mlXMarkerList.h"
17 
18 ML_START_NAMESPACE
19 
20 //----------------------------------------------------------------------------------
23 //----------------------------------------------------------------------------------
25 {
26 public:
29 
31  void addFields() override;
32 
34  void inheritValues(DCMTree::Const_TreePtr dcmTree) override;
35 
39  std::string applyModifications(DCMTree::TreePtr dcmTree,
40  const FieldContainer *treeInfos=nullptr) override;
41 
45  std::string checkConsistency() const override;
46 
50 
53 
56 
60 
63 
66 };
67 
68 ML_END_NAMESPACE
Project global and OS specific declarations.
#define MLDICOMTAGINTERFACES_EXPORT
DLL export macro definition.
Field to encapsulate a pointer to an ML base object.
Definition: mlFields.h:1187
Field to encapsulate a boolean value.
Definition: mlFields.h:62
The class DicomModifyFieldAddOnBase is dedicated to manage fields for ML modules and instances derive...
Manages the module field interface according to DICOM Spatial Fiducials C.21.2 without ContentDate,...
DicomSpatialFiducialsModuleTagInterface(Module &modRef)
Constructor, setting the reference of the module for which the fields shall be managed.
StringField * _fiducialIdentifierBaseFld
Base name for the fiducial identifiers which are expanded by indexes.
void addFields() override
Add fields to field container of module.
StringField * _frameOfReferenceUIDFld
FrameOfReferenceUID which references the image the FID data set is based on.
std::string applyModifications(DCMTree::TreePtr dcmTree, const FieldContainer *treeInfos=nullptr) override
See DicomModifyFieldAddOnBase::applyModifications() for documentation; if no or an empty XMarkerList ...
BaseField * _xMarkerListInputFld
Input connector for an XMarkerList to store as fiducials in the DICOM tags.
void inheritValues(DCMTree::Const_TreePtr dcmTree) override
Implements the copy of tag values from the given dcmTree to the fields.
BoolField * _addFiducialDescriptionTagFld
Enables/disables whether the fidicialsDescription string tag is added to the DCMTree or not.
StringField * _fiducialDescriptionBaseFld
String used as base for all fiducial descriptions which are expanded by indexes.
std::string checkConsistency() const override
Checks for invalid parameters; return textual description on error, or empty string on success; requi...
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