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

Method SetTableName

Common/DataModel/vtkStatisticalModel.cxx:391–407  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

389}
390
391bool vtkStatisticalModel::SetTableName(int type, int index, const std::string& name)
392{
393 if (auto* table = this->GetTable(type, index))
394 {
395 if (auto* info = table->GetInformation())
396 {
397 std::string existingName = info->Get(vtkCompositeDataSet::NAME());
398 if (existingName != name)
399 {
400 info->Set(vtkCompositeDataSet::NAME(), name.c_str());
401 this->Modified();
402 return true;
403 }
404 }
405 }
406 return false;
407}
408
409VTK_ABI_NAMESPACE_END

Callers

nothing calls this directly

Calls 6

GetTableMethod · 0.95
GetInformationMethod · 0.45
GetMethod · 0.45
SetMethod · 0.45
c_strMethod · 0.45
ModifiedMethod · 0.45

Tested by

no test coverage detected