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

Method AxisRangeForwarderCallback

Charts/Core/vtkScatterPlotMatrix.cxx:1614–1633  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1612}
1613
1614void vtkScatterPlotMatrix::AxisRangeForwarderCallback(vtkObject*, unsigned long, void*)
1615{
1616 // Only set on the end axes, and propagated to all other matching axes.
1617 double r[2];
1618 int n = this->GetSize().GetX() - 1;
1619 for (int i = 0; i < n; ++i)
1620 {
1621 this->GetChart(vtkVector2i(i, 0))->GetAxis(vtkAxis::BOTTOM)->GetUnscaledRange(r);
1622 for (int j = 1; j < n - i; ++j)
1623 {
1624 this->GetChart(vtkVector2i(i, j))->GetAxis(vtkAxis::BOTTOM)->SetUnscaledRange(r);
1625 }
1626 this->GetChart(vtkVector2i(i, n - i))->GetAxis(vtkAxis::TOP)->SetUnscaledRange(r);
1627 this->GetChart(vtkVector2i(0, i))->GetAxis(vtkAxis::LEFT)->GetUnscaledRange(r);
1628 for (int j = 1; j < n - i; ++j)
1629 {
1630 this->GetChart(vtkVector2i(j, i))->GetAxis(vtkAxis::LEFT)->SetUnscaledRange(r);
1631 }
1632 }
1633}
1634
1635void vtkScatterPlotMatrix::BigChartSelectionCallback(vtkObject*, unsigned long event, void*)
1636{

Callers

nothing calls this directly

Calls 7

GetUnscaledRangeMethod · 0.80
SetUnscaledRangeMethod · 0.80
vtkVector2iClass · 0.50
GetXMethod · 0.45
GetSizeMethod · 0.45
GetAxisMethod · 0.45
GetChartMethod · 0.45

Tested by

no test coverage detected