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

Method GetColumnId

Charts/Core/vtkChartBox.cxx:317–334  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

315
316//------------------------------------------------------------------------------
317vtkIdType vtkChartBox::GetColumnId(const vtkStdString& name)
318{
319 vtkPlot* plot = this->GetPlot(0);
320 if (!plot || !plot->GetInput())
321 {
322 return -1;
323 }
324 vtkTable* table = plot->GetInput();
325 vtkIdType nbColumn = table->GetNumberOfColumns();
326 for (vtkIdType i = 0; i < nbColumn; i++)
327 {
328 if (table->GetColumnName(i) == name)
329 {
330 return i;
331 }
332 }
333 return -1;
334}
335
336//------------------------------------------------------------------------------
337vtkAxis* vtkChartBox::GetYAxis()

Callers 1

PaintLegendMethod · 0.80

Calls 4

GetPlotMethod · 0.95
GetInputMethod · 0.45
GetNumberOfColumnsMethod · 0.45
GetColumnNameMethod · 0.45

Tested by

no test coverage detected