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

Method GetChartSpan

Charts/Core/vtkChartMatrix.cxx:461–472  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

459
460//------------------------------------------------------------------------------
461vtkVector2i vtkChartMatrix::GetChartSpan(const vtkVector2i& position)
462{
463 size_t index = position.GetY() * this->Size.GetX() + position.GetX();
464 if (position.GetX() < this->Size.GetX() && position.GetY() < this->Size.GetY())
465 {
466 return this->Private->Spans[index];
467 }
468 else
469 {
470 return vtkVector2i(0, 0);
471 }
472}
473
474//------------------------------------------------------------------------------
475vtkVector2i vtkChartMatrix::GetChartIndex(const vtkVector2f& position)

Callers

nothing calls this directly

Calls 2

vtkVector2iClass · 0.50
GetXMethod · 0.45

Tested by

no test coverage detected