Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkCellOperation.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 mitkCellOperation_h
14 #define mitkCellOperation_h
15 
17 #include <mitkCommon.h>
18 #include <mitkOperation.h>
19 #include <mitkVector.h>
20 
21 namespace mitk
22 {
33  {
34  public:
36 
44  CellOperation(OperationType operationType, int cellId, Vector3D vector);
45 
52  CellOperation(OperationType operationType, int cellId);
53 
54  ~CellOperation() override{};
55 
60  int GetCellId() { return m_CellId; };
61 
66  Vector3D GetVector() { return m_Vector; };
67  protected:
68  int m_CellId;
70  };
71 } // namespace mitk
72 #endif
#define MITKDATATYPESEXT_EXPORT
Operation that holds everything necessary for an operation on a cell.
CellOperation(OperationType operationType, int cellId, Vector3D vector)
Construct a CellOperation with a displacement vector.
int GetCellId()
Get the cell identifier.
CellOperation(OperationType operationType, int cellId)
Construct a CellOperation without a displacement vector.
Vector3D GetVector()
Get the displacement vector.
mitkClassMacro(CellOperation, Operation)
Base class for all operations in the undo/redo framework.
Definition: mitkOperation.h:38
Find image slices visible on a given plane.
int OperationType
Type alias for operation type identifiers.
Definition: mitkOperation.h:24