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

Method GetAttribute

Common/DataModel/vtkDataAssembly.cxx:1008–1018  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1006
1007//------------------------------------------------------------------------------
1008bool vtkDataAssembly::GetAttribute(int id, const char* name, const char*& value) const
1009{
1010 const auto& internals = (*this->Internals);
1011 const auto node = internals.FindNode(id);
1012 if (auto attr = node.attribute(name))
1013 {
1014 value = attr.as_string();
1015 return true;
1016 }
1017 return false;
1018}
1019
1020//------------------------------------------------------------------------------
1021bool vtkDataAssembly::GetAttribute(int id, const char* name, int& value) const

Callers 15

PassAttributeDataMethod · 0.45
GetErrorMethod · 0.45
FunctionValuesMethod · 0.45
RestoreStateMethod · 0.45
RestoreStateMethod · 0.45
ContourMethod · 0.45
ClipMethod · 0.45
TessellateMethod · 0.45

Calls 6

FindNodeMethod · 0.80
attributeMethod · 0.80
as_stringMethod · 0.80
as_intMethod · 0.80
as_uintMethod · 0.80
as_llongMethod · 0.80

Tested by 5

TestGenericStreamTracerFunction · 0.36
PrintAndCheckFunction · 0.36
PrintAndCheckFunction · 0.36