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

Method GetPrimitive

IO/HDF/vtkHDFWriterImplementation.cxx:1246–1259  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1244
1245//------------------------------------------------------------------------------
1246char vtkHDFWriter::Implementation::GetPrimitive(hid_t group)
1247{
1248 char primitive = 0;
1249 std::string groupName = this->GetGroupName(group);
1250 for (const auto& primitiveName : this->PrimitiveNames)
1251 {
1252 if (groupName.find(primitiveName) != std::string::npos)
1253 {
1254 return primitive;
1255 }
1256 primitive++;
1257 }
1258 return 0xff;
1259}
1260//------------------------------------------------------------------------------
1261bool vtkHDFWriter::Implementation::WriteSumSteps(hid_t group, const char* name)
1262{

Callers 1

CreateVirtualDatasetMethod · 0.95

Calls 2

GetGroupNameMethod · 0.95
findMethod · 0.45

Tested by

no test coverage detected