Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkCameraRotationController.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 mitkCameraRotationController_h
14 #define mitkCameraRotationController_h
15 
16 #include <mitkBaseController.h>
17 #include <MitkCoreExports.h>
18 
19 class vtkCamera;
20 class vtkRenderWindow;
21 
22 namespace mitk
23 {
36  {
37  public:
39  itkFactorylessNewMacro(Self);
40  itkCloneMacro(Self)
41  // mitkNewMacro1Param(Self, const char *);
42 
43 
49  void RotateCamera();
50 
57  void AcquireCamera();
58 
62  void SetRenderWindow(vtkRenderWindow *renWin) { m_RenderWindow = renWin; }
63 
64  protected:
69 
70  private:
71  int m_LastStepperValue;
72  vtkCamera *m_Camera;
73  vtkRenderWindow *m_RenderWindow;
74  };
75 }
76 
77 #endif
#define MITKCORE_EXPORT
Base class for renderer slice, camera, and time control.
Controls azimuthal camera rotation driven by a Stepper.
~CameraRotationController() override
Destructor.
mitkClassMacro(CameraRotationController, BaseController)
CameraRotationController()
Constructor. Initializes the stepper with 360 steps and auto-repeat.
Find image slices visible on a given plane.