Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkPlaneOperation.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 mitkPlaneOperation_h
14 #define mitkPlaneOperation_h
15 
16 #include <mitkNumericTypes.h>
17 #include <mitkPointOperation.h>
18 #include <MitkCoreExports.h>
19 
20 namespace mitk
21 {
34  {
35  public:
42  PlaneOperation(OperationType operationType, Point3D point, Vector3D normal);
43 
51  PlaneOperation(OperationType operationType, Point3D point, Vector3D axisVec0, Vector3D axisVec1);
52 
53  ~PlaneOperation() override;
54 
57 
60 
63 
69 
70  private:
71  Vector3D m_Normal;
72  Vector3D m_AxisVec0;
73  Vector3D m_AxisVec1;
74  bool m_AreAxisDefined;
75  };
76 
77 } // namespace mitk
78 
79 #endif
#define MITKCORE_EXPORT
Operation for setting a plane defined by its origin and normal or axis vectors.
PlaneOperation(OperationType operationType, Point3D point, Vector3D normal)
Construct a plane operation from a point and a normal vector.
PlaneOperation(OperationType operationType, Point3D point, Vector3D axisVec0, Vector3D axisVec1)
Construct a plane operation from a point and two axis vectors.
Vector3D GetAxisVec1()
Get the second in-plane axis vector. Only valid if AreAxisDefined() returns true.
Vector3D GetNormal()
Get the normal vector of the plane. Only valid if constructed with a normal.
~PlaneOperation() override
bool AreAxisDefined()
Check whether the axis vectors were defined in the constructor.
Vector3D GetAxisVec0()
Get the first in-plane axis vector. Only valid if AreAxisDefined() returns true.
Operation that handles all actions on a single point.
Convenience header that includes all MITK numeric types.
Find image slices visible on a given plane.
int OperationType
Type alias for operation type identifiers.
Definition: mitkOperation.h:24