MCPcopy Create free account
hub / github.com/MITK/MITK / RotateCamera

Method RotateCamera

Modules/Core/src/Controllers/mitkCameraRotationController.cpp:41–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41void 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
59void mitk::CameraRotationController::AcquireCamera()
60{

Callers

nothing calls this directly

Calls 3

AcquireCameraMethod · 0.95
GetPosMethod · 0.45
RequestUpdateMethod · 0.45

Tested by

no test coverage detected