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

Method RequestData

IO/HDF/vtkHDFReader.cxx:1889–1928  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1887
1888//------------------------------------------------------------------------------
1889int 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//----------------------------------------------------------------------------
1931bool vtkHDFReader::ReadData(vtkInformation* outInfo, vtkDataObject* data)

Callers

nothing calls this directly

Calls 10

GetHasTemporalDataMethod · 0.95
ReadDataFunction · 0.85
GetInformationObjectMethod · 0.80
SeekMethod · 0.45
OpenMethod · 0.45
clearMethod · 0.45
CloseMethod · 0.45
GetMethod · 0.45
SetMethod · 0.45
GetInformationMethod · 0.45

Tested by

no test coverage detected