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

Method GetCameraPositionOnPlane

Modules/Core/src/Controllers/mitkCameraController.cpp:239–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237}
238
239mitk::Point2D mitk::CameraController::GetCameraPositionOnPlane()
240{
241 Point2D CamPosOnPlane;
242 CamPosOnPlane[0] = this->GetRenderer()->GetVtkRenderer()->GetCenter()[0];
243 CamPosOnPlane[1] = this->GetRenderer()->GetVtkRenderer()->GetCenter()[1];
244 this->GetRenderer()->DisplayToPlane(CamPosOnPlane, CamPosOnPlane);
245 return CamPosOnPlane;
246}
247
248void mitk::CameraController::AdjustCameraToPlane()
249{

Callers

nothing calls this directly

Calls 4

GetCenterMethod · 0.80
DisplayToPlaneMethod · 0.80
GetVtkRendererMethod · 0.45
GetRendererMethod · 0.45

Tested by

no test coverage detected