| 632 | } |
| 633 | |
| 634 | double mitk::BaseRenderer::GetScaleFactorMMPerDisplayUnit() const |
| 635 | { |
| 636 | if (this->GetMapperID() == BaseRenderer::Standard2D) |
| 637 | { |
| 638 | // GetParallelScale returns half of the height of the render window in mm. |
| 639 | // Divided by the half size of the Display size in pixel givest the mm per pixel. |
| 640 | return this->GetVtkRenderer()->GetActiveCamera()->GetParallelScale() * 2.0 / GetViewportSize()[1]; |
| 641 | } |
| 642 | else |
| 643 | return 1.0; |
| 644 | } |
| 645 | |
| 646 | mitk::Point2D mitk::BaseRenderer::GetDisplaySizeInMM() const |
| 647 | { |
no test coverage detected