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

Method SetFileName

IO/NetCDF/vtkNetCDFReader.cxx:497–517  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

495
496//------------------------------------------------------------------------------
497void vtkNetCDFReader::SetFileName(const char* filename)
498{
499 if (this->FileName == filename)
500 return;
501 if (this->FileName && filename && (strcmp(this->FileName, filename) == 0))
502 {
503 return;
504 }
505
506 delete[] this->FileName;
507 this->FileName = nullptr;
508
509 if (filename)
510 {
511 this->FileName = new char[strlen(filename) + 1];
512 strcpy(this->FileName, filename);
513 }
514
515 this->Modified();
516 this->FileNameMTime.Modified();
517}
518
519//------------------------------------------------------------------------------
520void vtkNetCDFReader::SelectionModifiedCallback(vtkObject*, unsigned long, void* clientdata, void*)

Callers 12

~vtkNetCDFReaderMethod · 0.95
~vtkNetCDFPOPReaderMethod · 0.45
~vtkMPASReaderMethod · 0.45
~vtkNetCDFCFWriterMethod · 0.45
get_readerFunction · 0.45
TestNetCDFCAMReaderFunction · 0.45
TestNetCDFUGRIDReaderFunction · 0.45
TestMPASReaderFunction · 0.45
TestNetCDFPOPReaderFunction · 0.45
SLACParticleReaderFunction · 0.45
TestNetCDFCFWriterFunction · 0.45

Calls 1

ModifiedMethod · 0.45

Tested by 5

TestNetCDFCAMReaderFunction · 0.36
TestNetCDFUGRIDReaderFunction · 0.36
TestMPASReaderFunction · 0.36
TestNetCDFPOPReaderFunction · 0.36
TestNetCDFCFWriterFunction · 0.36