| 85 | } |
| 86 | |
| 87 | IFileIO::ConfidenceLevel ImageVtkXmlIO::GetReaderConfidenceLevel() const |
| 88 | { |
| 89 | if (AbstractFileIO::GetReaderConfidenceLevel() == Unsupported) |
| 90 | return Unsupported; |
| 91 | if (this->GetInputStream() == nullptr) |
| 92 | { |
| 93 | // check if the xml vtk reader can handle the file |
| 94 | vtkSmartPointer<VtkXMLImageDataReader> xmlReader = vtkSmartPointer<VtkXMLImageDataReader>::New(); |
| 95 | if (xmlReader->CanReadFile(this->GetInputLocation().c_str()) != 0) |
| 96 | { |
| 97 | return Supported; |
| 98 | } |
| 99 | return Unsupported; |
| 100 | } |
| 101 | // in case of an input stream, VTK does not seem to have methods for |
| 102 | // validating it |
| 103 | return Supported; |
| 104 | } |
| 105 | |
| 106 | void ImageVtkXmlIO::Write() |
| 107 | { |
nothing calls this directly
no test coverage detected