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

Method InsertNextRow

Common/DataModel/vtkTable.cxx:362–376  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

360
361//------------------------------------------------------------------------------
362vtkIdType vtkTable::InsertNextRow(vtkVariantArray* values)
363{
364 vtkIdType ncol = this->GetNumberOfColumns();
365 if (values->GetNumberOfTuples() != ncol)
366 {
367 vtkErrorMacro(<< "Incorrect number of tuples in SetRow."
368 << " Expected " << ncol << ", but got " << values->GetNumberOfTuples());
369 }
370 vtkIdType row = this->InsertNextBlankRow();
371 for (vtkIdType i = 0; i < ncol; i++)
372 {
373 this->SetValue(row, i, values->GetValue(i));
374 }
375 return row;
376}
377
378//------------------------------------------------------------------------------
379void vtkTable::RemoveRow(vtkIdType row)

Callers 15

RequestDataMethod · 0.80
RequestDataMethod · 0.80
RequestDataMethod · 0.80
ReorderTableMethod · 0.80
ReverseTableRowsMethod · 0.80
InsertFullRowsFunction · 0.80
GenerateRowsMethod · 0.80
RequestDataMethod · 0.80
LearnMethod · 0.80
DeriveMethod · 0.80
RequestDataMethod · 0.80
DeriveMethod · 0.80

Calls 5

GetNumberOfColumnsMethod · 0.95
InsertNextBlankRowMethod · 0.95
SetValueMethod · 0.95
GetNumberOfTuplesMethod · 0.45
GetValueMethod · 0.45

Tested by 2

InsertFullRowsFunction · 0.64