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

Method SetRow

Common/DataModel/vtkTable.cxx:218–229  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

216
217//------------------------------------------------------------------------------
218void vtkTable::SetRow(vtkIdType row, vtkVariantArray* values)
219{
220 vtkIdType ncol = this->GetNumberOfColumns();
221 if (values->GetNumberOfTuples() != ncol)
222 {
223 vtkErrorMacro(<< "Incorrect number of tuples in SetRow");
224 }
225 for (vtkIdType i = 0; i < ncol; i++)
226 {
227 this->SetValue(row, i, values->GetValue(i));
228 }
229}
230
231//------------------------------------------------------------------------------
232void vtkTable::MoveRowData(vtkIdType first, vtkIdType last, vtkIdType delta)

Callers 3

LearnMethod · 0.80
UpdateClusterCentersMethod · 0.80
LearnMethod · 0.80

Calls 4

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

Tested by

no test coverage detected