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

Method ResetReader

IO/XML/vtkRTXMLPolyDataReader.cxx:174–194  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

172
173//------------------------------------------------------------------------------
174void vtkRTXMLPolyDataReader::ResetReader()
175{
176 // assume the DataLocation is set at this point
177 // clean up the two vectors first
178 this->Internal->ProcessedFileList.clear();
179 this->Internal->AvailableDataFileList.clear();
180
181 vtkDirectory* dataDir = vtkDirectory::New();
182 dataDir->Open(this->DataLocation);
183 for (int i = 0; i < dataDir->GetNumberOfFiles(); i++)
184 {
185 this->Internal->ProcessedFileList.emplace_back(
186 this->GetDataFileFullPathName(dataDir->GetFile(i)));
187 }
188 // initialize with an empty filename if filename is not set
189 if (!this->GetFileName())
190 {
191 this->SetFileName("");
192 }
193 dataDir->Delete();
194}
195
196//------------------------------------------------------------------------------
197void vtkRTXMLPolyDataReader::PrintSelf(ostream& os, vtkIndent indent)

Callers 1

SetLocationMethod · 0.95

Calls 10

DeleteMethod · 0.65
NewFunction · 0.50
clearMethod · 0.45
OpenMethod · 0.45
GetNumberOfFilesMethod · 0.45
emplace_backMethod · 0.45
GetFileMethod · 0.45
GetFileNameMethod · 0.45
SetFileNameMethod · 0.45

Tested by

no test coverage detected