MeVisLab Toolbox Reference
mlDicomSegmentSequenceTagInterface.h
Go to the documentation of this file.
1// Copyright (c) Fraunhofer MEVIS, Germany. All rights reserved.
2// **InsertLicense** code
3//----------------------------------------------------------------------------------
6
11//----------------------------------------------------------------------------------
12
13#pragma once
14
17#include <mlDicomSegmentItem.h>
18
19ML_START_NAMESPACE
20
107
108ML_END_NAMESPACE
Project global and OS specific declarations.
#define MLDICOMTAGINTERFACES_EXPORT
DLL export macro definition.
Field to encapsulate a vector of three float values representing an (RGB) color with all properties o...
Definition mlFields.h:1332
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,...
const DicomSegmentItemVector & getSegmentSequence() const
Allows read access to the segment sequence.
NotifyField * _removeSegmentFld
Remove currently selected segment.
IntField * _currentSegmentFld
Segment counter to index the currently shown segment in segementSequence.
DoubleField * _segmentImageValueRangeMinFld
[Min,Max[ interval in which input image values are considered as part of the segment; interval border...
FieldAddOnBase::FieldChangeState handleFieldChanges(Field *field) override
Handle field notifications according to Module::activateAttachments with a return of field change sta...
DicomSegmentItemVector & getSegmentSequence()
Allows read-write access to the segment sequence.
StringField * _segmentAlgorithmNameFld
Segment Algorithm Name(if type is not MANUAL).
DicomSegmentSequenceTagInterface(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; requi...
void addFields() override
Add fields to field container of module.
IntField * _numberOfSegmentsFld
The number of currently available segments.
StringField * _segmentDescriptionFld
Segment Description.
Vector3Field * _recommendedDisplayCIELabValueFld
Value of RecommendedDisplayCIELabValue tag of currently selected volume or (0,0,0) if not available o...
EnumField * _segmentAlgorithmTypeFld
Segment Algorithm Type (one of AUTOMATIC, SEMIAUTOMATIC, MANUAL).
void handleFieldActivationChanges() override
Handle class changes according to Module::activateAttachments.
NotifyField * _appendSegmentFld
Append a new segment at end.
ColorField * _rgbFld
A reduced quality version of the RecommendedDisplayCIELabValue as rgb.
void _updateSegmentNumbers()
Small helper function setting all segmentNumbers of all segments.
StringField * _codedSegmentSequenceFld
Internal, non-user, field to store the content of the segment sequence as coded string.
void inheritValues(DCMTree::Const_TreePtr dcmTree) override
Implements the copy of tag values from the given dcmTree to the fields.
std::string applyModifications(DCMTree::TreePtr dcmTree, const FieldContainer *treeInfos=nullptr) override
See DicomModifyFieldAddOnBase::applyModifications() for documentation; adds field values as tags to d...
DicomSegmentItemVector _segmentSequence
Stores the segment sequence;.
Field to encapsulate a double value.
Definition mlFields.h:494
Field to encapsulate an enumerated value.
Definition mlFields.h:173
FieldChangeState
Describes the type of a field changes detected in handleFieldChanges(Field *field).
Defines the class FieldContainer to encapsulate a vector of fields (see class Field).
Base class for all fields used in the ML.
Definition mlField.h:73
Field to encapsulate an integer value.
Definition mlFields.h:117
Base class for an image processing module of the ML.
Definition mlModule.h:151
Field without value for notifications.
Definition mlFields.h:598
Field to encapsulate a string value.
Definition mlFields.h:553
Field to encapsulate a vector of three double values.
Definition mlFields.h:1019
Header file of the DicomModifyFieldAddOnBase class dedicated to manage fields for ML modules and inst...
Header file of the class implementing a segmentation item according to the DICOM Segmentation Image M...
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
std::vector< DicomSegmentItem > DicomSegmentItemVector
Type describing a sequence of SegmentItems similar to its description in the DICOM standard under SEG...