------------------------------------------------------------------------------
| 360 | |
| 361 | //------------------------------------------------------------------------------ |
| 362 | vtkIdType 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 | //------------------------------------------------------------------------------ |
| 379 | void vtkTable::RemoveRow(vtkIdType row) |