Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkLineOperation.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 mitkLineOperation_h
14 #define mitkLineOperation_h
15 
17 #include <mitkCellOperation.h>
18 #include <mitkCommon.h>
19 
20 namespace mitk
21 {
33  {
34  public:
36 
47  LineOperation(OperationType operationType, int cellId, Vector3D vector, int pIdA = -1, int pIdB = -1, int id = -1);
48 
58  LineOperation(OperationType operationType, int cellId = -1, int pIdA = -1, int pIdB = -1, int id = -1);
59 
60  ~LineOperation() override{};
61 
66  int GetPIdA();
67 
72  int GetPIdB();
73 
78  int GetId();
79 
80  protected:
81  // int m_CellId;
82  int m_PIdA;
83  int m_PIdB;
84  int m_Id;
85  };
86 } // namespace mitk
87 #endif
#define MITKDATATYPESEXT_EXPORT
Operation that holds everything necessary for an operation on a cell.
Operation that holds everything necessary for an operation on a line.
LineOperation(OperationType operationType, int cellId=-1, int pIdA=-1, int pIdB=-1, int id=-1)
Construct a LineOperation without a displacement vector.
int GetPIdA()
Get the first endpoint ID.
LineOperation(OperationType operationType, int cellId, Vector3D vector, int pIdA=-1, int pIdB=-1, int id=-1)
Construct a LineOperation with a displacement vector.
int GetPIdB()
Get the second endpoint ID.
int GetId()
Get the line ID within the cell.
mitkClassMacro(LineOperation, CellOperation)
Find image slices visible on a given plane.
int OperationType
Type alias for operation type identifiers.
Definition: mitkOperation.h:24