MCPcopy Create free account
hub / github.com/Kitware/VTK / UpdateLayout

Method UpdateLayout

Charts/Core/vtkChartHistogram2D.cxx:68–79  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

66
67//------------------------------------------------------------------------------
68bool vtkChartHistogram2D::UpdateLayout(vtkContext2D* painter)
69{
70 this->vtkChartXY::UpdateLayout(painter);
71 vtkColorLegend* legend = vtkColorLegend::SafeDownCast(this->Legend);
72 if (legend)
73 {
74 legend->SetPosition(vtkRectf(this->Point2[0] + 5, this->Point1[1],
75 this->Legend->GetSymbolWidth(), this->Point2[1] - this->Point1[1]));
76 }
77 this->Legend->Update();
78 return true;
79}
80
81//------------------------------------------------------------------------------
82bool vtkChartHistogram2D::Hit(const vtkContextMouseEvent& mouse)

Callers

nothing calls this directly

Calls 3

vtkRectfClass · 0.50
SetPositionMethod · 0.45
UpdateMethod · 0.45

Tested by

no test coverage detected