Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkSegLabelPropModifyOperation.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkSegLabelPropModifyOperation_h
14 #define mitkSegLabelPropModifyOperation_h
15 
19 
20 namespace mitk
21 {
22  class Image;
23 
33  {
34  public:
36 
38 
44  const ModifyLabelsVectorType& modifiedLabel);
45 
46  ~SegLabelPropModifyOperation() override = default;
47 
50 
51  // Explicitly delete copy operations because internally std::unique_ptr are used.
54 
60  const MultiLabelSegmentation::LabelValueVectorType& relevantLabels);
61 
62  protected:
64  };
65 
66 }
67 #endif
#define MITKSEGMENTATION_EXPORT
MultiLabelSegmentation class for handling labels and layers in a segmentation session.
ConstLabelVector ConstLabelVectorType
std::vector< LabelValueType > LabelValueVectorType
Base class for any operation based on a MultiLabelSegmentation instance.
An Operation for modifying the properties (e.g. name, color) of labels in a MultiLabelSegmentation.
mitkClassMacro(SegLabelPropModifyOperation, SegChangeOperationBase)
SegLabelPropModifyOperation(MultiLabelSegmentation *segmentation, const ModifyLabelsVectorType &modifiedLabel)
Construct a label property modify operation with the given label data.
static SegLabelPropModifyOperation * CreatFromSegmentation(MultiLabelSegmentation *segmentation, const MultiLabelSegmentation::LabelValueVectorType &relevantLabels)
Factory method that creates a label property modify operation from the current segmentation state.
SegLabelPropModifyOperation & operator=(const SegLabelPropModifyOperation &)=delete
const ModifyLabelsVectorType & GetModifiedLabels() const
Get the vector of modified labels stored in this operation.
SegLabelPropModifyOperation(const SegLabelPropModifyOperation &)=delete
MultiLabelSegmentation::ConstLabelVectorType ModifyLabelsVectorType
~SegLabelPropModifyOperation() override=default
class ITK_EXPORT Image
Find image slices visible on a given plane.