Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkSegChangeOperationBase.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 mitkSegChangeOperationBase_h
14 #define mitkSegChangeOperationBase_h
15 
16 #include <mitkLabelSetImage.h>
17 #include <mitkOperation.h>
18 #include <mitkWeakPointer.h>
19 
21 
22 namespace mitk
23 {
24  class Image;
25 
37  {
38  public:
40 
41  ~SegChangeOperationBase() override = default;
42 
44  bool IsValid() const override;
45 
47  mitk::MultiLabelSegmentation::Pointer GetSegmentation();
48 
50  const mitk::MultiLabelSegmentation::ConstPointer GetSegmentation() const;
51 
52  protected:
57 
58  private:
60  };
61 }
62 #endif
#define MITKSEGMENTATION_EXPORT
MultiLabelSegmentation class for handling labels and layers in a segmentation session.
Base class for all operations in the undo/redo framework.
Definition: mitkOperation.h:38
Base class for any operation based on a MultiLabelSegmentation instance.
SegChangeOperationBase(SegChangeOperationBase &&)=default
SegChangeOperationBase & operator=(SegChangeOperationBase &&)=default
SegChangeOperationBase & operator=(const SegChangeOperationBase &)=default
const mitk::MultiLabelSegmentation::ConstPointer GetSegmentation() const
Get the target segmentation (const).
bool IsValid() const override
Check whether the operation is still valid (i.e., the segmentation still exists).
mitkClassMacro(SegChangeOperationBase, Operation)
mitk::MultiLabelSegmentation::Pointer GetSegmentation()
Get the target segmentation (mutable).
SegChangeOperationBase(mitk::MultiLabelSegmentation *segmentation, OperationType operationType)
~SegChangeOperationBase() override=default
A weak pointer that observes an itk::Object without preventing its deletion.
class ITK_EXPORT Image
Find image slices visible on a given plane.
int OperationType
Type alias for operation type identifiers.
Definition: mitkOperation.h:24