------------------------------------------------------------------------------
| 1887 | |
| 1888 | //------------------------------------------------------------------------------ |
| 1889 | int vtkHDFReader::RequestData(vtkInformation* vtkNotUsed(request), |
| 1890 | vtkInformationVector** vtkNotUsed(inputVector), vtkInformationVector* outputVector) |
| 1891 | { |
| 1892 | if (this->Stream) |
| 1893 | { |
| 1894 | this->Stream->Seek(0, vtkResourceStream::SeekDirection::Begin); |
| 1895 | if (!this->Impl->Open(this->Stream)) |
| 1896 | { |
| 1897 | return 0; |
| 1898 | } |
| 1899 | } |
| 1900 | else if (!this->Impl->Open(this->FileName)) |
| 1901 | { |
| 1902 | return 0; |
| 1903 | } |
| 1904 | |
| 1905 | this->CompositeCachePath.clear(); |
| 1906 | vtkInformation* outInfo = outputVector->GetInformationObject(0); |
| 1907 | if (!outInfo) |
| 1908 | { |
| 1909 | this->Impl->Close(); |
| 1910 | return 0; |
| 1911 | } |
| 1912 | vtkDataObject* output = outInfo->Get(vtkDataObject::DATA_OBJECT()); |
| 1913 | if (!output) |
| 1914 | { |
| 1915 | this->Impl->Close(); |
| 1916 | return 0; |
| 1917 | } |
| 1918 | |
| 1919 | bool result = ReadData(outInfo, output); |
| 1920 | |
| 1921 | if (this->GetHasTemporalData()) |
| 1922 | { |
| 1923 | // do this at the end because using cache may override this. |
| 1924 | output->GetInformation()->Set(vtkDataObject::DATA_TIME_STEP(), this->TimeValue); |
| 1925 | } |
| 1926 | this->Impl->Close(); |
| 1927 | return result ? 1 : 0; |
| 1928 | } |
| 1929 | |
| 1930 | //---------------------------------------------------------------------------- |
| 1931 | bool vtkHDFReader::ReadData(vtkInformation* outInfo, vtkDataObject* data) |
nothing calls this directly
no test coverage detected