00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date$ 00006 Version: $Revision$ 00007 00008 Copyright (c) German Cancer Research Center, Division of Medical and 00009 Biological Informatics. All rights reserved. 00010 See MITKCopyright.txt or https://www.mitk.org/copyright.html for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 00018 #ifndef CAMERAROTATIONCONTROLLER_H_HEADER_INCLUDED_NXYCBIU 00019 #define CAMERAROTATIONCONTROLLER_H_HEADER_INCLUDED_NXYCBIU 00020 00021 #include "mitkCommon.h" 00022 #include "mitkBaseController.h" 00023 00024 class vtkCamera; 00025 class vtkRenderWindow; 00026 00027 namespace mitk { 00028 00029 00030 class MITK_CORE_EXPORT CameraRotationController : public BaseController 00031 { 00032 public: 00033 mitkClassMacro(CameraRotationController,BaseController); 00034 itkNewMacro(Self); 00035 mitkNewMacro1Param(Self, const char *); 00036 00037 void RotateCamera(); 00038 void AcquireCamera(); 00039 00040 void SetRenderWindow(vtkRenderWindow * renWin) 00041 { 00042 m_RenderWindow = renWin; 00043 } 00044 00045 virtual bool ExecuteAction( Action* action, mitk::StateEvent const* stateEvent ); 00046 00047 protected: 00048 CameraRotationController(const char * type = NULL); 00049 virtual ~CameraRotationController(); 00050 00051 private: 00052 int m_LastStepperValue; 00053 vtkCamera* m_Camera; 00054 vtkRenderWindow* m_RenderWindow; 00055 }; 00056 00057 } 00058 00059 #endif