Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitk::CellOperation Class Reference

Operation that holds everything necessary for an operation on a cell. More...

#include <mitkCellOperation.h>

Inheritance diagram for mitk::CellOperation:
Collaboration diagram for mitk::CellOperation:

Public Member Functions

 mitkClassMacro (CellOperation, Operation)
 
 CellOperation (OperationType operationType, int cellId, Vector3D vector)
 Construct a CellOperation with a displacement vector. More...
 
 CellOperation (OperationType operationType, int cellId)
 Construct a CellOperation without a displacement vector. More...
 
 ~CellOperation () override
 
int GetCellId ()
 Get the cell identifier. More...
 
Vector3D GetVector ()
 Get the displacement vector. More...
 
- Public Member Functions inherited from mitk::Operation
 mitkClassMacroNoParent (Operation) virtual bool IsValid() const
 Check whether this operation is still valid and can be executed. More...
 
virtual ~Operation ()=default
 Virtual destructor. More...
 
OperationType GetOperationType ()
 Get the type identifier of this operation. More...
 

Protected Attributes

int m_CellId
 
Vector3D m_Vector
 
- Protected Attributes inherited from mitk::Operation
OperationType m_OperationType
 The type identifier for this operation. More...
 

Additional Inherited Members

- Protected Member Functions inherited from mitk::Operation
 Operation (OperationType operationType)
 Construct an operation with the given type. More...
 
 Operation (const Operation &)=default
 
 Operation (Operation &&)=default
 
Operation & operator= (const Operation &)=default
 
Operation & operator= (Operation &&)=default
 

Detailed Description

Operation that holds everything necessary for an operation on a cell.

Stores the operation type, cell identifier, and an optional displacement vector for undo/redo support.

See also
Operation, LineOperation

Definition at line 32 of file mitkCellOperation.h.

Constructor & Destructor Documentation

◆ CellOperation() [1/2]

mitk::CellOperation::CellOperation ( OperationType  operationType,
int  cellId,
Vector3D  vector 
)

Construct a CellOperation with a displacement vector.

Parameters
[in]operationTypeThe type of operation (e.g. move, add).
[in]cellIdThe identifier of the cell to operate on.
[in]vectorThe displacement or direction vector.

◆ CellOperation() [2/2]

mitk::CellOperation::CellOperation ( OperationType  operationType,
int  cellId 
)

Construct a CellOperation without a displacement vector.

Parameters
[in]operationTypeThe type of operation.
[in]cellIdThe identifier of the cell to operate on.

◆ ~CellOperation()

mitk::CellOperation::~CellOperation ( )
inlineoverride

Definition at line 54 of file mitkCellOperation.h.

Member Function Documentation

◆ GetCellId()

int mitk::CellOperation::GetCellId ( )
inline

Get the cell identifier.

Returns
The cell ID.

Definition at line 60 of file mitkCellOperation.h.

◆ GetVector()

Vector3D mitk::CellOperation::GetVector ( )
inline

Get the displacement vector.

Returns
The vector associated with this operation.

Definition at line 66 of file mitkCellOperation.h.

◆ mitkClassMacro()

mitk::CellOperation::mitkClassMacro ( CellOperation  ,
Operation   
)

Member Data Documentation

◆ m_CellId

int mitk::CellOperation::m_CellId
protected

Definition at line 68 of file mitkCellOperation.h.

◆ m_Vector

Vector3D mitk::CellOperation::m_Vector
protected

Definition at line 69 of file mitkCellOperation.h.


The documentation for this class was generated from the following file: