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

Method GetBoundsOnDisplay

Modules/Annotation/src/mitkVtkAnnotation2D.cpp:26–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26mitk::Annotation::Bounds mitk::VtkAnnotation2D::GetBoundsOnDisplay(mitk::BaseRenderer *renderer) const
27{
28 mitk::Annotation::Bounds bounds;
29 vtkSmartPointer<vtkActor2D> actor = GetVtkActor2D(renderer);
30 bounds.Position = actor->GetPosition();
31 bounds.Size = actor->GetPosition2();
32 return bounds;
33}
34
35void mitk::VtkAnnotation2D::SetBoundsOnDisplay(mitk::BaseRenderer *renderer, const mitk::Annotation::Bounds &bounds)
36{

Callers 9

PrepareTopLeftLayoutMethod · 0.45
PrepareTopLayoutMethod · 0.45
PrepareTopRightLayoutMethod · 0.45
PrepareRightLayoutMethod · 0.45
PrepareLeftLayoutMethod · 0.45
PrepareBottomLayoutMethod · 0.45
GetHeightMethod · 0.45

Calls 1

GetPositionMethod · 0.45

Tested by

no test coverage detected