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

Method GetColumnIndex

Common/DataModel/vtkTable.cxx:528–540  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

526
527//------------------------------------------------------------------------------
528vtkIdType vtkTable::GetColumnIndex(const char* name)
529{
530 const char* col_name;
531 for (int i = 0; i < this->GetNumberOfColumns(); i++)
532 {
533 col_name = this->GetColumnName(i);
534 if (col_name && !strcmp(col_name, name))
535 {
536 return i;
537 }
538 }
539 return -1;
540}
541
542//------------------------------------------------------------------------------
543vtkAbstractArray* vtkTable::GetColumn(vtkIdType col)

Callers 4

PaintMethod · 0.80
SetColumnColorMethod · 0.80
RequestDataMethod · 0.80

Calls 2

GetNumberOfColumnsMethod · 0.95
GetColumnNameMethod · 0.95

Tested by

no test coverage detected