------------------------------------------------------------------------------
| 172 | |
| 173 | //------------------------------------------------------------------------------ |
| 174 | void 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 | //------------------------------------------------------------------------------ |
| 197 | void vtkRTXMLPolyDataReader::PrintSelf(ostream& os, vtkIndent indent) |
no test coverage detected