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

Method UpdateVtkAnnotation

Modules/Annotation/src/mitkScaleLegendAnnotation.cpp:47–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47void mitk::ScaleLegendAnnotation::UpdateVtkAnnotation(mitk::BaseRenderer *renderer)
48{
49 LocalStorage *ls = this->m_LSH.GetLocalStorage(renderer);
50
51 if (ls->IsGenerateDataRequired(renderer, this))
52 {
53 ls->m_legendScaleActor->SetRightAxisVisibility(this->GetRightAxisVisibility());
54 ls->m_legendScaleActor->SetTopAxisVisibility(this->GetTopAxisVisibility());
55 ls->m_legendScaleActor->SetLeftAxisVisibility(this->GetLeftAxisVisibility());
56 ls->m_legendScaleActor->SetBottomAxisVisibility(this->GetBottomAxisVisibility());
57 ls->m_legendScaleActor->SetLegendVisibility(this->GetLegendVisibility());
58 ls->m_legendScaleActor->SetRightBorderOffset(this->GetRightBorderOffset());
59 ls->m_legendScaleActor->SetLeftBorderOffset(this->GetLeftBorderOffset());
60 ls->m_legendScaleActor->SetTopBorderOffset(this->GetTopBorderOffset());
61 ls->m_legendScaleActor->SetBottomBorderOffset(this->GetBottomBorderOffset());
62 ls->m_legendScaleActor->SetCornerOffsetFactor(this->GetCornerOffsetFactor());
63 ls->m_legendScaleActor->GetLeftAxis()->SetFontFactor(this->GetFontFactor());
64 ls->m_legendScaleActor->GetRightAxis()->SetFontFactor(this->GetFontFactor());
65 ls->m_legendScaleActor->GetTopAxis()->SetFontFactor(this->GetFontFactor());
66 ls->m_legendScaleActor->GetBottomAxis()->SetFontFactor(this->GetFontFactor());
67 }
68}
69
70vtkProp *mitk::ScaleLegendAnnotation::GetVtkProp(BaseRenderer *renderer) const
71{

Callers

nothing calls this directly

Calls 15

GetTopAxisVisibilityMethod · 0.95
GetLeftAxisVisibilityMethod · 0.95
GetLegendVisibilityMethod · 0.95
GetRightBorderOffsetMethod · 0.95
GetLeftBorderOffsetMethod · 0.95
GetTopBorderOffsetMethod · 0.95
GetBottomBorderOffsetMethod · 0.95
GetCornerOffsetFactorMethod · 0.95
GetFontFactorMethod · 0.95

Tested by

no test coverage detected