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

Method SetAttribute

Common/DataModel/vtkDataAssembly.cxx:974–985  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

972
973//------------------------------------------------------------------------------
974void vtkDataAssembly::SetAttribute(int id, const char* name, const char* value)
975{
976 const auto& internals = (*this->Internals);
977 auto node = internals.FindNode(id);
978 auto attr = node.attribute(name);
979 if (!attr)
980 {
981 attr = node.append_attribute(name);
982 }
983 attr.set_value(value);
984 this->Modified();
985}
986
987//------------------------------------------------------------------------------
988void vtkDataAssembly::SetAttribute(int id, const char* name, int value)

Callers 15

DrawPolyMethod · 0.45
DrawLinesMethod · 0.45
DrawPointsMethod · 0.45
DrawPointSpritesMethod · 0.45
DrawMarkersMethod · 0.45
DrawQuadStripMethod · 0.45
DrawPolygonMethod · 0.45
DrawEllipseWedgeMethod · 0.45
DrawEllipticArcMethod · 0.45
DrawStringMethod · 0.45
DrawImageMethod · 0.45

Calls 7

FindNodeMethod · 0.80
attributeMethod · 0.80
append_attributeMethod · 0.80
set_valueMethod · 0.80
to_stringFunction · 0.50
ModifiedMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected