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

Method OpenGroupAsVTKGroup

IO/HDF/vtkHDFReaderImplementation.cxx:145–159  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

143
144//------------------------------------------------------------------------------
145bool vtkHDFReader::Implementation::OpenGroupAsVTKGroup(const std::string& groupPath)
146{
147 if (this->VTKGroup >= 0)
148 {
149 H5Gclose(this->VTKGroup);
150 this->VTKGroup = -1;
151 }
152 if ((this->VTKGroup = H5Gopen(this->File, groupPath.c_str(), H5P_DEFAULT)) < 0)
153 {
154 // the file doesn't exist or we try to read a non-VTKHDF file
155 return false;
156 }
157
158 return true;
159}
160
161//------------------------------------------------------------------------------
162bool vtkHDFReader::Implementation::RetrieveHDFInformation(const std::string& rootName)

Callers 3

ReadMethod · 0.80
ReadRecursivelyMethod · 0.80

Calls 1

c_strMethod · 0.45

Tested by

no test coverage detected