| 199 | } |
| 200 | |
| 201 | void InsertImplicitArray(vtkTable* table, std::vector<std::vector<double>>& stdTable) |
| 202 | { |
| 203 | vtkVariant name(table->GetNumberOfColumns()); |
| 204 | vtkNew<vtkConstantArray<int>> arr; |
| 205 | arr->SetBackend(std::make_shared<vtkConstantImplicitBackend<int>>(42)); |
| 206 | arr->SetNumberOfComponents(1); |
| 207 | arr->SetNumberOfTuples(table->GetNumberOfRows()); |
| 208 | arr->SetName((name.ToString() + " (vtkConstantArray)").c_str()); |
| 209 | table->InsertColumn(arr, 0); |
| 210 | |
| 211 | std::vector<double> fillvec; |
| 212 | fillvec.resize(table->GetNumberOfRows(), 42); |
| 213 | stdTable.insert(stdTable.begin(), fillvec); |
| 214 | |
| 215 | CheckEqual(table, stdTable, "InsertImplicitColumn"); |
| 216 | } |
| 217 | |
| 218 | void InsertRows( |
| 219 | vtkTable* table, std::vector<std::vector<double>>& stdTable, const vtkIdType r0, const int n) |
no test coverage detected