MeVisLab Toolbox Reference
mlDicomSegmentationImageModuleTagInterface.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 
16 
17 ML_START_NAMESPACE
18 
19 //----------------------------------------------------------------------------------
28 //----------------------------------------------------------------------------------
30 {
31 public:
34 
36  void addFields() override;
37 
40 
43 
45  void inheritValues(DCMTree::Const_TreePtr dcmTree) override;
46 
49  std::string applyModifications(DCMTree::TreePtr dcmTree,
50  const FieldContainer *treeInfos=nullptr) override;
51 
54 
58  std::string checkConsistency() const override;
59 
63 
66 
69 
72 
75 
78 
81 
84 
88  static const std::vector<std::string> &getMaximumFractionalValueModes();
89 
90  protected:
91 
94 
102 
108 
112 };
113 
114 ML_END_NAMESPACE
Project global and OS specific declarations.
#define MLDICOMTAGINTERFACES_EXPORT
DLL export macro definition.
The class DicomModifyFieldAddOnBase is dedicated to manage fields for ML modules and instances derive...
Class managing the module field interface according to DICOM Segmentation Image Module Attributes,...
Manages the module field interface according to DICOM Segmentation Image Module, C....
static const std::vector< std::string > & getMaximumFractionalValueModes()
Returns currently supported values for getMaximumFractionalValueModeField(): [0]: USE_LARGEST_VOXEL_V...
const EnumField & getSegmentTypeField() const
Provides constant read access to the segmentation type field.
EnumField & getMaximumFractionalValueModeField()
Provides modification access to _maximumFractionalValueModeFld, the caller has to care for correct us...
void inheritValues(DCMTree::Const_TreePtr dcmTree) override
Implements the copy of tag values from the given dcmTree to the fields.
void addFields() override
Add fields to field container of module.
std::string applyModifications(DCMTree::TreePtr dcmTree, const FieldContainer *treeInfos=nullptr) override
See DicomModifyFieldAddOnBase::applyModifications() for documentation; adds field values as tags to d...
const DicomSegmentSequenceTagInterface & getSegmentSequence() const
Provides constant read access to sequence.
DicomSegmentSequenceTagInterface _segmentSequence
Segments sequence as part of Segmentation Image Module C.8.20.2.
void handleFieldActivationChanges() override
Handle class changes according to Module::activateAttachments.
DicomSegmentSequenceTagInterface & getSegmentSequence()
Provides modification access to sequence; be aware that no change causes automatic updates,...
EnumField * _segmentationTypeFld
A Segmentation Type (0062,0001) of BINARY indicates the segmented property is present with a value of...
const EnumField & getMaximumFractionalValueModeField() const
Provides constant read access to _maximumFractionalValueModeFld.
EnumField * _maximumFractionalValueModeFld
Determines how the Maximum Fractional Value (0062,000E) is calculated; see MaximumFractionalValueMode...
EnumField * _segmentationFractionalTypeFld
Enumerated Values of Segmentation Fractional Type (0062,0010): PROBABILITY Defines the probability,...
EnumField & getSegmentTypeField()
Provides modification access to the segmentation type field, the caller has to care for correct usage...
const EnumField & getSegmentFractionalTypeField() const
Provides constant read access to the Segmentation Fractional Type field.
void _addSegmentationImageIODSpecificTags(DCMTree::TreePtr dcmTree)
Add tags which exist only the Segmentation Image IOD and not in the Image IOD.
std::string checkConsistency() const override
Checks for invalid parameters; return textual description on error, or empty string on success; requi...
FieldAddOnBase::FieldChangeState handleFieldChanges(Field *field) override
Handle field notifications according to Module::activateAttachments with a return of field change sta...
EnumField & getSegmentFractionalTypeField()
Provides modification access to the Segmentation Fractional Type field, the caller has to care for co...
DicomSegmentationImageModuleTagInterface(Module &modRef)
Constructor, setting the reference of the module for which the fields shall be managed.
Field to encapsulate an enumerated value.
Definition: mlFields.h:363
FieldChangeState
Describes the type of a field changes detected in handleFieldChanges(Field *field).
Defines the class FieldContainer to encapsulate a vector of fields for (see class Field).
Base class for all fields used in the ML.
Definition: mlField.h:73
Base class for an image processing module of the ML.
Definition: mlModule.h:156
Header file of the DicomModifyFieldAddOnBase class dedicated to manage fields for ML modules and inst...
Header file of class managing the module field interface according to DICOM Segmentation Image Module...
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