Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
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 CAMERAROTATIONCONTROLLER_H_HEADER_INCLUDED_NXYCBIU
14 #define CAMERAROTATIONCONTROLLER_H_HEADER_INCLUDED_NXYCBIU
15 
16 #include "mitkBaseController.h"
17 #include <MitkCoreExports.h>
18 
19 class vtkCamera;
20 class vtkRenderWindow;
21 
22 namespace mitk
23 {
25  {
26  public:
28  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
29  // mitkNewMacro1Param(Self, const char *);
30 
31  void RotateCamera();
32  void AcquireCamera();
33 
34  void SetRenderWindow(vtkRenderWindow *renWin) { m_RenderWindow = renWin; }
35  protected:
37  ~CameraRotationController() override;
38 
39  private:
40  int m_LastStepperValue;
41  vtkCamera *m_Camera;
42  vtkRenderWindow *m_RenderWindow;
43  };
44 }
45 
46 #endif
#define MITKCORE_EXPORT
Baseclass for renderer slice-/camera-control.
void SetRenderWindow(vtkRenderWindow *renWin)
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40