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

Function GetDataSetAttributeType

IO/CatalystConduit/vtkConduitToDataObject.cxx:343–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

341 std::string AttributeType;
342
343 static vtkDataSetAttributes::AttributeTypes GetDataSetAttributeType(
344 const std::string& otherAttributeTypeName)
345 {
346 for (int i = 0; i < vtkDataSetAttributes::AttributeTypes::NUM_ATTRIBUTES; ++i)
347 {
348 const std::string attributeTypeName = vtkDataSetAttributes::GetAttributeTypeAsString(i);
349 if (vtksys::SystemTools::UpperCase(otherAttributeTypeName) ==
350 vtksys::SystemTools::UpperCase(attributeTypeName))
351 {
352 return static_cast<vtkDataSetAttributes::AttributeTypes>(i);
353 }
354 }
355 return vtkDataSetAttributes::AttributeTypes::NUM_ATTRIBUTES;
356 }
357
358 static bool IsGhostsAttributeType(const std::string& otherAttributeTypeName)
359 {

Callers 1

FillPartitionedDataSetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected