46 vtkInformationVector **
ttkNotUsed(inputVector),
47 vtkInformationVector *outputVector) {
63 auto outTable = vtkTable::GetData(outputVector);
69 reader->DetectNumericColumnsOn();
70 reader->SetHaveHeaders(
true);
71 reader->SetFieldDelimiterCharacters(
",");
74 if(reader->GetLastError().compare(
"") != 0)
78 outTable->ShallowCopy(reader->GetOutput());
81 std::vector<std::string> filePathColumnNames;
85 for(
size_t j = 0; j < filePathColumnNames.size(); j++) {
86 auto filepathColumn = vtkStringArray::SafeDownCast(
87 outTable->GetColumnByName(filePathColumnNames[j].data()));
89 size_t const n = filepathColumn->GetNumberOfValues();
90 for(
size_t i = 0; i < n; i++)
91 filepathColumn->SetValue(
92 i, this->GetDatabasePath() +
"/" + filepathColumn->GetValue(i));
94 this->
printErr(
"Input table does not have column '"
95 + filePathColumnNames[j]
96 +
"' or is not of type 'vtkStringArray'.");
107 "Complete (#rows: " + std::to_string(outTable->GetNumberOfRows()) +
")", 1,
printMsg(debug::output::BOLD+" | | | | | . \\ | | (__| | / __/| |_| / __/|__ _|"+debug::output::ENDCOLOR, debug::Priority::PERFORMANCE, debug::LineMode::NEW, stream)