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

Method Open

IO/HDF/vtkHDFReaderImplementation.cxx:75–100  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

73
74//------------------------------------------------------------------------------
75bool vtkHDFReader::Implementation::Open(const char* fileName)
76{
77 if (!fileName)
78 {
79 vtkErrorWithObjectMacro(this->Reader, "Invalid filename: " << fileName);
80 return false;
81 }
82
83 if (this->FileName.empty() || this->FileName != fileName || this->File < 0)
84 {
85 this->FileName = fileName;
86 if (this->File >= 0)
87 {
88 this->Close();
89 }
90
91 if (!vtkHDFUtilities::Open(fileName, this->File))
92 {
93 return false;
94 }
95
96 return this->RetrieveHDFInformation(vtkHDFUtilities::VTKHDF_ROOT_PATH);
97 }
98
99 return true;
100}
101
102//------------------------------------------------------------------------------
103bool vtkHDFReader::Implementation::Open(vtkResourceStream* stream)

Callers 6

ParseH5RageFileMethod · 0.45
CanReadFileMethod · 0.45
RequestDataObjectMethod · 0.45
RequestInformationMethod · 0.45
RequestDataMethod · 0.45
TestPolyDataStreamFunction · 0.45

Calls 9

CloseMethod · 0.95
emptyMethod · 0.45
SeekMethod · 0.45
TellMethod · 0.45
resizeMethod · 0.45
ReadMethod · 0.45
dataMethod · 0.45
SetBufferMethod · 0.45

Tested by 1

TestPolyDataStreamFunction · 0.36