Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkRestorePlanePositionOperation.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 mitkRestorePlanePositionOperation_h
14 #define mitkRestorePlanePositionOperation_h
15 
16 #include <mitkCommon.h>
17 #include <mitkNumericTypes.h>
18 #include <mitkPointOperation.h>
19 
20 namespace mitk
21 {
32  {
33  public:
45  ScalarType width,
46  ScalarType height,
47  Vector3D spacing,
48  unsigned int pos,
49  Vector3D direction,
50  AffineTransform3D::Pointer transform);
51 
54 
60 
66 
72 
78 
83  unsigned int GetPos();
84 
89  AffineTransform3D::Pointer GetTransform();
90 
91  private:
92  Vector3D m_Spacing;
93 
94  Vector3D m_DirectionVector;
95 
96  ScalarType m_Width;
97 
98  ScalarType m_Height;
99 
100  unsigned int m_Pos;
101 
102  AffineTransform3D::Pointer m_Transform;
103  };
104 } // namespace mitk
105 #endif
#define MITKCORE_EXPORT
Base class for all operations in the undo/redo framework.
Definition: mitkOperation.h:38
Operation to restore a plane position defined by width, height, spacing, direction,...
RestorePlanePositionOperation(OperationType operationType, ScalarType width, ScalarType height, Vector3D spacing, unsigned int pos, Vector3D direction, AffineTransform3D::Pointer transform)
Constructor.
Vector3D GetDirectionVector()
Returns the direction vector of the plane.
unsigned int GetPos()
Returns the position index of the slice.
ScalarType GetWidth()
Returns the width of the plane.
~RestorePlanePositionOperation() override
Destructor.
ScalarType GetHeight()
Returns the height of the plane.
AffineTransform3D::Pointer GetTransform()
Returns the affine transform defining the plane orientation.
Vector3D GetSpacing()
Returns the spacing vector of the plane geometry.
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
double ScalarType
Scalar type used throughout MITK for geometric computations.