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

Method SetBoundsOnDisplay

Modules/Annotation/src/mitkVtkAnnotation2D.cpp:35–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35void mitk::VtkAnnotation2D::SetBoundsOnDisplay(mitk::BaseRenderer *renderer, const mitk::Annotation::Bounds &bounds)
36{
37 vtkSmartPointer<vtkActor2D> actor = GetVtkActor2D(renderer);
38 actor->SetDisplayPosition(bounds.Position[0], bounds.Position[1]);
39 actor->SetWidth(bounds.Size[0]);
40 actor->SetHeight(bounds.Size[1]);
41}
42
43void mitk::VtkAnnotation2D::UpdateVtkAnnotation(mitk::BaseRenderer *renderer)
44{

Callers 8

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

Calls

no outgoing calls

Tested by

no test coverage detected