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

Method update

Common/DataModel/vtkDataAssembly.cxx:173–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171 }
172
173 void update(pugi::xml_node& node) const
174 {
175 if (IsAssemblyNode(node))
176 {
177 auto attr = node.attribute("id");
178 auto id = attr.as_uint(VTK_UNSIGNED_INT_MAX);
179 if (id != VTK_UNSIGNED_INT_MAX)
180 {
181 attr.set_value(id + this->Offset);
182 }
183 }
184 else if (IsDataSetNode(node))
185 {
186 auto attr = node.attribute("id");
187 auto id = attr.as_uint(VTK_UNSIGNED_INT_MAX);
188 if (id != VTK_UNSIGNED_INT_MAX)
189 {
190 attr.set_value(id + this->DataSetOffset);
191 }
192 }
193 }
194
195 bool begin(pugi::xml_node& node) override
196 {

Callers 4

beginMethod · 0.95
for_eachMethod · 0.95
RegisterStateMethod · 0.45
testICPTransformMethod · 0.45

Calls 5

IsAssemblyNodeFunction · 0.85
IsDataSetNodeFunction · 0.85
attributeMethod · 0.80
as_uintMethod · 0.80
set_valueMethod · 0.80

Tested by 1

testICPTransformMethod · 0.36