Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkItkMatrixHack.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 mitkItkMatrixHack_h
14 #define mitkItkMatrixHack_h
15 
16 namespace mitk
17 {
33  template <class TTransformType>
34  class ItkMatrixHack : public TTransformType
35  {
36  public:
38  void MatrixChanged() { this->SetVarMatrix(this->GetMatrix()); }
39  };
40 
41 } // namespace mitk
42 
43 #endif
Internal hack to set m_MatrixMTime of itk::MatrixOffsetTransformBase correctly after changing the mat...
void MatrixChanged()
Triggers a recalculation of the inverse matrix by calling SetVarMatrix.
Find image slices visible on a given plane.