| 39 | } |
| 40 | |
| 41 | void mitk::CameraRotationController::RotateCamera() |
| 42 | { |
| 43 | if (!m_Camera) |
| 44 | { |
| 45 | this->AcquireCamera(); |
| 46 | } |
| 47 | |
| 48 | if (m_Camera) |
| 49 | { |
| 50 | int newStepperValue = m_Stepper->GetPos(); |
| 51 | m_Camera->Azimuth(m_LastStepperValue - newStepperValue); |
| 52 | m_LastStepperValue = newStepperValue; |
| 53 | // const_cast< RenderWindow* >(m_RenderWindow)->RequestUpdate(); // TODO does not work with movie generator! |
| 54 | mitk::RenderingManager::GetInstance()->RequestUpdate(m_RenderWindow); |
| 55 | // m_MultiWidget->RequestUpdate(); |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | void mitk::CameraRotationController::AcquireCamera() |
| 60 | { |
nothing calls this directly
no test coverage detected