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

Method ChooseActiveFile

IO/CGNS/vtkCGNSFileSeriesReader.cxx:263–272  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

261
262//----------------------------------------------------------------------------
263void vtkCGNSFileSeriesReader::ChooseActiveFile(int index)
264{
265 std::string fname =
266 (index < static_cast<int>(this->ActiveFiles.size())) ? this->ActiveFiles[index] : std::string();
267 if (this->Reader->GetFileName() == nullptr || this->Reader->GetFileName() != fname)
268 {
269 this->Reader->SetFileName(fname.c_str());
270 this->Reader->UpdateInformation();
271 }
272}
273
274//----------------------------------------------------------------------------
275#if defined(_MSC_VER)

Callers 2

ProcessRequestMethod · 0.95
RequestDataMethod · 0.95

Calls 6

stringClass · 0.50
sizeMethod · 0.45
GetFileNameMethod · 0.45
SetFileNameMethod · 0.45
c_strMethod · 0.45
UpdateInformationMethod · 0.45

Tested by

no test coverage detected